{"openapi":"3.0.3","info":{"title":"Hermeticor API","version":"0.1.0","description":"Authenticate with a secret key: `Authorization: Bearer hm_sk_...`. Keys carry scopes; a missing scope returns 403. Operations secured by the `session` scheme (agency, key management and other dashboard-only routes) need a signed-in web session; a key gets 403.\n\nSend `Idempotency-Key` (1-255 characters) on any POST, PATCH or DELETE: for 24 hours a retry with the same key and the same request returns the original status and body (header `Idempotent-Replayed: true`) without repeating the action; the same key with a different request returns 422 `idempotency_key_reused`. Keys are scoped to the API key or user. Failed requests are not stored, so retrying them runs again.\n\nRequest bodies are strict for API keys: an unknown field returns 400 naming it (`details.unknownFields`) instead of being ignored.\n\nPin behaviour with the `Hermetica-Version` request header (default: the version in `info.version`). Breaking changes ship under a new version string and are listed in the changelog.\n\nEach API key is limited to 1,200 requests a minute unless the key sets its own limit; keyed responses carry `RateLimit-Limit`, `RateLimit-Remaining` and `RateLimit-Reset`, and 429 adds `Retry-After`. Every list route returns `{ items, nextCursor }` and takes `limit` (1-200) and `cursor` (the opaque `nextCursor` of the previous page; `null` means the last page). Lists with no stated default return everything when `limit` is omitted. The one exception is the Zapier/Make trigger sample, which is a bare array as those tools expect."},"components":{"securitySchemes":{"apiKey":{"type":"http","scheme":"bearer","description":"Secret API key (hm_sk_...)"},"session":{"type":"apiKey","in":"cookie","name":"hm_session","description":"Signed-in web session only: API keys get 403"}},"schemas":{"GetHealthzResponse":{"type":"object","properties":{"error":{"$ref":"#/components/schemas/Error"}},"required":["error"],"additionalProperties":false},"Error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{"type":"object","additionalProperties":{}}},"required":["code","message"],"additionalProperties":false},"User":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"email":{"type":"string"},"name":{"type":"string"},"avatarUrl":{"nullable":true,"type":"string"},"emailVerified":{"type":"boolean"}},"required":["id","email","name"],"additionalProperties":false},"QuietHours":{"type":"object","properties":{"start":{"type":"string","pattern":"^([01]\\d|2[0-3]):[0-5]\\d$"},"end":{"type":"string","pattern":"^([01]\\d|2[0-3]):[0-5]\\d$"}},"required":["start","end"],"additionalProperties":false},"PostV1ApiKeysBody":{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":120},"kind":{"type":"string","enum":["secret","site"]},"scopes":{"default":[],"maxItems":64,"type":"array","items":{"type":"string","maxLength":64}},"allowedOrigins":{"maxItems":50,"type":"array","items":{"type":"string","maxLength":255}},"allowedDomains":{"maxItems":50,"type":"array","items":{"type":"string","maxLength":255}},"allowedConnectionIds":{"$ref":"#/components/schemas/AllowedConnectionIds"},"allowedSequenceIds":{"$ref":"#/components/schemas/AllowedConnectionIds"},"rateLimitPerMin":{"type":"integer","minimum":1,"maximum":100000}},"required":["name","kind"]},"AllowedConnectionIds":{"maxItems":50,"type":"array","items":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},"PostV1ApiKeysResponse":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"name":{"type":"string"},"kind":{"type":"string","enum":["secret","site"]},"prefix":{"type":"string"},"scopes":{"type":"array","items":{"type":"string"}},"allowedOrigins":{"type":"array","items":{"type":"string"}},"allowedDomains":{"type":"array","items":{"type":"string"}},"allowedConnectionIds":{"type":"array","items":{"type":"string"}},"allowedSequenceIds":{"type":"array","items":{"type":"string"}},"rateLimitPerMin":{"nullable":true,"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"lastUsedAt":{"nullable":true,"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"revokedAt":{"nullable":true,"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"createdAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"plaintext":{"type":"string"}},"required":["id","name","kind","prefix","scopes","allowedOrigins","lastUsedAt","revokedAt","createdAt","plaintext"],"additionalProperties":false},"ItemsItem":{"type":"object","properties":{"userId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"email":{"type":"string"},"name":{"type":"string"},"role":{"type":"string","enum":["owner","admin","marketer","sales","analyst","viewer"]},"listIds":{"nullable":true,"type":"array","items":{"type":"string"}}},"required":["userId","email","name","role"],"additionalProperties":false},"PostV1MembersResponse":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"email":{"type":"string"},"role":{"type":"string","enum":["owner","admin","marketer","sales","analyst","viewer"]},"token":{"type":"string"},"expiresAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"emailed":{"type":"boolean"}},"required":["id","email","role","token","expiresAt"],"additionalProperties":false},"ListIds":{"nullable":true,"maxItems":500,"type":"array","items":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},"GetV1SignupDomainsResponse":{"type":"object","properties":{"allow":{"maxItems":500,"type":"array","items":{"type":"string","maxLength":255}},"block":{"maxItems":500,"type":"array","items":{"type":"string","maxLength":255}}},"required":["allow","block"],"additionalProperties":false},"GetV1WorkspaceResponse":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"organizationId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"name":{"type":"string"},"timezone":{"type":"string"},"locale":{"type":"string"},"postalAddress":{"nullable":true,"type":"string"},"adminEmail":{"nullable":true,"type":"string"},"unsubscribeRedirectUrl":{"nullable":true,"type":"string"},"quietHours":{"$ref":"#/components/schemas/QuietHours"},"displayCurrency":{"type":"string"},"fxRates":{"type":"object","additionalProperties":{"type":"number"}},"sessionDays":{"nullable":true,"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"campaignNotifyEmails":{"type":"array","items":{"type":"string"}},"websiteUrl":{"nullable":true,"type":"string"},"industry":{"nullable":true,"type":"string"}},"required":["id","organizationId","name","timezone","locale","postalAddress","adminEmail","unsubscribeRedirectUrl","quietHours","displayCurrency","fxRates","sessionDays","campaignNotifyEmails"],"additionalProperties":false},"GetV1Audit":{"anyOf":[{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"}],"type":"string","format":"date-time"},"GetV1ProfilesResponse":{"type":"object","properties":{"items":{"$ref":"#/components/schemas/Items"},"nextCursor":{"nullable":true,"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},"required":["items","nextCursor"],"additionalProperties":false},"Items":{"type":"array","items":{"$ref":"#/components/schemas/ItemsItem2"}},"ItemsItem2":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"emailPrimary":{"nullable":true,"type":"string"},"phonePrimary":{"nullable":true,"type":"string"},"firstName":{"nullable":true,"type":"string"},"lastName":{"nullable":true,"type":"string"},"timezone":{"nullable":true,"type":"string"},"locale":{"nullable":true,"type":"string"},"country":{"nullable":true,"type":"string"},"city":{"nullable":true,"type":"string"},"region":{"nullable":true,"type":"string"},"source":{"nullable":true,"type":"string"},"lifecycleStage":{"nullable":true,"type":"string"},"ownerUserId":{"nullable":true,"type":"string"},"attributes":{"type":"object","additionalProperties":{}},"tags":{"type":"array","items":{"type":"string"}},"mergedIntoId":{"nullable":true,"type":"string"},"archivedAt":{"nullable":true,"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"createdAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"updatedAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"consentIgnored":{"type":"array","items":{"type":"string","enum":["email","sms","whatsapp","push","postcard"]}}},"required":["id","emailPrimary","phonePrimary","firstName","lastName","timezone","locale","country","city","region","source","lifecycleStage","ownerUserId","attributes","tags","mergedIntoId","createdAt","updatedAt"],"additionalProperties":false},"PostV1ProfilesBody":{"type":"object","properties":{"identifiers":{"$ref":"#/components/schemas/Identifiers"},"attributes":{"type":"object","additionalProperties":{}},"standard":{"$ref":"#/components/schemas/Standard"},"source":{"default":"api","type":"string","minLength":1,"maxLength":64},"matchAttribute":{"type":"string","pattern":"^[A-Za-z][A-Za-z0-9_]{0,63}$"},"unsubscribed":{"type":"boolean","enum":[true]},"subscriptions":{"$ref":"#/components/schemas/Subscriptions"},"tags":{"maxItems":100,"type":"array","items":{"type":"string","minLength":1,"maxLength":64}}},"required":["identifiers"]},"Identifiers":{"type":"object","properties":{"email":{"type":"string","maxLength":320},"phone":{"type":"string","maxLength":40},"externalId":{"type":"string","minLength":1,"maxLength":256},"anonymousId":{"type":"string","minLength":1,"maxLength":256}}},"Standard":{"type":"object","properties":{"firstName":{"nullable":true,"type":"string","maxLength":256},"lastName":{"nullable":true,"type":"string","maxLength":256},"timezone":{"nullable":true,"type":"string","maxLength":256},"locale":{"nullable":true,"type":"string","maxLength":256},"country":{"nullable":true,"type":"string","maxLength":256},"city":{"nullable":true,"type":"string","maxLength":256},"region":{"nullable":true,"type":"string","maxLength":256},"lifecycleStage":{"nullable":true,"type":"string","maxLength":256},"ownerUserId":{"nullable":true,"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}},"Subscriptions":{"type":"object","properties":{"email":{"type":"string","enum":["subscribed","unsubscribed"]},"sms":{"type":"string","enum":["subscribed","unsubscribed"]},"legalBasis":{"type":"string","enum":["consent","legitimate_interest","contract","other"]}}},"Conflicts":{"type":"array","items":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},"PatchV1ProfilesByIdBody":{"type":"object","properties":{"firstName":{"nullable":true,"type":"string","maxLength":256},"lastName":{"nullable":true,"type":"string","maxLength":256},"timezone":{"nullable":true,"type":"string","maxLength":256},"locale":{"nullable":true,"type":"string","maxLength":256},"country":{"nullable":true,"type":"string","maxLength":256},"city":{"nullable":true,"type":"string","maxLength":256},"region":{"nullable":true,"type":"string","maxLength":256},"lifecycleStage":{"nullable":true,"type":"string","maxLength":256},"ownerUserId":{"nullable":true,"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"attributes":{"type":"object","additionalProperties":{}},"subscriptions":{"$ref":"#/components/schemas/Subscriptions"},"tags":{"maxItems":100,"type":"array","items":{"type":"string","minLength":1,"maxLength":64}}}},"DeleteV1ProfilesByIdResponse":{"type":"object","properties":{"removed":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string"},"value":{"type":"string"}},"required":["type","value"],"additionalProperties":false}}},"required":["removed"],"additionalProperties":false},"GetV1ProfilesByIdActivityResponse":{"type":"object","properties":{"items":{"$ref":"#/components/schemas/Items2"},"nextCursor":{"nullable":true,"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},"required":["items","nextCursor"],"additionalProperties":false},"Items2":{"type":"array","items":{"$ref":"#/components/schemas/ItemsItem3"}},"ItemsItem3":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"profileId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"kind":{"type":"string"},"refType":{"nullable":true,"type":"string"},"refId":{"nullable":true,"type":"string"},"summary":{"type":"string"},"data":{},"at":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"}},"required":["id","profileId","kind","refType","refId","summary","data","at"],"additionalProperties":false},"ItemsItem4":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"profileId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"authorId":{"type":"string"},"body":{"type":"string"},"kind":{"default":"note","type":"string","enum":["note","email","call","meeting"]},"at":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"updatedAt":{"nullable":true,"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"}},"required":["id","profileId","authorId","body","kind","at"],"additionalProperties":false},"PostV1ProfilesByIdNotesBody":{"type":"object","properties":{"body":{"type":"string","minLength":1,"maxLength":10000},"kind":{"default":"note","type":"string","enum":["note","email","call","meeting"]}},"required":["body"]},"Lists":{"type":"array","items":{"$ref":"#/components/schemas/ListsItem"}},"ListsItem":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"name":{"type":"string"}},"required":["id","name"],"additionalProperties":false},"ProfileIds":{"minItems":1,"maxItems":100,"type":"array","items":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},"Settings":{"type":"object","properties":{"doubleOptIn":{"type":"boolean"},"subscribeAddress":{"$ref":"#/components/schemas/SubscribeAddress"},"permissionReminder":{"type":"string","maxLength":1000},"defaultFromName":{"type":"string","maxLength":200},"defaultFromEmail":{"type":"string","maxLength":320},"defaultSubject":{"type":"string","maxLength":300},"defaultReplyTo":{"anyOf":[{"type":"string","maxLength":1000},{"type":"string","enum":[""]}]},"allowedFormTags":{"maxItems":100,"type":"array","items":{"type":"string","minLength":1,"maxLength":64}},"defaultLanguage":{"type":"string","maxLength":16},"companyName":{"type":"string","maxLength":200},"contactAddress":{"type":"string","maxLength":500},"postalAddressId":{"$ref":"#/components/schemas/PostalAddressId"},"footer":{"type":"string","maxLength":2000},"contactEmail":{"$ref":"#/components/schemas/SubscribeAddress"},"homepageUrl":{"anyOf":[{"type":"string","format":"uri"},{"type":"string","enum":[""]}]},"segmentScopeId":{"$ref":"#/components/schemas/PostalAddressId"},"unsubscribeMode":{"type":"string","enum":["confirm","one_click"]},"unsubscribeRedirectUrl":{"anyOf":[{"type":"string","format":"uri"},{"type":"string","enum":[""]}]},"unsubscribedMessage":{"type":"string","maxLength":1000},"notifyOnSubscribe":{"type":"string","maxLength":320},"notifyOnUnsubscribe":{"type":"string","maxLength":320},"archived":{"type":"boolean"},"emoji":{"type":"string","maxLength":8},"publicDirectory":{"type":"boolean"},"expiresAt":{"$ref":"#/components/schemas/ExpiresAt"},"exclusion":{"type":"boolean"},"defaultConnectionId":{"$ref":"#/components/schemas/PostalAddressId"},"defaultPoolId":{"$ref":"#/components/schemas/PostalAddressId"}},"additionalProperties":false},"SubscribeAddress":{"anyOf":[{"type":"string","format":"email","pattern":"^(?:[A-Za-z0-9_'+\\-]+\\.)*[A-Za-z0-9_'+\\-]*[A-Za-z0-9_+-]@(?:[A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$"},{"type":"string","enum":[""]}]},"PostalAddressId":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"string","enum":[""]}]},"ExpiresAt":{"anyOf":[{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},{"type":"string","enum":[""]}]},"Settings2":{"type":"object","properties":{"doubleOptIn":{"type":"boolean"},"subscribeAddress":{"$ref":"#/components/schemas/SubscribeAddress"},"permissionReminder":{"type":"string","maxLength":1000},"defaultFromName":{"type":"string","maxLength":200},"defaultFromEmail":{"type":"string","maxLength":320},"defaultSubject":{"type":"string","maxLength":300},"defaultReplyTo":{"anyOf":[{"type":"string","maxLength":1000},{"type":"string","enum":[""]}]},"allowedFormTags":{"maxItems":100,"type":"array","items":{"type":"string","minLength":1,"maxLength":64}},"defaultLanguage":{"type":"string","maxLength":16},"companyName":{"type":"string","maxLength":200},"contactAddress":{"type":"string","maxLength":500},"postalAddressId":{"$ref":"#/components/schemas/PostalAddressId"},"footer":{"type":"string","maxLength":2000},"contactEmail":{"$ref":"#/components/schemas/SubscribeAddress"},"homepageUrl":{"anyOf":[{"type":"string","format":"uri"},{"type":"string","enum":[""]}]},"segmentScopeId":{"$ref":"#/components/schemas/PostalAddressId"},"unsubscribeMode":{"type":"string","enum":["confirm","one_click"]},"unsubscribeRedirectUrl":{"anyOf":[{"type":"string","format":"uri"},{"type":"string","enum":[""]}]},"unsubscribedMessage":{"type":"string","maxLength":1000},"notifyOnSubscribe":{"type":"string","maxLength":320},"notifyOnUnsubscribe":{"type":"string","maxLength":320},"archived":{"type":"boolean"},"emoji":{"type":"string","maxLength":8},"publicDirectory":{"type":"boolean"},"expiresAt":{"$ref":"#/components/schemas/ExpiresAt"},"exclusion":{"type":"boolean"},"defaultConnectionId":{"$ref":"#/components/schemas/PostalAddressId"},"defaultPoolId":{"$ref":"#/components/schemas/PostalAddressId"}}},"PostV1ListsResponse":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"name":{"type":"string"},"description":{"nullable":true,"type":"string"},"kind":{"type":"string"},"settings":{"$ref":"#/components/schemas/Settings"},"tags":{"type":"array","items":{"type":"string"}},"folderId":{"nullable":true,"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"createdAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"}},"required":["id","name","description","kind","settings","createdAt"],"additionalProperties":false},"Ids":{"minItems":1,"maxItems":200,"type":"array","items":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},"PostV1ListsByIdMembersBody":{"type":"object","properties":{"profileIds":{"$ref":"#/components/schemas/ProfileIds2"}},"required":["profileIds"]},"ProfileIds2":{"minItems":1,"maxItems":1000,"type":"array","items":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},"PostV1ListsByIdMembersResponse":{"type":"object","properties":{"changed":{"$ref":"#/components/schemas/Conflicts"}},"required":["changed"],"additionalProperties":false},"ItemsItem5":{"type":"object","properties":{"listId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"profileId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"meta":{"type":"object","additionalProperties":{}},"addedAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"source":{"nullable":true,"type":"string"}},"required":["listId","profileId","meta","addedAt","source"],"additionalProperties":false},"Rows":{"type":"array","items":{"$ref":"#/components/schemas/RowsItem"}},"RowsItem":{"type":"object","properties":{"key":{"type":"string"},"events":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"unique":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["key","events","unique"],"additionalProperties":false},"GetV1ListsByIdAbuseReportsResponse":{"type":"object","properties":{"items":{"$ref":"#/components/schemas/Items3"},"nextCursor":{"nullable":true,"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},"required":["items","nextCursor"],"additionalProperties":false},"Items3":{"type":"array","items":{"$ref":"#/components/schemas/ItemsItem6"}},"ItemsItem6":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"jobId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"profileId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"destination":{"nullable":true,"type":"string"},"sourceKind":{"type":"string"},"sourceId":{"type":"string"},"subject":{"nullable":true,"type":"string"},"at":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"}},"required":["id","jobId","profileId","destination","sourceKind","sourceId","subject","at"],"additionalProperties":false},"PostV1BatchesResponse":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"status":{"type":"string","enum":["queued","running","finished","cancelled"]},"total":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"succeeded":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"failed":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"pending":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"stopOnError":{"type":"boolean"},"createdAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"startedAt":{"nullable":true,"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"finishedAt":{"nullable":true,"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"}},"required":["id","status","total","succeeded","failed","pending","stopOnError","createdAt","startedAt","finishedAt"],"additionalProperties":false},"ItemsItem7":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"status":{"type":"string","enum":["complete"]},"sourceTemplateId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"resultTemplateId":{"nullable":true,"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"createdAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"}},"required":["id","status","sourceTemplateId","resultTemplateId","createdAt"],"additionalProperties":false},"ItemsItem8":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"name":{"type":"string"},"tags":{"type":"array","items":{"type":"string"}},"exclusive":{"default":false,"type":"boolean"},"isDefault":{"default":false,"type":"boolean"},"createdAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"}},"required":["id","name","tags","exclusive","isDefault","createdAt"],"additionalProperties":false},"Items4":{"type":"array","items":{"$ref":"#/components/schemas/ItemsItem9"}},"ItemsItem9":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"key":{"type":"string"},"label":{"type":"string"},"type":{"type":"string","enum":["text","textarea","number","date","datetime","time","boolean","enum","multi_enum","phone","email","url","address","file","country","region","timezone","locale"]},"required":{"type":"boolean"},"hidden":{"type":"boolean"},"defaultValue":{"nullable":true},"unique":{"default":false,"type":"boolean"},"selfServe":{"default":false,"type":"boolean"},"precision":{"default":null,"nullable":true,"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"choices":{"nullable":true,"type":"array","items":{"type":"string"}},"position":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"groupKey":{"nullable":true,"type":"string"},"listIds":{"$ref":"#/components/schemas/ListIds2"},"createdAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"}},"required":["id","key","label","type","required","hidden","defaultValue","unique","selfServe","precision","choices","position","groupKey","listIds","createdAt"],"additionalProperties":false},"ListIds2":{"default":[],"type":"array","items":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},"PostV1AttributesFieldsBody":{"type":"object","properties":{"key":{"type":"string","minLength":1,"maxLength":64,"pattern":"^[A-Za-z][A-Za-z0-9_]*$"},"label":{"type":"string","minLength":1,"maxLength":128},"type":{"default":"text","type":"string","enum":["text","textarea","number","date","datetime","time","boolean","enum","multi_enum","phone","email","url","address","file","country","region","timezone","locale"]},"required":{"default":false,"type":"boolean"},"hidden":{"default":false,"type":"boolean"},"defaultValue":{},"unique":{"default":false,"type":"boolean"},"selfServe":{"default":false,"type":"boolean"},"precision":{"nullable":true,"type":"integer","minimum":0,"maximum":10},"choices":{"maxItems":200,"type":"array","items":{"type":"string","minLength":1,"maxLength":128}},"position":{"default":0,"type":"integer","minimum":0,"maximum":10000},"groupKey":{"nullable":true,"type":"string","minLength":1,"maxLength":64},"listIds":{"$ref":"#/components/schemas/ListIds3"}},"required":["key","label"]},"ListIds3":{"maxItems":200,"type":"array","items":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},"Patch":{"type":"object","properties":{"label":{"type":"string","minLength":1,"maxLength":128},"type":{"type":"string","enum":["text","textarea","number","date","datetime","time","boolean","enum","multi_enum","phone","email","url","address","file","country","region","timezone","locale"]},"required":{"type":"boolean"},"hidden":{"type":"boolean"},"defaultValue":{},"unique":{"type":"boolean"},"selfServe":{"type":"boolean"},"precision":{"nullable":true,"type":"integer","minimum":0,"maximum":10},"choices":{"maxItems":200,"type":"array","items":{"type":"string","minLength":1,"maxLength":128}},"position":{"type":"integer","minimum":0,"maximum":10000},"groupKey":{"nullable":true,"type":"string","minLength":1,"maxLength":64},"listIds":{"$ref":"#/components/schemas/ListIds3"}}},"ItemsItem10":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"key":{"type":"string"},"label":{"type":"string"},"eventName":{"type":"string"},"fn":{"type":"string","enum":["count","sum","avg","min","max","first","last","distinct_count","list","keyed_latest","any_of","group","performed_many"]},"property":{"nullable":true,"type":"string"},"keyProperty":{"nullable":true,"type":"string"},"sourceKeys":{"nullable":true,"type":"array","items":{"type":"string"}},"where":{"nullable":true,"type":"object","additionalProperties":{}},"windowDays":{"nullable":true,"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"maxItems":{"nullable":true,"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"status":{"type":"string","enum":["active","paused"]},"lastComputedAt":{"nullable":true,"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"lastChangedCount":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"createdAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"}},"required":["id","key","label","eventName","fn","property","keyProperty","sourceKeys","where","windowDays","maxItems","status","lastComputedAt","lastChangedCount","createdAt"],"additionalProperties":false},"ItemsItem11":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"key":{"type":"string"},"label":{"type":"string"},"position":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"createdAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"}},"required":["id","key","label","position","createdAt"],"additionalProperties":false},"ItemsItem12":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"name":{"type":"string"},"weight":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"createdAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"}},"required":["id","name","weight","createdAt"],"additionalProperties":false},"PostV1StagesByIdProfilesBody":{"type":"object","properties":{"profileId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},"required":["profileId"]},"Group":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"name":{"type":"string"},"displayType":{"type":"string"},"position":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"topicCount":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"createdAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"}},"required":["id","name","displayType","position","createdAt"],"additionalProperties":false},"GetV1AnalyticsAudienceSourcesByKindResponse":{"type":"object","properties":{"items":{"$ref":"#/components/schemas/Items5"},"nextCursor":{"nullable":true,"type":"string"}},"required":["items","nextCursor"],"additionalProperties":false},"Items5":{"type":"array","items":{"$ref":"#/components/schemas/ItemsItem13"}},"ItemsItem13":{"type":"object","properties":{"key":{"type":"string"},"count":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["key","count"],"additionalProperties":false},"GetV1JobsResponse":{"type":"object","properties":{"items":{"$ref":"#/components/schemas/Items6"},"nextCursor":{"nullable":true,"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},"required":["items","nextCursor"],"additionalProperties":false},"Items6":{"type":"array","items":{"$ref":"#/components/schemas/ItemsItem14"}},"ItemsItem14":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"kind":{"type":"string","enum":["bulk","export"]},"op":{"type":"string"},"status":{"type":"string","enum":["queued","running","completed","failed"]},"progress":{"$ref":"#/components/schemas/Progress"},"error":{"nullable":true,"type":"string"},"downloadUrl":{"nullable":true,"type":"string"},"failures":{"$ref":"#/components/schemas/Failures"},"createdAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"finishedAt":{"nullable":true,"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"}},"required":["id","kind","op","status","progress","error","createdAt","finishedAt"],"additionalProperties":false},"Progress":{"type":"object","properties":{"total":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"processed":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"failed":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["total","processed","failed"],"additionalProperties":false},"Failures":{"type":"array","items":{"$ref":"#/components/schemas/FailuresItem"}},"FailuresItem":{"type":"object","properties":{"profileId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"message":{"type":"string"}},"required":["profileId","message"],"additionalProperties":false},"Selector":{"type":"object","properties":{"profileIds":{"$ref":"#/components/schemas/ProfileIds3"},"listId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"segmentId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"all":{"type":"boolean","enum":[true]},"filter":{"$ref":"#/components/schemas/Filter"}}},"ProfileIds3":{"minItems":1,"maxItems":10000,"type":"array","items":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},"Filter":{"type":"object","properties":{"q":{"type":"string","maxLength":200},"tag":{"type":"string","maxLength":64},"tagsAny":{"type":"string","maxLength":640},"tagsAll":{"type":"string","maxLength":640},"listId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"email":{"type":"string","maxLength":320},"phone":{"type":"string","maxLength":40},"createdSince":{"type":"string","format":"date-time"},"createdBefore":{"type":"string","format":"date-time"},"updatedSince":{"type":"string","format":"date-time"},"updatedBefore":{"type":"string","format":"date-time"},"attrKey":{"type":"string","maxLength":128},"attrValue":{"type":"string","maxLength":500},"vip":{"type":"string","enum":["true","false"]},"consentStatus":{"type":"string","enum":["granted","revoked","pending_confirmation","none"]},"consentChannel":{"type":"string","enum":["email","sms","whatsapp","push","postcard"]},"consentSince":{"type":"string","format":"date-time"},"topicId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"country":{"type":"string","maxLength":100},"region":{"type":"string","maxLength":100},"city":{"type":"string","maxLength":100},"segmentId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"eventName":{"type":"string","maxLength":128},"eventSince":{"type":"string","format":"date-time"},"eventBefore":{"type":"string","format":"date-time"},"source":{"type":"string","maxLength":128},"archived":{"type":"string","enum":["only","include"]},"attrOp":{"default":"eq","type":"string","enum":["eq","contains","gt","lt"]}}},"PostV1ExportsActivityBody":{"type":"object","properties":{"from":{"type":"string","format":"date-time"},"to":{"type":"string","format":"date-time"},"channel":{"type":"string","enum":["email","sms","whatsapp"]},"notifyEmail":{"type":"string","format":"email","pattern":"^(?:[A-Za-z0-9_'+\\-]+\\.)*[A-Za-z0-9_'+\\-]*[A-Za-z0-9_+-]@(?:[A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$"}}},"ItemsItem15":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"channel":{"type":"string","enum":["email","sms","whatsapp","push","postcard"]},"key":{"type":"string"},"name":{"type":"string"},"description":{"nullable":true,"type":"string"},"defaultOptIn":{"type":"boolean"},"visibleInPreferenceCenter":{"type":"boolean"},"groupId":{"nullable":true,"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"position":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"createdAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"subscriberCount":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["id","channel","key","name","description","defaultOptIn","visibleInPreferenceCenter","createdAt"],"additionalProperties":false},"PostV1ProfilesByIdConsentBody":{"type":"object","properties":{"channel":{"type":"string","enum":["email","sms","whatsapp","push","postcard"]},"purpose":{"type":"string","enum":["marketing","prospecting","transactional","operational"]},"topicId":{"nullable":true,"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"status":{"type":"string","enum":["granted","revoked","pending_confirmation"]},"legalBasis":{"default":"consent","type":"string","enum":["consent","legitimate_interest","contract","other"]},"source":{"type":"string","enum":["form","import","api","sms_keyword","preference_center","admin","double_opt_in"]},"sourceRef":{"nullable":true,"type":"string","maxLength":256},"disclosureText":{"nullable":true,"type":"string","maxLength":4000},"disclosureVersion":{"nullable":true,"type":"string","maxLength":64},"ip":{"nullable":true,"type":"string","maxLength":64},"userAgent":{"nullable":true,"type":"string","maxLength":512},"proof":{"nullable":true,"type":"object","additionalProperties":{}},"expiresAt":{"nullable":true,"type":"string","format":"date-time"},"revocationScope":{"nullable":true,"type":"string","enum":["topic","channel","all"]}},"required":["channel","purpose","status","source"]},"Items7":{"type":"array","items":{"$ref":"#/components/schemas/ItemsItem16"}},"ItemsItem16":{"type":"object","properties":{"profileId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"channel":{"type":"string","enum":["email","sms","whatsapp","push","postcard"]},"purpose":{"type":"string","enum":["marketing","prospecting","transactional","operational"]},"topicId":{"nullable":true,"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"status":{"type":"string","enum":["granted","revoked","pending_confirmation"]},"recordId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"expiresAt":{"nullable":true,"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"updatedAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"}},"required":["profileId","channel","purpose","topicId","status","recordId","expiresAt","updatedAt"],"additionalProperties":false},"GetV1ProfilesByIdContactPrefsResponse":{"type":"object","properties":{"profileId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"snoozedUntil":{"nullable":true,"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"preferredChannel":{"nullable":true,"type":"string","enum":["email","sms","whatsapp","push","postcard"]},"emailFrequency":{"type":"string","enum":["all","daily","weekly","monthly"]},"smsFrequency":{"type":"string","enum":["all","daily","weekly","monthly"]},"adsOptOut":{"default":false,"type":"boolean"},"trackingOptOut":{"default":false,"type":"boolean"}},"required":["profileId","snoozedUntil","preferredChannel","emailFrequency","smsFrequency","adsOptOut","trackingOptOut"],"additionalProperties":false},"ItemsItem17":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"channel":{"type":"string","enum":["email","sms","whatsapp","push","postcard"]},"valueNormalized":{"type":"string"},"scope":{"type":"string","enum":["global","topic","purpose"]},"topicId":{"nullable":true,"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"purpose":{"nullable":true,"type":"string","enum":["marketing","prospecting","transactional","operational"]},"reason":{"type":"string","enum":["unsubscribe","hard_bounce","complaint","stop_keyword","manual","invalid","dnc"]},"sourceRef":{"nullable":true,"type":"string"},"liftedAt":{"nullable":true,"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"liftedBy":{"nullable":true,"type":"string"},"liftReason":{"nullable":true,"type":"string"},"createdAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"}},"required":["id","channel","valueNormalized","scope","topicId","purpose","reason","sourceRef","liftedAt","liftedBy","liftReason","createdAt"],"additionalProperties":false},"ItemsItem18":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"domain":{"type":"string"},"reason":{"nullable":true,"type":"string"},"createdAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"}},"required":["id","domain","reason","createdAt"],"additionalProperties":false},"Capabilities":{"type":"object","properties":{"send":{"type":"boolean"},"scheduledSend":{"type":"boolean"},"deliveryEvents":{"type":"boolean"},"deliveryDelayEvents":{"type":"boolean"},"complaintEvents":{"type":"boolean"},"openTracking":{"type":"boolean"},"clickTracking":{"type":"boolean"},"suppressionSync":{"type":"boolean"},"templates":{"type":"boolean"},"idempotencyKey":{"type":"boolean"},"safeRetryOnUnknown":{"type":"boolean"},"batchSend":{"type":"boolean"},"customHeaders":{"type":"boolean"},"mms":{"type":"boolean"},"alphanumericSender":{"type":"boolean"},"returnsMessageId":{"type":"boolean"},"bounceEvents":{"type":"string","enum":["none","parsed","native"]},"inboundReplies":{"type":"string","enum":["none","native","separate"]},"webhookAuth":{"type":"string","enum":["hmac","rsa","ecdsa","ed25519","svix","basic_ip","shared_token","twilio_sig","sns","none"]},"rateLimit":{"type":"object","properties":{"perSecond":{"type":"number"},"perMinute":{"type":"number"},"perDay":{"type":"number"},"concurrent":{"type":"number"}},"additionalProperties":false},"maxRecipientsPerCall":{"type":"integer","minimum":0,"exclusiveMinimum":true,"maximum":9007199254740991}},"required":["send","scheduledSend","deliveryEvents","deliveryDelayEvents","complaintEvents","openTracking","clickTracking","suppressionSync","templates","idempotencyKey","safeRetryOnUnknown","batchSend","customHeaders","mms","alphanumericSender","returnsMessageId","bounceEvents","inboundReplies","webhookAuth","rateLimit","maxRecipientsPerCall"],"additionalProperties":false},"ItemsItem19":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"kind":{"type":"string"},"family":{"type":"string","enum":["mailbox","smtp","email_api","sms_api","whatsapp_api","linkedin_api","push_api","print_api"]},"name":{"type":"string"},"purposesAllowed":{"type":"array","items":{"type":"string"}},"capabilities":{"$ref":"#/components/schemas/Capabilities"},"health":{"type":"string","enum":["healthy","degraded","failing","disconnected"]},"healthDetail":{},"lastSuccessAt":{"nullable":true,"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"dailyCap":{"nullable":true,"type":"number"},"hourlyCap":{"nullable":true,"type":"number"},"ramp":{},"timezone":{"nullable":true,"type":"string"},"sendingWindow":{},"config":{"$ref":"#/components/schemas/Config"},"status":{"type":"string","enum":["active","paused","archived"]},"createdAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"}},"required":["id","kind","family","name","purposesAllowed","capabilities","health","healthDetail","lastSuccessAt","dailyCap","hourlyCap","ramp","timezone","sendingWindow","config","status","createdAt"],"additionalProperties":false},"Config":{"type":"object","additionalProperties":{},"description":"Adapter settings. After an automatic pause, `pausedReason` = {reason, metric, value, threshold, sample, at, by, resume}; resuming clears it."},"ItemsItem20":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"connectionId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"channel":{"type":"string","enum":["email","sms","whatsapp","push","postcard"]},"fromEmail":{"nullable":true,"type":"string"},"fromName":{"nullable":true,"type":"string"},"replyTo":{"nullable":true,"type":"string"},"phoneNumber":{"nullable":true,"type":"string"},"senderIdAlpha":{"nullable":true,"type":"string"},"domain":{"nullable":true,"type":"string"},"verifiedAt":{"nullable":true,"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"}},"required":["id","connectionId","channel","fromEmail","fromName","replyTo","phoneNumber","senderIdAlpha","domain","verifiedAt"],"additionalProperties":false},"ItemsItem21":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"domain":{"type":"string"},"spf":{},"dkim":{},"dmarc":{},"mx":{},"lastCheckedAt":{"nullable":true,"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"openTracking":{"nullable":true,"type":"boolean"},"clickTracking":{"nullable":true,"type":"boolean"},"verified":{"type":"boolean"},"records":{"$ref":"#/components/schemas/Records"}},"required":["id","domain","spf","dkim","dmarc","mx","lastCheckedAt"],"additionalProperties":false},"Records":{"type":"array","items":{"$ref":"#/components/schemas/RecordsItem"}},"RecordsItem":{"type":"object","properties":{"purpose":{"type":"string","enum":["ownership","spf","dkim","dmarc"]},"type":{"type":"string","enum":["TXT","CNAME"]},"name":{"type":"string"},"value":{"nullable":true,"type":"string"},"source":{"type":"string","enum":["hermetica","provider"]},"note":{"type":"string"}},"required":["purpose","type","name","value","source"],"additionalProperties":false},"GetV1SenderPoolsResponse":{"type":"object","properties":{"items":{"$ref":"#/components/schemas/Items8"},"nextCursor":{"nullable":true,"type":"string"}},"required":["items","nextCursor"],"additionalProperties":false},"Items8":{"type":"array","items":{"$ref":"#/components/schemas/ItemsItem22"}},"ItemsItem22":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"name":{"type":"string"},"channel":{"type":"string","enum":["email","sms","whatsapp","push","postcard"]},"strategy":{"type":"string","enum":["round_robin","weighted","least_used","sticky_per_recipient"]},"members":{"$ref":"#/components/schemas/Members"},"matchProvider":{"type":"boolean"}},"required":["id","name","channel","strategy","members","matchProvider"],"additionalProperties":false},"Members":{"type":"array","items":{"$ref":"#/components/schemas/MembersItem"}},"MembersItem":{"type":"object","properties":{"connectionId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"senderIdentityId":{"default":null,"nullable":true,"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"weight":{"default":1,"type":"integer","minimum":1,"maximum":1000}},"required":["connectionId","senderIdentityId","weight"],"additionalProperties":false},"MembersItem2":{"type":"object","properties":{"connectionId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"senderIdentityId":{"default":null,"nullable":true,"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"weight":{"default":1,"type":"integer","minimum":1,"maximum":1000}},"required":["connectionId"]},"ItemsItem23":{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":200},"purpose":{"type":"string","enum":["marketing","prospecting","transactional","operational"]},"rules":{"$ref":"#/components/schemas/Rules"},"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},"required":["name","purpose","rules","id"],"additionalProperties":false},"Rules":{"type":"object","properties":{"rules":{"$ref":"#/components/schemas/Rules2"},"fallback":{"$ref":"#/components/schemas/Fallback"}},"required":["rules","fallback"],"additionalProperties":false},"Rules2":{"default":[],"type":"array","items":{"$ref":"#/components/schemas/RulesItem"}},"RulesItem":{"type":"object","properties":{"match":{"type":"object","properties":{"brand":{"type":"string"},"domain":{"type":"string"},"topic":{"type":"string"}},"additionalProperties":false},"target":{"$ref":"#/components/schemas/Target"}},"required":["match","target"],"additionalProperties":false},"Target":{"type":"object","properties":{"poolId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"connectionId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},"additionalProperties":false},"Fallback":{"default":[],"type":"array","items":{"$ref":"#/components/schemas/Target"}},"Rules3":{"type":"object","properties":{"rules":{"$ref":"#/components/schemas/Rules4"},"fallback":{"$ref":"#/components/schemas/Fallback2"}},"additionalProperties":false},"Rules4":{"default":[],"type":"array","items":{"$ref":"#/components/schemas/RulesItem2"}},"RulesItem2":{"type":"object","properties":{"match":{"type":"object","properties":{"brand":{"type":"string"},"domain":{"type":"string"},"topic":{"type":"string"}}},"target":{"$ref":"#/components/schemas/Target2"}},"required":["match","target"]},"Target2":{"type":"object","properties":{"poolId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"connectionId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}},"Fallback2":{"default":[],"type":"array","items":{"$ref":"#/components/schemas/Target2"}},"PostV1ConnectionsByIdSesSetupResponse":{"type":"object","properties":{"domain":{"type":"string"},"verified":{"type":"boolean"},"dkimStatus":{"type":"string"},"mailFromStatus":{"type":"string"},"configurationSet":{"type":"string"},"topicArn":{"type":"string"},"records":{"$ref":"#/components/schemas/Records2"}},"required":["domain","verified","dkimStatus","mailFromStatus","configurationSet","topicArn","records"],"additionalProperties":false},"Records2":{"type":"array","items":{"$ref":"#/components/schemas/RecordsItem2"}},"RecordsItem2":{"type":"object","properties":{"purpose":{"type":"string","enum":["dkim","mail_from_mx","mail_from_spf","dmarc"]},"type":{"type":"string","enum":["CNAME","MX","TXT"]},"name":{"type":"string"},"value":{"type":"string"},"priority":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"required":{"type":"boolean"}},"required":["purpose","type","name","value","required"],"additionalProperties":false},"ItemsItem24":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"provider":{"type":"string"},"name":{"type":"string"},"sandbox":{"type":"boolean"},"clientIp":{"type":"string"},"contactEmail":{"type":"string"},"status":{"type":"string"},"createdAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"}},"required":["id","provider","name","sandbox","clientIp","contactEmail","status","createdAt"],"additionalProperties":false},"PostV1RegistrarPurchaseResponse":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"accountId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"domain":{"type":"string"},"status":{"type":"string"},"chargedAmount":{"nullable":true,"type":"string"},"currency":{"nullable":true,"type":"string"},"orderId":{"nullable":true,"type":"string"},"registeredAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"forwarding":{"$ref":"#/components/schemas/Forwarding"}},"required":["id","accountId","domain","status","chargedAmount","currency","orderId","registeredAt","forwarding"],"additionalProperties":false},"Forwarding":{"type":"object","properties":{"emails":{"$ref":"#/components/schemas/Emails"},"redirects":{"$ref":"#/components/schemas/Redirects"}},"required":["emails","redirects"],"additionalProperties":false},"Emails":{"maxItems":50,"type":"array","items":{"$ref":"#/components/schemas/EmailsItem"}},"EmailsItem":{"type":"object","properties":{"mailbox":{"type":"string","pattern":"^(\\*|[a-z0-9][a-z0-9._+-]{0,63})$"},"forwardTo":{"type":"string","format":"email","pattern":"^(?:[A-Za-z0-9_'+\\-]+\\.)*[A-Za-z0-9_'+\\-]*[A-Za-z0-9_+-]@(?:[A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$"}},"required":["mailbox","forwardTo"],"additionalProperties":false},"Redirects":{"maxItems":2,"type":"array","items":{"$ref":"#/components/schemas/RedirectsItem"}},"RedirectsItem":{"type":"object","properties":{"host":{"type":"string","enum":["@","www"]},"url":{"type":"string","maxLength":500,"format":"uri"},"permanent":{"type":"boolean"}},"required":["host","url","permanent"],"additionalProperties":false},"PostV1EventsResponse":{"type":"object","properties":{"accepted":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"duplicates":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"rejected":{"$ref":"#/components/schemas/Rejected"}},"required":["accepted","duplicates","rejected"],"additionalProperties":false},"Rejected":{"type":"array","items":{"$ref":"#/components/schemas/RejectedItem"}},"RejectedItem":{"type":"object","properties":{"index":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"reason":{"type":"string"}},"required":["index","reason"],"additionalProperties":false},"GetV1EventsResponse":{"type":"object","properties":{"items":{"$ref":"#/components/schemas/Items9"},"nextCursor":{"nullable":true,"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},"required":["items","nextCursor"],"additionalProperties":false},"Items9":{"type":"array","items":{"$ref":"#/components/schemas/ItemsItem25"}},"ItemsItem25":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"name":{"type":"string"},"profileId":{"nullable":true,"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"anonymousId":{"nullable":true,"type":"string"},"occurredAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"source":{"type":"string","enum":["browser","server","integration","system"]},"properties":{"type":"object","additionalProperties":{}},"value":{"nullable":true,"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"currency":{"nullable":true,"type":"string"},"metric":{"$ref":"#/components/schemas/Metric"},"profile":{"$ref":"#/components/schemas/Profile"}},"required":["id","name","profileId","anonymousId","occurredAt","source","properties","value","currency"],"additionalProperties":false},"Metric":{"nullable":true,"type":"object","properties":{"name":{"type":"string"},"category":{"type":"string"},"goal":{"type":"boolean"}},"required":["name","category","goal"],"additionalProperties":false},"Profile":{"nullable":true,"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"email":{"nullable":true,"type":"string"},"firstName":{"nullable":true,"type":"string"},"lastName":{"nullable":true,"type":"string"}},"required":["id","email","firstName","lastName"],"additionalProperties":false},"PostV1EventsBatchBody":{"type":"object","properties":{"events":{"minItems":1,"maxItems":1000,"type":"array","items":{}},"consent":{"type":"object","properties":{"analytics":{"type":"boolean"},"marketing":{"type":"boolean"}}}},"required":["events"]},"PostV1IdentifyBody":{"type":"object","properties":{"anonymousId":{"type":"string","minLength":1,"maxLength":128},"identifiers":{"type":"object","properties":{"email":{"type":"string"},"phone":{"type":"string"},"externalId":{"type":"string","maxLength":256}}},"traits":{"type":"object","additionalProperties":{}},"consent":{"type":"object","properties":{"analytics":{"type":"boolean"},"marketing":{"type":"boolean"}}}},"required":["anonymousId","identifiers"]},"PostV1IdentifyResponse":{"type":"object","properties":{"profileId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"created":{"type":"boolean"}},"required":["profileId","created"],"additionalProperties":false},"GetV1EventsSettingsResponse":{"type":"object","properties":{"serverIngestEnabled":{"type":"boolean"},"primaryKeyAttribute":{"nullable":true,"type":"string"}},"required":["serverIngestEnabled","primaryKeyAttribute"],"additionalProperties":false},"ItemsItem26":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"name":{"type":"string"},"category":{"type":"string","enum":["standard","custom"]},"schema":{"nullable":true,"type":"object","additionalProperties":{"type":"string"}},"enforce":{"type":"boolean"},"goal":{"type":"boolean"},"firstSeenAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"lastSeenAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"}},"required":["id","name","category","schema","enforce","goal","firstSeenAt","lastSeenAt"],"additionalProperties":false},"GetV1TemplatesGithubSyncResponse":{"nullable":true,"type":"object","properties":{"repo":{"type":"string"},"branch":{"type":"string"},"pathPrefix":{"type":"string"},"hasToken":{"type":"boolean"},"lastPushedAt":{"nullable":true,"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"lastPulledAt":{"nullable":true,"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"lastError":{"nullable":true,"type":"string"}},"required":["repo","branch","pathPrefix","hasToken","lastPushedAt","lastPulledAt","lastError"],"additionalProperties":false},"PostV1TemplatesGithubSyncPushResponse":{"type":"object","properties":{"pushed":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"pulled":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"unchanged":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"journeys":{"default":0,"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"segments":{"default":0,"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"skipped":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"reason":{"type":"string"}},"required":["path","reason"],"additionalProperties":false}}},"required":["pushed","pulled","unchanged","journeys","segments","skipped"],"additionalProperties":false},"ItemsItem27":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"manual":{"type":"boolean","enum":[true]},"type":{"type":"string"},"os":{"type":"string"},"browser":{"type":"string"},"brand":{"type":"string"},"model":{"type":"string"},"at":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"by":{"type":"string"}},"required":["id","manual","type","at","by"],"additionalProperties":false},"ItemsItem28":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"manual":{"type":"boolean","enum":[true]},"source":{"type":"string"},"medium":{"type":"string"},"campaign":{"type":"string"},"content":{"type":"string"},"term":{"type":"string"},"note":{"type":"string"},"at":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"by":{"type":"string"}},"required":["id","manual","at","by"],"additionalProperties":false},"GetV1UploadScanResponse":{"nullable":true,"type":"object","properties":{"host":{"type":"string"},"port":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"enabled":{"type":"boolean"}},"required":["host","port","enabled"],"additionalProperties":false},"PostV1AssetsUploadsByIdCompleteResponse":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"filename":{"type":"string"},"contentType":{"type":"string"},"bytes":{"type":"number"},"width":{"type":"number"},"height":{"type":"number"},"url":{"type":"string"},"thumbUrl":{"default":null,"nullable":true,"type":"string"},"altText":{"nullable":true,"type":"string"},"folderId":{"nullable":true,"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"language":{"nullable":true,"type":"string"},"tags":{"default":[],"type":"array","items":{"type":"string"}},"scanStatus":{"default":"unscanned","type":"string","enum":["unscanned","clean","quarantined"]},"access":{"default":"public_indexable","type":"string","enum":["public_indexable","public_not_indexable","private"]},"createdAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"}},"required":["id","filename","contentType","bytes","width","height","url","thumbUrl","altText","folderId","language","tags","scanStatus","access","createdAt"],"additionalProperties":false},"ItemsItem29":{"type":"object","properties":{"userId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"email":{"nullable":true,"type":"string"},"name":{"nullable":true,"type":"string"},"level":{"type":"string","enum":["view","edit"]}},"required":["userId","email","name","level"],"additionalProperties":false},"ItemsItem30":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"workspaceId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"channel":{"type":"string","enum":["email","sms","whatsapp","push","postcard"]},"name":{"type":"string"},"kind":{"type":"string","enum":["blocks","html","text","sms"]},"folder":{"nullable":true,"type":"string"},"tags":{"type":"array","items":{"type":"string"}},"currentVersionId":{"nullable":true,"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"archived":{"type":"boolean"},"folderId":{"nullable":true,"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"brandKitId":{"nullable":true,"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"isDefault":{"default":false,"type":"boolean"},"topicId":{"default":null,"nullable":true,"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"createdBy":{"default":null,"nullable":true,"type":"string"},"createdAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"updatedAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"}},"required":["id","workspaceId","channel","name","kind","folder","tags","currentVersionId","archived","folderId","brandKitId","isDefault","topicId","createdBy","createdAt","updatedAt"],"additionalProperties":false},"Version":{"type":"object","properties":{"body":{"$ref":"#/components/schemas/Body"},"subject":{"default":null,"nullable":true,"type":"string","maxLength":998},"preheader":{"default":null,"nullable":true,"type":"string","maxLength":500},"fromNameOverride":{"default":null,"nullable":true,"type":"string","maxLength":200},"textBody":{"default":null,"nullable":true,"type":"string","maxLength":100000},"fromEmail":{"nullable":true,"type":"string","maxLength":320,"format":"email","pattern":"^(?:[A-Za-z0-9_'+\\-]+\\.)*[A-Za-z0-9_'+\\-]*[A-Za-z0-9_+-]@(?:[A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$"},"replyTo":{"nullable":true,"type":"string","maxLength":1000},"cc":{"$ref":"#/components/schemas/Cc"}},"required":["body"]},"Body":{"oneOf":[{"$ref":"#/components/schemas/BodyVariant"},{"$ref":"#/components/schemas/BodyVariant2"},{"type":"object","properties":{"kind":{"type":"string","enum":["text"]},"text":{"type":"string","maxLength":100000}},"required":["kind","text"]},{"type":"object","properties":{"kind":{"type":"string","enum":["sms"]},"text":{"type":"string","maxLength":1600}},"required":["kind","text"]}]},"BodyVariant":{"type":"object","properties":{"kind":{"type":"string","enum":["blocks"]},"doc":{"$ref":"#/components/schemas/Doc"}},"required":["kind","doc"]},"Doc":{"type":"object","properties":{"version":{"default":1,"type":"number","enum":[1]},"width":{"default":600,"type":"integer","minimum":320,"maximum":800},"background":{"type":"string","maxLength":32,"pattern":"^(#[0-9a-fA-F]{3,8}|[a-zA-Z]+|transparent)$"},"blocks":{"maxItems":100,"type":"array","items":{"$ref":"#/components/schemas/schema0"}},"translations":{"$ref":"#/components/schemas/Translations"}},"required":["blocks"]},"Translations":{"type":"object","additionalProperties":{"$ref":"#/components/schemas/Translations2"}},"Translations2":{"type":"object","properties":{"subject":{"type":"string","maxLength":998},"preheader":{"type":"string","maxLength":500},"blocks":{"maxItems":100,"type":"array","items":{"$ref":"#/components/schemas/schema0"}}},"required":["blocks"]},"BodyVariant2":{"type":"object","properties":{"kind":{"type":"string","enum":["html"]},"html":{"type":"string","maxLength":512000},"authoring":{"type":"string","enum":["markdown","mjml"]},"source":{"type":"string","maxLength":512000}},"required":["kind","html"]},"Cc":{"maxItems":10,"type":"array","items":{"type":"string","maxLength":320,"format":"email","pattern":"^(?:[A-Za-z0-9_'+\\-]+\\.)*[A-Za-z0-9_'+\\-]*[A-Za-z0-9_+-]@(?:[A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$"}},"Failed":{"type":"array","items":{"$ref":"#/components/schemas/FailedItem"}},"FailedItem":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"reason":{"type":"string"}},"required":["id","reason"],"additionalProperties":false},"CurrentVersion":{"nullable":true,"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"templateId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"workspaceId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"body":{"$ref":"#/components/schemas/Body2"},"subject":{"nullable":true,"type":"string"},"preheader":{"nullable":true,"type":"string"},"fromNameOverride":{"nullable":true,"type":"string"},"textBody":{"nullable":true,"type":"string"},"approvalStatus":{"type":"string","enum":["none","pending","approved","rejected"]},"reviewComment":{"nullable":true,"type":"string"},"createdBy":{"nullable":true,"type":"string"},"createdAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"approvedBy":{"nullable":true,"type":"string"},"approvedAt":{"nullable":true,"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"fromEmail":{"default":null,"nullable":true,"type":"string"},"replyTo":{"default":null,"nullable":true,"type":"string"},"cc":{"default":[],"type":"array","items":{"type":"string"}}},"required":["id","templateId","workspaceId","body","subject","preheader","fromNameOverride","textBody","approvalStatus","reviewComment","createdBy","createdAt","approvedBy","approvedAt","fromEmail","replyTo","cc"],"additionalProperties":false},"Body2":{"oneOf":[{"$ref":"#/components/schemas/BodyVariant3"},{"$ref":"#/components/schemas/BodyVariant4"},{"type":"object","properties":{"kind":{"type":"string","enum":["text"]},"text":{"type":"string","maxLength":100000}},"required":["kind","text"],"additionalProperties":false},{"type":"object","properties":{"kind":{"type":"string","enum":["sms"]},"text":{"type":"string","maxLength":1600}},"required":["kind","text"],"additionalProperties":false}]},"BodyVariant3":{"type":"object","properties":{"kind":{"type":"string","enum":["blocks"]},"doc":{"$ref":"#/components/schemas/Doc2"}},"required":["kind","doc"],"additionalProperties":false},"Doc2":{"type":"object","properties":{"version":{"default":1,"type":"number","enum":[1]},"width":{"default":600,"type":"integer","minimum":320,"maximum":800},"background":{"type":"string","maxLength":32,"pattern":"^(#[0-9a-fA-F]{3,8}|[a-zA-Z]+|transparent)$"},"blocks":{"maxItems":100,"type":"array","items":{"$ref":"#/components/schemas/schema0"}},"translations":{"$ref":"#/components/schemas/Translations3"}},"required":["version","width","blocks"],"additionalProperties":false},"Translations3":{"type":"object","additionalProperties":{"$ref":"#/components/schemas/Translations4"}},"Translations4":{"type":"object","properties":{"subject":{"type":"string","maxLength":998},"preheader":{"type":"string","maxLength":500},"blocks":{"maxItems":100,"type":"array","items":{"$ref":"#/components/schemas/schema0"}}},"required":["blocks"],"additionalProperties":false},"BodyVariant4":{"type":"object","properties":{"kind":{"type":"string","enum":["html"]},"html":{"type":"string","maxLength":512000},"authoring":{"type":"string","enum":["markdown","mjml"]},"source":{"type":"string","maxLength":512000}},"required":["kind","html"],"additionalProperties":false},"GetV1TemplatesByIdVersionsResponse":{"type":"object","properties":{"items":{"$ref":"#/components/schemas/Items10"},"nextCursor":{"nullable":true,"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},"required":["items","nextCursor"],"additionalProperties":false},"Items10":{"type":"array","items":{"$ref":"#/components/schemas/ItemsItem31"}},"ItemsItem31":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"templateId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"workspaceId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"body":{"$ref":"#/components/schemas/Body2"},"subject":{"nullable":true,"type":"string"},"preheader":{"nullable":true,"type":"string"},"fromNameOverride":{"nullable":true,"type":"string"},"textBody":{"nullable":true,"type":"string"},"approvalStatus":{"type":"string","enum":["none","pending","approved","rejected"]},"reviewComment":{"nullable":true,"type":"string"},"createdBy":{"nullable":true,"type":"string"},"createdAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"approvedBy":{"nullable":true,"type":"string"},"approvedAt":{"nullable":true,"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"fromEmail":{"default":null,"nullable":true,"type":"string"},"replyTo":{"default":null,"nullable":true,"type":"string"},"cc":{"default":[],"type":"array","items":{"type":"string"}}},"required":["id","templateId","workspaceId","body","subject","preheader","fromNameOverride","textBody","approvalStatus","reviewComment","createdBy","createdAt","approvedBy","approvedAt","fromEmail","replyTo","cc"],"additionalProperties":false},"SegmentIds":{"maxItems":20,"type":"array","items":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},"ItemsItem32":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"workspaceId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"key":{"type":"string","pattern":"^[a-z][a-z0-9_-]{0,63}$"},"channel":{"type":"string","enum":["email","sms","whatsapp","push","postcard"]},"body":{"type":"string"},"locked":{"type":"boolean"},"createdAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"updatedAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"}},"required":["id","workspaceId","key","channel","body","locked","createdAt","updatedAt"],"additionalProperties":false},"PostV1SnippetsBody":{"type":"object","properties":{"key":{"type":"string","pattern":"^[a-z][a-z0-9_-]{0,63}$"},"channel":{"type":"string","enum":["email","sms","whatsapp","push","postcard"]},"body":{"type":"string","maxLength":50000}},"required":["key","channel","body"]},"PostV1SnippetsBulkDeleteBody":{"type":"object","properties":{"ids":{"$ref":"#/components/schemas/ProfileIds"}},"required":["ids"]},"ItemsItem33":{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":200},"logoAssetId":{"default":null,"nullable":true,"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"logoUrl":{"default":null,"nullable":true,"type":"string","maxLength":2048},"colors":{"$ref":"#/components/schemas/Colors"},"fonts":{"default":{},"type":"object","properties":{"heading":{"type":"string","maxLength":100},"body":{"type":"string","maxLength":100}},"additionalProperties":false},"footerHtml":{"default":null,"nullable":true,"type":"string","maxLength":20000},"postalAddress":{"default":null,"nullable":true,"type":"string","maxLength":500},"customCss":{"default":null,"nullable":true,"type":"string","maxLength":50000},"layoutHtml":{"default":null,"nullable":true,"type":"string","maxLength":50000},"isDefault":{"default":false,"type":"boolean"},"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"workspaceId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"createdAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"updatedAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"}},"required":["name","logoAssetId","logoUrl","colors","fonts","footerHtml","postalAddress","customCss","layoutHtml","isDefault","id","workspaceId","createdAt","updatedAt"],"additionalProperties":false},"Colors":{"default":{},"type":"object","properties":{"primary":{"type":"string","maxLength":32},"text":{"type":"string","maxLength":32},"background":{"type":"string","maxLength":32},"accent":{"type":"string","maxLength":32}},"additionalProperties":false},"ItemsItem34":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"kind":{"type":"string","enum":["template","asset"]},"name":{"type":"string"},"parentId":{"nullable":true,"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"itemCount":{"type":"number"},"createdAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"}},"required":["id","kind","name","parentId","itemCount","createdAt"],"additionalProperties":false},"PostV1TemplateFoldersBody":{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":200},"parentId":{"nullable":true,"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},"required":["name"]},"GetV1ContentSettingsResponse":{"type":"object","properties":{"approvalRequired":{"type":"boolean"},"campaignApprovalRequired":{"default":false,"type":"boolean"},"uploadTypes":{"$ref":"#/components/schemas/UploadTypes"},"defaultAssetAccess":{"default":"public_indexable","type":"string","enum":["public_indexable","public_not_indexable","private"]}},"required":["approvalRequired","campaignApprovalRequired","uploadTypes","defaultAssetAccess"],"additionalProperties":false},"UploadTypes":{"default":["image","pdf","video"],"maxItems":7,"type":"array","items":{"type":"string","enum":["image","pdf","video","audio","document","text","archive"]}},"PostV1TemplatesByIdVersionsByVersionIdLinkCheckResponse":{"type":"object","properties":{"pending":{"type":"boolean"},"items":{"$ref":"#/components/schemas/Items11"}},"required":["pending","items"],"additionalProperties":false},"Items11":{"type":"array","items":{"$ref":"#/components/schemas/ItemsItem35"}},"ItemsItem35":{"type":"object","properties":{"url":{"type":"string"},"status":{"nullable":true,"type":"number"},"error":{"nullable":true,"type":"string"},"checkedAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"}},"required":["url","status","error","checkedAt"],"additionalProperties":false},"ItemsItem36":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"domain":{"type":"string"},"status":{"type":"string","enum":["pending","verified","failed"]},"cnameTarget":{"type":"string"},"verifiedAt":{"nullable":true,"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"lastCheckedAt":{"nullable":true,"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"lastError":{"nullable":true,"type":"string"},"createdAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"}},"required":["id","domain","status","cnameTarget","verifiedAt","lastCheckedAt","lastError","createdAt"],"additionalProperties":false},"PostV1TemplatesByIdTestSendResponse":{"type":"object","properties":{"sent":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"blocked":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"jobIds":{"$ref":"#/components/schemas/Conflicts"}},"required":["sent","blocked","jobIds"],"additionalProperties":false},"GetV1SavedSectionsResponse":{"type":"object","properties":{"items":{"$ref":"#/components/schemas/Items12"},"nextCursor":{"nullable":true,"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},"required":["items","nextCursor"],"additionalProperties":false},"Items12":{"type":"array","items":{"$ref":"#/components/schemas/ItemsItem37"}},"ItemsItem37":{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":200},"blocks":{"minItems":1,"maxItems":50,"type":"array","items":{"$ref":"#/components/schemas/schema0"}},"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"workspaceId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"createdAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"updatedAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"}},"required":["name","blocks","id","workspaceId","createdAt","updatedAt"],"additionalProperties":false},"GetV1QaPreviewConnectionResponse":{"type":"object","properties":{"configured":{"type":"boolean"},"vendor":{"nullable":true,"type":"string"},"name":{"nullable":true,"type":"string"},"vendors":{"type":"array","items":{"type":"string"}}},"required":["configured","vendor","name","vendors"],"additionalProperties":false},"Checks":{"type":"array","items":{"$ref":"#/components/schemas/ChecksItem"}},"ChecksItem":{"type":"object","properties":{"id":{"type":"string"},"level":{"type":"string","enum":["good","tip","fix"]},"title":{"type":"string"},"detail":{"type":"string"}},"required":["id","level","title","detail"],"additionalProperties":false},"Stats":{"type":"object","properties":{"words":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"sentences":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"avgSentenceWords":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"links":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"images":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["words","sentences","avgSentenceWords","links","images"],"additionalProperties":false},"PatchV1TemplateFoldersByIdBody":{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":200},"parentId":{"nullable":true,"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}},"ItemsItem38":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"kitId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"kind":{"type":"string","enum":["logo","color","font","button","social_group","email_default","company","competitor"]},"name":{"type":"string"},"data":{"type":"object","additionalProperties":{}},"createdAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"updatedAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"}},"required":["id","kitId","kind","name","data","createdAt","updatedAt"],"additionalProperties":false},"ItemsItem39":{"type":"object","properties":{"resourceType":{"type":"string","enum":["template","saved_section","form","sms","workflow_message","campaign_variant"]},"resourceId":{"type":"string","minLength":1,"maxLength":128},"locale":{"type":"string","maxLength":20,"pattern":"^[A-Za-z]{2,3}([-_][A-Za-z0-9]{2,8})*$"},"status":{"default":"draft","type":"string","enum":["draft","approved"]},"content":{"default":{},"type":"object","additionalProperties":{}},"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"createdAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"updatedAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"}},"required":["resourceType","resourceId","locale","status","content","id","createdAt","updatedAt"],"additionalProperties":false},"PostV1TranslationsBody":{"type":"object","properties":{"resourceType":{"type":"string","enum":["template","saved_section","form","sms","workflow_message","campaign_variant"]},"resourceId":{"type":"string","minLength":1,"maxLength":128},"locale":{"type":"string","maxLength":20,"pattern":"^[A-Za-z]{2,3}([-_][A-Za-z0-9]{2,8})*$"},"status":{"default":"draft","type":"string","enum":["draft","approved"]},"content":{"default":{},"type":"object","additionalProperties":{}}},"required":["resourceType","resourceId","locale"]},"GetV1TrackingSettingsResponse":{"type":"object","properties":{"openTracking":{"type":"boolean"},"clickTracking":{"type":"boolean"},"smsClickTracking":{"type":"boolean"},"includeMachineOpens":{"type":"boolean"},"utmAutoTag":{"type":"boolean"},"utmParams":{"type":"object","additionalProperties":{"type":"string","maxLength":200}},"customParams":{"type":"object","additionalProperties":{"type":"string","maxLength":200}},"clickAllowlist":{"default":[],"maxItems":50,"type":"array","items":{"type":"string","pattern":"^(?=.{3,253}$)([a-z0-9-]+\\.)+[a-z]{2,}$"}},"flowUtmParams":{"default":{},"type":"object","additionalProperties":{"type":"string","maxLength":200}},"flowCustomParams":{"default":{},"type":"object","additionalProperties":{"type":"string","maxLength":200}}},"required":["openTracking","clickTracking","smsClickTracking","includeMachineOpens","utmAutoTag","utmParams","customParams","clickAllowlist","flowUtmParams","flowCustomParams"],"additionalProperties":false},"GetV1ListsByIdOptinTemplateResponse":{"type":"object","properties":{"listId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"subject":{"type":"string"},"html":{"type":"string"},"text":{"nullable":true,"type":"string"},"isDefault":{"type":"boolean"},"updatedAt":{"nullable":true,"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"}},"required":["listId","subject","html","text","isDefault","updatedAt"],"additionalProperties":false},"Campaigns":{"type":"array","items":{"$ref":"#/components/schemas/CampaignsItem"}},"CampaignsItem":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"name":{"type":"string"},"status":{"type":"string"}},"required":["id","name","status"],"additionalProperties":false},"ItemsItem40":{"type":"object","properties":{"locale":{"type":"string"},"status":{"type":"string"},"content":{"type":"object","additionalProperties":{}}},"required":["locale","status","content"],"additionalProperties":false},"ItemsItem41":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"name":{"type":"string"},"description":{"nullable":true,"type":"string"},"folder":{"nullable":true,"type":"string"},"definition":{"$ref":"#/components/schemas/Definition"},"status":{"type":"string","enum":["active","archived"]},"evalStatus":{"type":"string","enum":["pending","ready","failed"]},"lastEvaluatedAt":{"nullable":true,"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"memberCount":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"dependencyKeys":{"type":"array","items":{"type":"string"}},"version":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"subject":{"type":"string"},"starred":{"type":"boolean"},"tags":{"type":"array","items":{"type":"string"}},"createdAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"updatedAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"}},"required":["id","name","description","folder","definition","status","evalStatus","lastEvaluatedAt","memberCount","dependencyKeys","version","subject","starred","createdAt","updatedAt"],"additionalProperties":false},"Definition":{"type":"object","properties":{"type":{"type":"string","enum":["group"]},"op":{"type":"string","enum":["and","or"]},"negate":{"type":"boolean"},"children":{"maxItems":100,"type":"array","items":{"$ref":"#/components/schemas/schema0"}}},"required":["type","op","children"],"additionalProperties":false},"PostV1SegmentsBody":{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":200},"description":{"nullable":true,"type":"string","maxLength":2000},"folder":{"nullable":true,"type":"string","minLength":1,"maxLength":80},"definition":{"$ref":"#/components/schemas/Definition2"},"tags":{"maxItems":50,"type":"array","items":{"type":"string","minLength":1,"maxLength":64}},"subject":{"type":"string","pattern":"^(profile|[a-z][a-z0-9_]{0,62})$"},"starred":{"type":"boolean"}},"required":["name","definition"]},"Definition2":{"type":"object","properties":{"type":{"type":"string","enum":["group"]},"op":{"type":"string","enum":["and","or"]},"negate":{"type":"boolean"},"children":{"maxItems":100,"type":"array","items":{"$ref":"#/components/schemas/schema0"}}},"required":["type","op","children"]},"PostV1SegmentsExplainMatchResponse":{"type":"object","properties":{"segmentId":{"nullable":true,"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"profileId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"matched":{"type":"boolean"},"member":{"nullable":true,"type":"boolean"},"tree":{"$ref":"#/components/schemas/schema0"},"evaluatedAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"}},"required":["segmentId","profileId","matched","member","tree","evaluatedAt"],"additionalProperties":false},"GetV1SegmentsSettingsResponse":{"type":"object","properties":{"spendTiers":{"$ref":"#/components/schemas/SpendTiers"},"geocoder":{"type":"string","enum":["none","opencage"]},"geocoderKeySet":{"type":"boolean"}},"required":["spendTiers","geocoder","geocoderKeySet"],"additionalProperties":false},"SpendTiers":{"type":"object","properties":{"mid":{"type":"number","minimum":0},"high":{"type":"number","minimum":0},"top":{"type":"number","minimum":0}},"required":["mid","high","top"],"additionalProperties":false},"PostV1SegmentsPlacesCheckResponse":{"type":"object","properties":{"placed":{"type":"boolean"},"lat":{"nullable":true,"type":"number"},"lng":{"nullable":true,"type":"number"},"source":{"nullable":true,"type":"string"},"profilesPositioned":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"profilesTotal":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"geocoder":{"type":"string","enum":["none","opencage"]}},"required":["placed","lat","lng","source","profilesPositioned","profilesTotal","geocoder"],"additionalProperties":false},"Values":{"type":"array","items":{"$ref":"#/components/schemas/ValuesItem"}},"ValuesItem":{"type":"object","properties":{"value":{"type":"string"},"count":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["value","count"],"additionalProperties":false},"GetV1SegmentsByIdExportResponse":{"type":"object","properties":{"filename":{"type":"string"},"csv":{"type":"string"},"count":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"truncated":{"type":"boolean"}},"required":["filename","csv","count","truncated"],"additionalProperties":false},"PostV1SegmentsByIdMembersBody":{"type":"object","properties":{"profileIds":{"$ref":"#/components/schemas/ProfileIds4"},"emails":{"$ref":"#/components/schemas/Emails2"}}},"ProfileIds4":{"default":[],"maxItems":5000,"type":"array","items":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},"Emails2":{"default":[],"maxItems":5000,"type":"array","items":{"type":"string","format":"email","pattern":"^(?:[A-Za-z0-9_'+\\-]+\\.)*[A-Za-z0-9_'+\\-]*[A-Za-z0-9_+-]@(?:[A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$"}},"PostV1SegmentsByIdMembersResponse":{"type":"object","properties":{"changed":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"notFound":{"type":"array","items":{"type":"string"}}},"required":["changed","notFound"],"additionalProperties":false},"PostV1SegmentsByIdSnapshotsResponse":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"segmentId":{"nullable":true,"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"takenAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"count":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["id","segmentId","takenAt","count"],"additionalProperties":false},"GetV1SegmentsByIdDiff":{"anyOf":[{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"}]},"Joined":{"type":"object","properties":{"count":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"sample":{"$ref":"#/components/schemas/Sample"}},"required":["count","sample"],"additionalProperties":false},"Sample":{"type":"array","items":{"$ref":"#/components/schemas/SampleItem"}},"SampleItem":{"type":"object","properties":{"profileId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"email":{"nullable":true,"type":"string"},"firstName":{"nullable":true,"type":"string"},"lastName":{"nullable":true,"type":"string"},"at":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"}},"required":["profileId","email","firstName","lastName","at"],"additionalProperties":false},"GetV1MessagesResponse":{"type":"object","properties":{"items":{"$ref":"#/components/schemas/Items13"},"nextCursor":{"nullable":true,"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},"required":["items","nextCursor"],"additionalProperties":false},"Items13":{"type":"array","items":{"$ref":"#/components/schemas/ItemsItem42"}},"ItemsItem42":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"idempotencyKey":{"type":"string"},"purpose":{"type":"string","enum":["marketing","prospecting","transactional","operational"]},"channel":{"type":"string","enum":["email","sms","whatsapp","push","postcard"]},"profileId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"destination":{"nullable":true,"type":"string"},"connectionId":{"nullable":true,"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"senderIdentityId":{"nullable":true,"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"sourceKind":{"type":"string","enum":["campaign","workflow","sequence","api"]},"sourceId":{"type":"string"},"stepKey":{"nullable":true,"type":"string"},"templateVersionId":{"nullable":true,"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"variantKey":{"nullable":true,"type":"string"},"status":{"type":"string","enum":["queued","deferred","blocked","sending","accepted","delivered","bounced","complained","failed","cancelled","needs_reconcile"]},"blockReason":{"nullable":true,"type":"string"},"errorClass":{"nullable":true,"type":"string"},"decisionLog":{"$ref":"#/components/schemas/DecisionLog"},"scheduledFor":{"nullable":true,"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"sentAt":{"nullable":true,"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"providerMessageId":{"nullable":true,"type":"string"},"subject":{"nullable":true,"type":"string"},"tags":{"type":"array","items":{"type":"string"}},"metadata":{"nullable":true,"type":"object","additionalProperties":{"type":"string"}},"createdAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"updatedAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"}},"required":["id","idempotencyKey","purpose","channel","profileId","destination","connectionId","senderIdentityId","sourceKind","sourceId","stepKey","templateVersionId","variantKey","status","blockReason","errorClass","decisionLog","scheduledFor","sentAt","providerMessageId","subject","tags","metadata","createdAt","updatedAt"],"additionalProperties":false},"DecisionLog":{"type":"array","items":{"$ref":"#/components/schemas/DecisionLogItem"}},"DecisionLogItem":{"type":"object","properties":{"stage":{"type":"string"},"outcome":{"type":"string","enum":["allow","block","defer"]},"reason":{"nullable":true,"type":"string"},"at":{"nullable":true,"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"}},"required":["stage","outcome"],"additionalProperties":false},"Route":{"type":"object","properties":{"connectionId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"poolId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"routePolicyId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}},"PostV1MessagesSendResponse":{"type":"object","properties":{"jobId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"status":{"type":"string","enum":["queued","blocked","deferred","duplicate"]},"reason":{"type":"string"}},"required":["jobId","status"],"additionalProperties":false},"To":{"minItems":1,"maxItems":100,"type":"array","items":{"$ref":"#/components/schemas/ToItem"}},"ToItem":{"type":"object","properties":{"profileId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"externalId":{"type":"string","minLength":1,"maxLength":200},"email":{"type":"string","maxLength":320,"format":"email","pattern":"^(?:[A-Za-z0-9_'+\\-]+\\.)*[A-Za-z0-9_'+\\-]*[A-Za-z0-9_+-]@(?:[A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$"},"phone":{"type":"string","minLength":5,"maxLength":32},"name":{"type":"string","maxLength":200},"vars":{"type":"object","additionalProperties":{}},"consent":{"type":"string","enum":["record_optin","require"]}}},"Attachments":{"maxItems":10,"type":"array","items":{"$ref":"#/components/schemas/AttachmentsItem"}},"AttachmentsItem":{"type":"object","properties":{"filename":{"type":"string","minLength":1,"maxLength":255},"contentType":{"type":"string","minLength":1,"maxLength":200},"contentBase64":{"type":"string","minLength":1,"maxLength":14000000},"cid":{"type":"string","maxLength":200}},"required":["filename","contentType","contentBase64"]},"PostV1TransactionalSendResponse":{"type":"object","properties":{"results":{"$ref":"#/components/schemas/Results"}},"required":["results"],"additionalProperties":false},"Results":{"type":"array","items":{"$ref":"#/components/schemas/ResultsItem"}},"ResultsItem":{"type":"object","properties":{"recipient":{"type":"string"},"jobId":{"nullable":true,"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"status":{"type":"string","enum":["queued","scheduled","rejected","invalid","duplicate"]},"reason":{"nullable":true,"type":"string"}},"required":["recipient","jobId","status"],"additionalProperties":false},"ItemsItem43":{"type":"object","properties":{"tag":{"type":"string"},"sent":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"delivered":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"bounced":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"complained":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"blocked":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"opens":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"clicks":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"lastUsedAt":{"nullable":true,"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"}},"required":["tag","sent","delivered","bounced","complained","blocked","opens","clicks","lastUsedAt"],"additionalProperties":false},"ItemsItem44":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"domain":{"type":"string"},"mxVerifiedAt":{"nullable":true,"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"lastCheckedAt":{"nullable":true,"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"mx":{"nullable":true},"expectedMx":{"nullable":true,"type":"string"},"createdAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"receiveUrls":{"type":"object","additionalProperties":{"type":"string"}}},"required":["id","domain","mxVerifiedAt","lastCheckedAt","mx","expectedMx","createdAt"],"additionalProperties":false},"ItemsItem45":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"domainId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"pattern":{"type":"string"},"webhookUrl":{"type":"string"},"enabled":{"type":"boolean"},"createdAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"}},"required":["id","domainId","pattern","webhookUrl","enabled","createdAt"],"additionalProperties":false},"Events":{"type":"array","items":{"$ref":"#/components/schemas/EventsItem"}},"EventsItem":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"routeId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"status":{"type":"string"},"attempts":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"lastError":{"nullable":true,"type":"string"},"createdAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"}},"required":["id","routeId","status","attempts","lastError","createdAt"],"additionalProperties":false},"ItemsItem46":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"connectionId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"connectionName":{"type":"string"},"connectionKind":{"type":"string"},"connectionStatus":{"type":"string"},"channel":{"type":"string"},"fromEmail":{"nullable":true,"type":"string"},"fromName":{"nullable":true,"type":"string"},"replyTo":{"nullable":true,"type":"string"},"phoneNumber":{"nullable":true,"type":"string"},"senderIdAlpha":{"nullable":true,"type":"string"},"domain":{"nullable":true,"type":"string"},"verifiedAt":{"nullable":true,"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"createdAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"dnsChecks":{}},"required":["id","connectionId","connectionName","connectionKind","connectionStatus","channel","fromEmail","fromName","replyTo","phoneNumber","senderIdAlpha","domain","verifiedAt","createdAt"],"additionalProperties":false},"ItemsItem47":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"domainId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"provider":{"type":"string"},"fromAddr":{"type":"string"},"toAddr":{"type":"string"},"subject":{"type":"string"},"text":{"nullable":true,"type":"string"},"html":{"nullable":true,"type":"string"},"attachments":{"$ref":"#/components/schemas/Attachments2"},"receivedAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"}},"required":["id","domainId","provider","fromAddr","toAddr","subject","text","html","attachments","receivedAt"],"additionalProperties":false},"Attachments2":{"type":"array","items":{"$ref":"#/components/schemas/AttachmentsItem2"}},"AttachmentsItem2":{"type":"object","properties":{"filename":{"type":"string"},"contentType":{"type":"string"},"size":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"downloadable":{"type":"boolean"}},"required":["filename","contentType","size","downloadable"],"additionalProperties":false},"ItemsItem48":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"name":{"type":"string"},"description":{"nullable":true,"type":"string"},"channel":{"type":"string","enum":["email","sms","whatsapp","push","postcard"]},"templateId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"settings":{"$ref":"#/components/schemas/Settings3"},"status":{"type":"string"},"createdAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"updatedAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"}},"required":["id","name","description","channel","templateId","settings","status","createdAt","updatedAt"],"additionalProperties":false},"Settings3":{"type":"object","properties":{"subject":{"type":"string","maxLength":998},"fromEmail":{"type":"string","format":"email","pattern":"^(?:[A-Za-z0-9_'+\\-]+\\.)*[A-Za-z0-9_'+\\-]*[A-Za-z0-9_+-]@(?:[A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$"},"fromName":{"type":"string","maxLength":200},"replyTo":{"type":"string","maxLength":1000},"cc":{"$ref":"#/components/schemas/Cc"},"bcc":{"$ref":"#/components/schemas/Cc"},"tags":{"maxItems":10,"type":"array","items":{"type":"string","minLength":1,"maxLength":50,"pattern":"^[\\w.:-]+$"}},"tracking":{"type":"object","properties":{"opens":{"type":"boolean"},"clicks":{"type":"boolean"}},"additionalProperties":false},"route":{"$ref":"#/components/schemas/Route2"}},"additionalProperties":false},"Route2":{"type":"object","properties":{"connectionId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"poolId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"routePolicyId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},"additionalProperties":false},"GetV1TransactionalDefinitionsByIdTranslationsResponse":{"type":"object","properties":{"items":{"$ref":"#/components/schemas/Items14"},"nextCursor":{"nullable":true,"type":"string"}},"required":["items","nextCursor"],"additionalProperties":false},"Items14":{"type":"array","items":{"$ref":"#/components/schemas/ItemsItem49"}},"ItemsItem49":{"type":"object","properties":{"id":{"type":"string"},"locale":{"type":"string"},"status":{"type":"string"},"content":{"type":"object","additionalProperties":{}}},"required":["id","locale","status","content"],"additionalProperties":{}},"PutV1TransactionalDefinitionsByIdTranslationsByLocaleBody":{"type":"object","properties":{"status":{"default":"approved","type":"string","enum":["draft","approved"]},"content":{"type":"object","additionalProperties":{}}},"required":["content"]},"GetV1TransactionalSummaryResponse":{"type":"object","properties":{"items":{"$ref":"#/components/schemas/Items15"},"nextCursor":{"nullable":true,"type":"string"}},"required":["items","nextCursor"],"additionalProperties":false},"Items15":{"type":"array","items":{"$ref":"#/components/schemas/ItemsItem50"}},"ItemsItem50":{"type":"object","properties":{"period":{"type":"string"},"sent":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"delivered":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"bounced":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"complained":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"blocked":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"opens":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"clicks":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["period","sent","delivered","bounced","complained","blocked","opens","clicks"],"additionalProperties":false},"ItemsItem51":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"name":{"type":"string"},"username":{"type":"string"},"lastUsedAt":{"nullable":true,"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"revokedAt":{"nullable":true,"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"createdAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"}},"required":["id","name","username","lastUsedAt","revokedAt","createdAt"],"additionalProperties":false},"PostV1SmtpCredentialsResponse":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"name":{"type":"string"},"username":{"type":"string"},"secret":{"type":"string"}},"required":["id","name","username","secret"],"additionalProperties":false},"GetV1DeliverySettingsResponse":{"type":"object","properties":{"softBounceThreshold":{"type":"integer","minimum":1,"maximum":20},"softBounceWindowDays":{"type":"integer","minimum":1,"maximum":365},"unsubscribeMailbox":{"nullable":true,"type":"string","maxLength":320,"format":"email","pattern":"^(?:[A-Za-z0-9_'+\\-]+\\.)*[A-Za-z0-9_'+\\-]*[A-Za-z0-9_+-]@(?:[A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$"},"transactionalReservePct":{"type":"integer","minimum":0,"maximum":90},"contentBlockScore":{"nullable":true,"type":"number","minimum":1,"maximum":20},"messageRatePerSec":{"nullable":true,"type":"integer","minimum":1,"maximum":1000},"windowMax":{"nullable":true,"type":"integer","minimum":1,"maximum":10000000},"windowSeconds":{"nullable":true,"type":"integer","minimum":1,"maximum":86400},"individualTracking":{"type":"boolean"},"maxRetries":{"nullable":true,"type":"integer","minimum":0,"maximum":10},"retryDelaySeconds":{"nullable":true,"type":"integer","minimum":1,"maximum":3600}},"required":["softBounceThreshold","softBounceWindowDays","unsubscribeMailbox","transactionalReservePct","contentBlockScore","messageRatePerSec","windowMax","windowSeconds","individualTracking","maxRetries","retryDelaySeconds"],"additionalProperties":false},"GetV1SendOptionsBySourceKindBySourceIdResponse":{"type":"object","properties":{"sourceKind":{"type":"string"},"sourceId":{"type":"string"},"attachments":{"$ref":"#/components/schemas/Attachments3"},"headers":{"type":"object","additionalProperties":{"type":"string"}},"profileFileAttrs":{"default":[],"type":"array","items":{"type":"string"}},"cc":{"type":"array","items":{"type":"string"}},"bcc":{"type":"array","items":{"type":"string"}},"postalAddressId":{"nullable":true,"type":"string"},"toName":{"nullable":true,"type":"string"},"strictLiquid":{"nullable":true,"type":"boolean"},"fromOwner":{"type":"boolean"},"updatedAt":{"nullable":true,"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"}},"required":["sourceKind","sourceId","attachments","headers","profileFileAttrs","cc","bcc","postalAddressId","updatedAt"],"additionalProperties":false},"Attachments3":{"type":"array","items":{"$ref":"#/components/schemas/AttachmentsItem3"}},"AttachmentsItem3":{"type":"object","properties":{"filename":{"type":"string"},"contentType":{"type":"string"},"size":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"cid":{"nullable":true,"type":"string"}},"required":["filename","contentType","size"],"additionalProperties":false},"Cc2":{"default":[],"maxItems":5,"type":"array","items":{"type":"string","maxLength":320,"format":"email","pattern":"^(?:[A-Za-z0-9_'+\\-]+\\.)*[A-Za-z0-9_'+\\-]*[A-Za-z0-9_+-]@(?:[A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$"}},"PostWebhooksBounceByWorkspaceIdByConnectionIdGenericResponse":{"type":"object","properties":{"ok":{"type":"boolean","enum":[true]},"received":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"duplicates":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"validationResponse":{"type":"string"}},"required":["ok","received","duplicates"],"additionalProperties":false},"ItemsItem52":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"name":{"type":"string"},"mapping":{"type":"object","additionalProperties":{"type":"string"}},"createdAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"}},"required":["id","name","mapping","createdAt"],"additionalProperties":false},"Mapping":{"type":"object","additionalProperties":{"$ref":"#/components/schemas/Mapping2"}},"Mapping2":{"anyOf":[{"type":"string","enum":["email","phone","externalId","firstName","lastName","timezone","locale","country","city","region","lifecycleStage","unsubscribed","createdAt","topicStatus","ignore"]},{"type":"string","pattern":"^attributes\\.[A-Za-z0-9_]{1,64}$"}]},"ItemsItem53":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"name":{"type":"string"},"url":{"type":"string"},"frequency":{"type":"string","enum":["daily","weekly"]},"enabled":{"type":"boolean"},"listId":{"nullable":true,"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"tags":{"type":"array","items":{"type":"string"}},"lastRunAt":{"nullable":true,"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"lastImportId":{"nullable":true,"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"lastError":{"nullable":true,"type":"string"},"createdAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"}},"required":["id","name","url","frequency","enabled","listId","tags","lastRunAt","lastImportId","lastError","createdAt"],"additionalProperties":false},"ConsentAssertion":{"type":"object","properties":{"channel":{"type":"string","enum":["email","sms","whatsapp","push","postcard"]},"purpose":{"type":"string","enum":["marketing","prospecting","transactional","operational"]},"sourceText":{"type":"string","minLength":1,"maxLength":4000},"attestedBy":{"type":"string","minLength":1,"maxLength":256}},"required":["channel","purpose","sourceText","attestedBy"]},"ListIds4":{"default":[],"maxItems":20,"type":"array","items":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},"Counts":{"type":"object","additionalProperties":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"required":["queued","sent","delivered","bounced","complained","failed","opened","opened_unique","clicked","clicked_unique","replied","unsubscribed"]},"Availability":{"type":"object","additionalProperties":{"type":"string","enum":["available","unavailable","approximate"]},"required":["queued","sent","delivered","bounced","complained","failed","opened","opened_unique","clicked","clicked_unique","replied","unsubscribed"]},"GetV1AnalyticsSourcesByKindByIdSummaryResponse":{"type":"object","properties":{"totals":{"$ref":"#/components/schemas/Counts"},"availability":{"$ref":"#/components/schemas/Availability"}},"required":["totals","availability"],"additionalProperties":false},"ItemsItem54":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"name":{"type":"string"},"channel":{"type":"string","enum":["email","sms","whatsapp","push","postcard"]},"purpose":{"type":"string","enum":["marketing","prospecting","transactional","operational"]},"status":{"type":"string","enum":["draft","scheduled","sending","paused","completed","cancelled","failed"]},"audience":{"$ref":"#/components/schemas/Audience"},"audienceFrozenAt":{"nullable":true,"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"templateId":{"nullable":true,"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"topicId":{"nullable":true,"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"route":{"$ref":"#/components/schemas/Route2"},"schedule":{"$ref":"#/components/schemas/Schedule"},"abTest":{"$ref":"#/components/schemas/AbTest"},"variants":{"$ref":"#/components/schemas/Variants"},"utm":{"nullable":true,"type":"object","additionalProperties":{"type":"string"}},"tracking":{"nullable":true,"type":"object","properties":{"opens":{"type":"boolean"},"clicks":{"type":"boolean"}},"additionalProperties":false},"autoPause":{"$ref":"#/components/schemas/AutoPause"},"slug":{"nullable":true,"type":"string"},"archiveProfile":{"nullable":true,"type":"object","additionalProperties":{"type":"string"}},"inArchive":{"type":"boolean"},"ownerId":{"nullable":true,"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"startsOn":{"nullable":true,"type":"string"},"endsOn":{"nullable":true,"type":"string"},"notes":{"nullable":true,"type":"string"},"approvalStatus":{"type":"string"},"approvedBy":{"nullable":true,"type":"string"},"approvalSubmittedBy":{"nullable":true,"type":"string"},"approvalComment":{"nullable":true,"type":"string"},"startedAt":{"nullable":true,"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"completedAt":{"nullable":true,"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"testSentAt":{"nullable":true,"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"contentErasedAt":{"nullable":true,"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"stats":{"type":"object","additionalProperties":{"type":"number"}},"archivedAt":{"nullable":true,"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"parentCampaignId":{"nullable":true,"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"reviewDrafts":{"type":"boolean"},"reviewDeadline":{"$ref":"#/components/schemas/ReviewDeadline"},"failureReason":{"nullable":true,"type":"string"},"createdAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"updatedAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"}},"required":["id","name","channel","purpose","status","audience","audienceFrozenAt","templateId","topicId","route","schedule","abTest","utm","tracking","autoPause","slug","archiveProfile","inArchive","approvalStatus","approvedBy","startedAt","completedAt","testSentAt","stats","createdAt","updatedAt"],"additionalProperties":false},"Audience":{"type":"object","properties":{"includeSegmentIds":{"$ref":"#/components/schemas/IncludeSegmentIds"},"includeListIds":{"$ref":"#/components/schemas/IncludeSegmentIds"},"excludeSegmentIds":{"$ref":"#/components/schemas/IncludeSegmentIds"},"excludeListIds":{"$ref":"#/components/schemas/IncludeSegmentIds"},"onePerCompany":{"type":"boolean"},"everyone":{"type":"boolean"},"includeTags":{"maxItems":50,"type":"array","items":{"type":"string","minLength":1,"maxLength":64}},"excludeTags":{"maxItems":50,"type":"array","items":{"type":"string","minLength":1,"maxLength":64}}},"required":["includeSegmentIds","includeListIds","excludeSegmentIds","excludeListIds"],"additionalProperties":false},"IncludeSegmentIds":{"default":[],"maxItems":50,"type":"array","items":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},"Schedule":{"nullable":true,"type":"object","properties":{"at":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"tz":{"default":"UTC","type":"string","minLength":1,"maxLength":64},"recipientLocal":{"default":false,"type":"boolean"},"throttlePerHour":{"type":"integer","minimum":1,"maximum":1000000},"window":{"$ref":"#/components/schemas/Window"},"sendTime":{"default":"fixed","type":"string","enum":["fixed","optimized"]},"pastZones":{"type":"string","enum":["immediately","tomorrow"]},"batchSize":{"type":"integer","minimum":10,"maximum":1000}},"required":["at","tz","recipientLocal","sendTime"],"additionalProperties":false},"Window":{"type":"object","properties":{"startMin":{"type":"integer","minimum":0,"maximum":1440},"endMin":{"type":"integer","minimum":0,"maximum":1440}},"required":["startMin","endMin"],"additionalProperties":false},"AbTest":{"nullable":true,"type":"object","properties":{"testPercent":{"default":20,"type":"integer","minimum":1,"maximum":100},"metric":{"default":"clicks","type":"string","enum":["clicks","replies","conversions","revenue","opens"]},"waitHours":{"default":4,"type":"integer","minimum":1,"maximum":48},"auto":{"default":true,"type":"boolean"},"method":{"default":"bayesian_beta","type":"string","enum":["bayesian_beta","frequentist_ztest"]}},"required":["testPercent","metric","waitHours","auto","method"],"additionalProperties":false},"Variants":{"type":"array","items":{"$ref":"#/components/schemas/VariantsItem"}},"VariantsItem":{"type":"object","properties":{"key":{"type":"string","minLength":1,"maxLength":32},"templateVersionId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"subject":{"nullable":true,"type":"string","maxLength":998},"fromName":{"nullable":true,"type":"string","maxLength":200},"previewText":{"nullable":true,"type":"string","maxLength":300},"replyTo":{"nullable":true,"type":"string","maxLength":1000},"imageAssetId":{"nullable":true,"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"sendOffset":{"default":0,"type":"integer","minimum":0,"maximum":10080},"weight":{"default":1,"type":"integer","minimum":1,"maximum":1000}},"required":["key","templateVersionId","sendOffset","weight"],"additionalProperties":false},"AutoPause":{"nullable":true,"type":"object","properties":{"enabled":{"default":true,"type":"boolean"},"maxFailureRate":{"default":0.25,"type":"number","minimum":0,"maximum":1},"maxBounceRate":{"default":0.1,"type":"number","minimum":0,"maximum":1},"minSample":{"default":50,"type":"integer","minimum":10,"maximum":100000}},"required":["enabled","maxFailureRate","maxBounceRate","minSample"],"additionalProperties":false},"ReviewDeadline":{"nullable":true,"type":"object","properties":{"hours":{"type":"integer","minimum":1,"maximum":720},"action":{"type":"string","enum":["send","skip"]}},"required":["hours","action"],"additionalProperties":false},"Schedule2":{"nullable":true,"type":"object","properties":{"at":{"type":"string","format":"date-time"},"tz":{"default":"UTC","type":"string","minLength":1,"maxLength":64},"recipientLocal":{"default":false,"type":"boolean"},"throttlePerHour":{"type":"integer","minimum":1,"maximum":1000000},"window":{"type":"object","properties":{"startMin":{"type":"integer","minimum":0,"maximum":1440},"endMin":{"type":"integer","minimum":0,"maximum":1440}},"required":["startMin","endMin"]},"sendTime":{"default":"fixed","type":"string","enum":["fixed","optimized"]},"pastZones":{"type":"string","enum":["immediately","tomorrow"]},"batchSize":{"type":"integer","minimum":10,"maximum":1000}},"required":["at"]},"AutoPause2":{"nullable":true,"type":"object","properties":{"enabled":{"default":true,"type":"boolean"},"maxFailureRate":{"default":0.25,"type":"number","minimum":0,"maximum":1},"maxBounceRate":{"default":0.1,"type":"number","minimum":0,"maximum":1},"minSample":{"default":50,"type":"integer","minimum":10,"maximum":100000}}},"VariantsItem2":{"type":"object","properties":{"key":{"type":"string","minLength":1,"maxLength":32},"templateVersionId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"subject":{"nullable":true,"type":"string","maxLength":998},"fromName":{"nullable":true,"type":"string","maxLength":200},"previewText":{"nullable":true,"type":"string","maxLength":300},"replyTo":{"nullable":true,"type":"string","maxLength":1000},"imageAssetId":{"nullable":true,"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"sendOffset":{"default":0,"type":"integer","minimum":0,"maximum":10080},"weight":{"default":1,"type":"integer","minimum":1,"maximum":1000}},"required":["key","templateVersionId"]},"AbTest2":{"nullable":true,"type":"object","properties":{"testPercent":{"default":20,"type":"integer","minimum":1,"maximum":100},"metric":{"default":"clicks","type":"string","enum":["clicks","replies","conversions","revenue","opens"]},"waitHours":{"default":4,"type":"integer","minimum":1,"maximum":48},"auto":{"default":true,"type":"boolean"},"method":{"default":"bayesian_beta","type":"string","enum":["bayesian_beta","frequentist_ztest"]}}},"ReviewDeadline2":{"nullable":true,"type":"object","properties":{"hours":{"type":"integer","minimum":1,"maximum":720},"action":{"type":"string","enum":["send","skip"]}},"required":["hours","action"]},"Audience2":{"type":"object","properties":{"includeSegmentIds":{"$ref":"#/components/schemas/IncludeSegmentIds"},"includeListIds":{"$ref":"#/components/schemas/IncludeSegmentIds"},"excludeSegmentIds":{"$ref":"#/components/schemas/IncludeSegmentIds"},"excludeListIds":{"$ref":"#/components/schemas/IncludeSegmentIds"},"onePerCompany":{"type":"boolean"},"everyone":{"type":"boolean"},"includeTags":{"maxItems":50,"type":"array","items":{"type":"string","minLength":1,"maxLength":64}},"excludeTags":{"maxItems":50,"type":"array","items":{"type":"string","minLength":1,"maxLength":64}}}},"PostV1CampaignsBulkDeleteBody":{"type":"object","properties":{"ids":{"$ref":"#/components/schemas/Ids"}},"required":["ids"]},"Emails3":{"default":[],"maxItems":20,"type":"array","items":{"type":"string","format":"email","pattern":"^(?:[A-Za-z0-9_'+\\-]+\\.)*[A-Za-z0-9_'+\\-]*[A-Za-z0-9_+-]@(?:[A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$"}},"PushToken":{"type":"object","properties":{"token":{"type":"string","minLength":1,"maxLength":4096},"vendor":{"type":"string","enum":["apns","fcm","expo","web_push"]},"platform":{"type":"string","enum":["ios","android","web"]},"appId":{"type":"string","maxLength":200}},"required":["token","vendor","platform"]},"Links":{"type":"array","items":{"$ref":"#/components/schemas/LinksItem"}},"LinksItem":{"type":"object","properties":{"url":{"type":"string"},"total":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"unique":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["url","total","unique"],"additionalProperties":false},"ItemsItem55":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"name":{"type":"string"},"emails":{"type":"array","items":{"type":"string"}},"phones":{"type":"array","items":{"type":"string"}},"createdAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"updatedAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"}},"required":["id","name","emails","phones","createdAt","updatedAt"],"additionalProperties":false},"PostV1SeedListsBody":{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":200},"emails":{"$ref":"#/components/schemas/Emails4"},"phones":{"default":[],"maxItems":200,"type":"array","items":{"type":"string","minLength":5,"maxLength":32}}},"required":["name"]},"Emails4":{"default":[],"maxItems":200,"type":"array","items":{"type":"string","format":"email","pattern":"^(?:[A-Za-z0-9_'+\\-]+\\.)*[A-Za-z0-9_'+\\-]*[A-Za-z0-9_+-]@(?:[A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$"}},"ItemsItem56":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"campaignId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"reason":{"type":"string"},"createdBy":{"type":"string"},"createdAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"messages":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"templateId":{"nullable":true,"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},"required":["id","campaignId","reason","createdBy","createdAt","messages","templateId"],"additionalProperties":false},"PostV1CampaignFoldersBatchBodyVariant":{"type":"object","properties":{"op":{"type":"string","enum":["read"]},"ids":{"$ref":"#/components/schemas/Ids2"}},"required":["op","ids"]},"Ids2":{"minItems":1,"maxItems":50,"type":"array","items":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},"PostV1CampaignFoldersBatchBodyVariant2":{"type":"object","properties":{"op":{"type":"string","enum":["archive"]},"ids":{"$ref":"#/components/schemas/Ids2"}},"required":["op","ids"]},"Items16":{"type":"array","items":{"$ref":"#/components/schemas/ItemsItem57"}},"ItemsItem57":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"name":{"type":"string"},"campaigns":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"createdAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"owner":{"nullable":true,"type":"string"},"notes":{"nullable":true,"type":"string"},"utmCampaign":{"nullable":true,"type":"string"},"startsOn":{"nullable":true,"type":"string"},"endsOn":{"nullable":true,"type":"string"}},"required":["id","name","campaigns","createdAt","owner","notes","utmCampaign","startsOn","endsOn"],"additionalProperties":false},"PutV1CampaignsByIdFolderBody":{"type":"object","properties":{"folderId":{"nullable":true,"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},"required":["folderId"]},"ItemsItem58":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"campaignId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"position":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"channel":{"type":"string","enum":["email","sms","whatsapp","push","postcard"]},"label":{"nullable":true,"type":"string"},"subject":{"nullable":true,"type":"string"},"previewText":{"nullable":true,"type":"string"},"fromName":{"nullable":true,"type":"string"},"replyTo":{"nullable":true,"type":"string"},"templateId":{"nullable":true,"type":"string"},"templateVersionId":{"nullable":true,"type":"string"},"imageAssetId":{"nullable":true,"type":"string"},"renderOptions":{"type":"object","additionalProperties":{}},"sendAt":{"nullable":true,"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"}},"required":["id","campaignId","position","channel","label","subject","previewText","fromName","replyTo","templateId","templateVersionId","imageAssetId","renderOptions"],"additionalProperties":{}},"GetV1CampaignsByIdContentResponse":{"type":"object","properties":{"messageId":{"nullable":true,"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"source":{"type":"string","enum":["template","html","blocks","none"]},"templateId":{"nullable":true,"type":"string"},"templateVersionId":{"nullable":true,"type":"string"},"html":{"nullable":true,"type":"string"},"plainText":{"nullable":true,"type":"string"},"blocks":{"nullable":true}},"required":["messageId","source","templateId","templateVersionId","html","plainText","blocks"],"additionalProperties":false},"PutV1CampaignsByIdContentBody":{"type":"object","properties":{"template":{"$ref":"#/components/schemas/Template"},"html":{"type":"string","maxLength":2000000},"url":{"type":"string","maxLength":2000,"format":"uri"},"blocks":{"type":"object","additionalProperties":{}},"plainText":{"type":"string","maxLength":500000}}},"Template":{"type":"object","properties":{"templateId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"versionId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},"required":["templateId"]},"PostV1CampaignsByIdRecipientEstimationsResponse":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"campaignId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"status":{"type":"string","enum":["queued","complete","failed"]},"createdAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"completedAt":{"nullable":true,"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"result":{"$ref":"#/components/schemas/Result"}},"required":["id","campaignId","status","createdAt","completedAt","result"],"additionalProperties":false},"Result":{"nullable":true,"type":"object","properties":{"audience":{"type":"number"},"suppressed":{"type":"number"},"unconsented":{"type":"number"},"estimated":{"type":"number"},"included":{"type":"number"},"excludedBy":{"$ref":"#/components/schemas/ExcludedBy"},"reasons":{"type":"object","additionalProperties":{"type":"number"}}},"required":["audience","suppressed","unconsented","estimated"],"additionalProperties":false},"ExcludedBy":{"type":"array","items":{"$ref":"#/components/schemas/ExcludedByItem"}},"ExcludedByItem":{"type":"object","properties":{"kind":{"type":"string","enum":["segment","list","tag"]},"id":{"type":"string"},"removed":{"type":"number"}},"required":["kind","id","removed"],"additionalProperties":false},"ItemsItem59":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"campaignId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"parentId":{"nullable":true,"type":"string"},"authorId":{"type":"string"},"body":{"type":"string"},"resolved":{"type":"boolean"},"createdAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"}},"required":["id","campaignId","parentId","authorId","body","resolved","createdAt"],"additionalProperties":false},"GetV1CampaignsByIdRssResponse":{"type":"object","properties":{"campaignId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"feedUrl":{"type":"string"},"everyHours":{"type":"number"},"active":{"type":"boolean"},"lastGuid":{"nullable":true,"type":"string"},"lastCheckedAt":{"nullable":true,"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"}},"required":["campaignId","feedUrl","everyHours","active","lastGuid","lastCheckedAt"],"additionalProperties":false},"GetV1CampaignsByIdVariantsResponse":{"type":"object","properties":{"items":{"$ref":"#/components/schemas/Items17"},"nextCursor":{"nullable":true,"type":"string"}},"required":["items","nextCursor"],"additionalProperties":false},"Items17":{"type":"array","items":{"$ref":"#/components/schemas/ItemsItem60"}},"ItemsItem60":{"type":"object","properties":{"key":{"type":"string"},"templateVersionId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"subject":{"nullable":true,"type":"string"},"fromName":{"nullable":true,"type":"string"},"previewText":{"nullable":true,"type":"string"},"replyTo":{"nullable":true,"type":"string"},"imageAssetId":{"nullable":true,"type":"string"},"sendOffset":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"weight":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["key","templateVersionId","subject","fromName","previewText","replyTo","imageAssetId","sendOffset","weight"],"additionalProperties":false},"PutV1CampaignsByIdVariantsByKeyBody":{"type":"object","properties":{"templateVersionId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"subject":{"nullable":true,"type":"string","maxLength":998},"fromName":{"nullable":true,"type":"string","maxLength":200},"previewText":{"nullable":true,"type":"string","maxLength":300},"replyTo":{"nullable":true,"type":"string","maxLength":1000},"imageAssetId":{"nullable":true,"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"sendOffset":{"default":0,"type":"integer","minimum":0,"maximum":10080},"weight":{"default":1,"type":"integer","minimum":1,"maximum":1000}},"required":["templateVersionId"]},"PostV1CampaignsByIdSendReportResponse":{"type":"object","properties":{"sent":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"blocked":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["sent","blocked"],"additionalProperties":false},"GetV1ReportsByIdProductsResponse":{"type":"object","properties":{"items":{"$ref":"#/components/schemas/Items18"},"nextCursor":{"nullable":true,"type":"string"}},"required":["items","nextCursor"],"additionalProperties":false},"Items18":{"type":"array","items":{"$ref":"#/components/schemas/ItemsItem61"}},"ItemsItem61":{"type":"object","properties":{"productId":{"nullable":true,"type":"string"},"title":{"nullable":true,"type":"string"},"orders":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"units":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"revenueMinor":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["productId","title","orders","units","revenueMinor"],"additionalProperties":false},"Emails5":{"default":[],"maxItems":10000,"type":"array","items":{"type":"string","format":"email","pattern":"^(?:[A-Za-z0-9_'+\\-]+\\.)*[A-Za-z0-9_'+\\-]*[A-Za-z0-9_+-]@(?:[A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$"}},"PostV1CampaignsByIdTriggersResponse":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"campaignId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"status":{"type":"string","enum":["queued","running","complete","failed","cancelled"]},"requested":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"sent":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"blocked":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"errors":{"type":"array","items":{"type":"object","properties":{"recipient":{"type":"string"},"message":{"type":"string"}},"required":["recipient","message"],"additionalProperties":false}},"createdAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"completedAt":{"nullable":true,"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"}},"required":["id","campaignId","status","requested","sent","blocked","errors","createdAt","completedAt"],"additionalProperties":false},"Items19":{"type":"array","items":{"$ref":"#/components/schemas/ItemsItem62"}},"ItemsItem62":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"name":{"type":"string"},"purpose":{"type":"string","enum":["marketing","prospecting","transactional","operational"]},"mode":{"type":"string","enum":["journey","sequence"]},"status":{"type":"string","enum":["draft","live","paused","archived"]},"publishedVersionId":{"nullable":true,"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"folder":{"nullable":true,"type":"string"},"tags":{"type":"array","items":{"type":"string"}},"color":{"nullable":true,"type":"string"},"draftGraph":{},"draftTriggers":{},"draftSettings":{},"ab":{"$ref":"#/components/schemas/Ab"},"createdAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"updatedAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"}},"required":["id","name","purpose","mode","status","publishedVersionId","folder","tags","draftGraph","draftTriggers","draftSettings","createdAt","updatedAt"],"additionalProperties":false},"Ab":{"nullable":true,"type":"object","properties":{"variants":{"$ref":"#/components/schemas/Variants2"},"startedAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"}},"required":["variants","startedAt"],"additionalProperties":false},"Variants2":{"type":"array","items":{"$ref":"#/components/schemas/VariantsItem3"}},"VariantsItem3":{"type":"object","properties":{"versionId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"weight":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["versionId","weight"],"additionalProperties":false},"Graph":{"type":"object","properties":{"start":{"default":null,"nullable":true,"type":"string","minLength":1,"maxLength":64},"nodes":{"$ref":"#/components/schemas/Nodes"},"edges":{"$ref":"#/components/schemas/Edges"}},"required":["nodes","edges"]},"Nodes":{"maxItems":501,"type":"array","items":{"$ref":"#/components/schemas/NodesItem"}},"NodesItem":{"oneOf":[{"$ref":"#/components/schemas/NodesItemVariant"},{"$ref":"#/components/schemas/NodesItemVariant2"},{"$ref":"#/components/schemas/NodesItemVariant3"},{"$ref":"#/components/schemas/NodesItemVariant4"},{"$ref":"#/components/schemas/NodesItemVariant5"},{"$ref":"#/components/schemas/NodesItemVariant6"},{"$ref":"#/components/schemas/NodesItemVariant7"},{"$ref":"#/components/schemas/NodesItemVariant8"},{"$ref":"#/components/schemas/NodesItemVariant9"},{"$ref":"#/components/schemas/NodesItemVariant10"},{"$ref":"#/components/schemas/NodesItemVariant11"},{"$ref":"#/components/schemas/NodesItemVariant12"},{"$ref":"#/components/schemas/NodesItemVariant13"},{"$ref":"#/components/schemas/NodesItemVariant14"},{"$ref":"#/components/schemas/NodesItemVariant15"},{"$ref":"#/components/schemas/NodesItemVariant16"},{"$ref":"#/components/schemas/NodesItemVariant17"},{"$ref":"#/components/schemas/NodesItemVariant18"},{"$ref":"#/components/schemas/NodesItemVariant19"},{"$ref":"#/components/schemas/NodesItemVariant20"},{"$ref":"#/components/schemas/NodesItemVariant21"},{"$ref":"#/components/schemas/NodesItemVariant22"},{"$ref":"#/components/schemas/NodesItemVariant23"},{"$ref":"#/components/schemas/NodesItemVariant24"},{"$ref":"#/components/schemas/NodesItemVariant25"},{"$ref":"#/components/schemas/NodesItemVariant26"},{"$ref":"#/components/schemas/NodesItemVariant27"},{"$ref":"#/components/schemas/NodesItemVariant28"},{"$ref":"#/components/schemas/NodesItemVariant29"},{"$ref":"#/components/schemas/NodesItemVariant30"},{"$ref":"#/components/schemas/NodesItemVariant31"},{"$ref":"#/components/schemas/NodesItemVariant32"},{"$ref":"#/components/schemas/NodesItemVariant33"},{"$ref":"#/components/schemas/NodesItemVariant34"},{"$ref":"#/components/schemas/NodesItemVariant35"},{"$ref":"#/components/schemas/NodesItemVariant36"},{"$ref":"#/components/schemas/NodesItemVariant37"},{"$ref":"#/components/schemas/NodesItemVariant38"},{"$ref":"#/components/schemas/NodesItemVariant39"},{"$ref":"#/components/schemas/NodesItemVariant40"},{"$ref":"#/components/schemas/NodesItemVariant41"},{"$ref":"#/components/schemas/NodesItemVariant42"},{"$ref":"#/components/schemas/NodesItemVariant43"},{"$ref":"#/components/schemas/NodesItemVariant44"},{"$ref":"#/components/schemas/NodesItemVariant45"},{"$ref":"#/components/schemas/NodesItemVariant46"},{"$ref":"#/components/schemas/NodesItemVariant47"},{"$ref":"#/components/schemas/NodesItemVariant48"},{"$ref":"#/components/schemas/NodesItemVariant49"},{"$ref":"#/components/schemas/NodesItemVariant50"},{"$ref":"#/components/schemas/NodesItemVariant51"},{"$ref":"#/components/schemas/NodesItemVariant52"},{"$ref":"#/components/schemas/NodesItemVariant53"},{"$ref":"#/components/schemas/NodesItemVariant54"},{"$ref":"#/components/schemas/NodesItemVariant55"},{"$ref":"#/components/schemas/NodesItemVariant56"},{"$ref":"#/components/schemas/NodesItemVariant57"},{"$ref":"#/components/schemas/NodesItemVariant58"},{"$ref":"#/components/schemas/NodesItemVariant59"},{"$ref":"#/components/schemas/NodesItemVariant60"},{"$ref":"#/components/schemas/NodesItemVariant61"},{"$ref":"#/components/schemas/NodesItemVariant62"},{"$ref":"#/components/schemas/NodesItemVariant63"},{"$ref":"#/components/schemas/NodesItemVariant64"},{"$ref":"#/components/schemas/NodesItemVariant65"},{"$ref":"#/components/schemas/NodesItemVariant66"},{"$ref":"#/components/schemas/NodesItemVariant67"},{"$ref":"#/components/schemas/NodesItemVariant68"},{"$ref":"#/components/schemas/NodesItemVariant69"},{"$ref":"#/components/schemas/NodesItemVariant70"},{"$ref":"#/components/schemas/NodesItemVariant71"},{"$ref":"#/components/schemas/NodesItemVariant72"},{"$ref":"#/components/schemas/NodesItemVariant73"},{"$ref":"#/components/schemas/NodesItemVariant74"},{"$ref":"#/components/schemas/NodesItemVariant75"},{"$ref":"#/components/schemas/NodesItemVariant76"},{"$ref":"#/components/schemas/NodesItemVariant77"},{"$ref":"#/components/schemas/NodesItemVariant78"},{"$ref":"#/components/schemas/NodesItemVariant79"},{"$ref":"#/components/schemas/NodesItemVariant80"},{"$ref":"#/components/schemas/NodesItemVariant81"},{"$ref":"#/components/schemas/NodesItemVariant82"},{"$ref":"#/components/schemas/NodesItemVariant83"},{"$ref":"#/components/schemas/NodesItemVariant84"},{"$ref":"#/components/schemas/NodesItemVariant85"}]},"NodesItemVariant":{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":64},"type":{"type":"string","enum":["send_email"]},"config":{"$ref":"#/components/schemas/Config2"},"position":{"type":"object","properties":{"x":{"type":"number"},"y":{"type":"number"}},"required":["x","y"]},"name":{"type":"string","maxLength":80}},"required":["id","type","config"]},"Config2":{"type":"object","properties":{"templateId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"versionId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"route":{"$ref":"#/components/schemas/Route"},"topicId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"replyToStep":{"type":"string","minLength":1,"maxLength":64},"onBlocked":{"default":"continue","type":"string","enum":["continue","exit"]},"skipOnFailure":{"type":"boolean"},"skipIfMessagedWithinHours":{"type":"integer","minimum":1,"maximum":720},"filter":{"$ref":"#/components/schemas/Definition2"},"retries":{"type":"integer","minimum":0,"maximum":5},"senderIdentityId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"replyTo":{"type":"string","maxLength":1000},"oneClickUnsubscribe":{"type":"boolean"}},"required":["templateId","route"]},"NodesItemVariant2":{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":64},"type":{"type":"string","enum":["send_sms"]},"config":{"$ref":"#/components/schemas/Config3"},"position":{"type":"object","properties":{"x":{"type":"number"},"y":{"type":"number"}},"required":["x","y"]},"name":{"type":"string","maxLength":80}},"required":["id","type","config"]},"Config3":{"type":"object","properties":{"templateId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"versionId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"route":{"$ref":"#/components/schemas/Route"},"topicId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"replyToStep":{"type":"string","minLength":1,"maxLength":64},"onBlocked":{"default":"continue","type":"string","enum":["continue","exit"]},"skipOnFailure":{"type":"boolean"},"skipIfMessagedWithinHours":{"type":"integer","minimum":1,"maximum":720},"filter":{"$ref":"#/components/schemas/Definition2"},"retries":{"type":"integer","minimum":0,"maximum":5},"senderIdentityId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"replyTo":{"type":"string","maxLength":1000},"oneClickUnsubscribe":{"type":"boolean"},"purpose":{"type":"string","enum":["marketing","prospecting","transactional","operational"]}},"required":["templateId","route"]},"NodesItemVariant3":{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":64},"type":{"type":"string","enum":["send_whatsapp"]},"config":{"$ref":"#/components/schemas/Config3"},"position":{"type":"object","properties":{"x":{"type":"number"},"y":{"type":"number"}},"required":["x","y"]},"name":{"type":"string","maxLength":80}},"required":["id","type","config"]},"NodesItemVariant4":{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":64},"type":{"type":"string","enum":["send_push"]},"config":{"$ref":"#/components/schemas/Config4"},"position":{"type":"object","properties":{"x":{"type":"number"},"y":{"type":"number"}},"required":["x","y"]},"name":{"type":"string","maxLength":80}},"required":["id","type","config"]},"Config4":{"type":"object","properties":{"templateId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"versionId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"route":{"$ref":"#/components/schemas/Route"},"topicId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"replyToStep":{"type":"string","minLength":1,"maxLength":64},"onBlocked":{"default":"continue","type":"string","enum":["continue","exit"]},"skipOnFailure":{"type":"boolean"},"skipIfMessagedWithinHours":{"type":"integer","minimum":1,"maximum":720},"filter":{"$ref":"#/components/schemas/Definition2"},"retries":{"type":"integer","minimum":0,"maximum":5},"senderIdentityId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"replyTo":{"type":"string","maxLength":1000},"oneClickUnsubscribe":{"type":"boolean"},"purpose":{"type":"string","enum":["marketing","prospecting","transactional","operational"]},"push":{"$ref":"#/components/schemas/Push"}},"required":["templateId","route"]},"Push":{"type":"object","properties":{"imageUrl":{"type":"string","maxLength":2000},"url":{"type":"string","maxLength":2000},"data":{"type":"object","additionalProperties":{"type":"string","maxLength":1000}},"badge":{"type":"integer","minimum":0,"maximum":99999},"sound":{"type":"string","maxLength":100},"ttlSeconds":{"type":"integer","minimum":0,"maximum":2419200},"priority":{"type":"string","enum":["high","normal"]},"collapseKey":{"type":"string","maxLength":64},"ios":{"$ref":"#/components/schemas/Ios"},"android":{"$ref":"#/components/schemas/Ios"},"web":{"$ref":"#/components/schemas/Ios"}}},"Ios":{"type":"object","properties":{"title":{"type":"string","maxLength":500},"body":{"type":"string","maxLength":2000},"imageUrl":{"type":"string","format":"uri"},"url":{"type":"string","maxLength":2000},"sound":{"type":"string","maxLength":100},"badge":{"type":"integer","minimum":0,"maximum":99999}}},"NodesItemVariant5":{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":64},"type":{"type":"string","enum":["send_transactional_email"]},"config":{"$ref":"#/components/schemas/Config2"},"position":{"type":"object","properties":{"x":{"type":"number"},"y":{"type":"number"}},"required":["x","y"]},"name":{"type":"string","maxLength":80}},"required":["id","type","config"]},"NodesItemVariant6":{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":64},"type":{"type":"string","enum":["notify_internal"]},"config":{"$ref":"#/components/schemas/Config5"},"position":{"type":"object","properties":{"x":{"type":"number"},"y":{"type":"number"}},"required":["x","y"]},"name":{"type":"string","maxLength":80}},"required":["id","type"]},"Config5":{"default":{"to":{"userIds":[],"emails":[]},"params":{}},"type":"object","properties":{"title":{"type":"string","maxLength":200},"subject":{"type":"string","maxLength":200},"body":{"type":"string","maxLength":5000},"to":{"$ref":"#/components/schemas/To2"},"params":{"default":{},"type":"object","additionalProperties":{}}}},"To2":{"default":{"userIds":[],"emails":[]},"type":"object","properties":{"userIds":{"$ref":"#/components/schemas/ListIds4"},"emails":{"$ref":"#/components/schemas/Emails3"},"slackWebhookUrl":{"type":"string","format":"uri"},"webhookUrl":{"type":"string","format":"uri"},"discordWebhookUrl":{"type":"string","pattern":"^https:\\/\\/(discord\\.com|discordapp\\.com|ptb\\.discord\\.com|canary\\.discord\\.com)\\/api\\/webhooks\\/"}}},"NodesItemVariant7":{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":64},"type":{"type":"string","enum":["create_task"]},"config":{"default":{"params":{}},"type":"object","properties":{"title":{"type":"string","maxLength":200},"params":{"default":{},"type":"object","additionalProperties":{}}}},"position":{"type":"object","properties":{"x":{"type":"number"},"y":{"type":"number"}},"required":["x","y"]},"name":{"type":"string","maxLength":80}},"required":["id","type"]},"NodesItemVariant8":{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":64},"type":{"type":"string","enum":["send_webhook"]},"config":{"$ref":"#/components/schemas/Config6"},"position":{"type":"object","properties":{"x":{"type":"number"},"y":{"type":"number"}},"required":["x","y"]},"name":{"type":"string","maxLength":80}},"required":["id","type","config"]},"Config6":{"type":"object","properties":{"webhookTemplateId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"url":{"type":"string","format":"uri"},"method":{"type":"string","enum":["POST","PUT","PATCH","DELETE","GET","HEAD","OPTIONS"]},"bodyFormat":{"default":"json","type":"string","enum":["json","form","text","xml"]},"rawBody":{"type":"string","maxLength":100000},"authHeaders":{"$ref":"#/components/schemas/AuthHeaders"},"body":{"type":"object","additionalProperties":{}},"headers":{"type":"object","additionalProperties":{"type":"string"}},"maxAttempts":{"default":5,"type":"integer","minimum":1,"maximum":8},"signingSecret":{"type":"string","minLength":8,"maxLength":200},"signingSecretSealed":{"type":"string","maxLength":2000},"signingSecretSet":{"type":"boolean"},"responseMap":{"$ref":"#/components/schemas/ResponseMap"},"inputFields":{"default":{},"type":"object","additionalProperties":{"type":"string","maxLength":2000}},"awaitResponse":{"default":false,"type":"boolean"},"awaitCallback":{"default":false,"type":"boolean"},"responseTimeout":{"$ref":"#/components/schemas/ResponseTimeout"}}},"AuthHeaders":{"maxItems":10,"type":"array","items":{"$ref":"#/components/schemas/AuthHeadersItem"}},"AuthHeadersItem":{"type":"object","properties":{"header":{"type":"string","pattern":"^[A-Za-z0-9-]{1,64}$"},"secretName":{"type":"string","minLength":1,"maxLength":100},"prefix":{"type":"string","maxLength":40}},"required":["header","secretName"]},"ResponseMap":{"default":[],"maxItems":20,"type":"array","items":{"type":"object","properties":{"path":{"type":"string","minLength":1,"maxLength":200},"field":{"type":"string","minLength":1,"maxLength":128}},"required":["path","field"]}},"ResponseTimeout":{"default":{"amount":10,"unit":"minutes"},"type":"object","properties":{"amount":{"type":"integer","minimum":0,"maximum":5256000},"unit":{"type":"string","enum":["minutes","hours","days","weeks"]}},"required":["amount","unit"]},"NodesItemVariant9":{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":64},"type":{"type":"string","enum":["add_note"]},"config":{"type":"object","properties":{"body":{"type":"string","minLength":1,"maxLength":5000}},"required":["body"]},"position":{"type":"object","properties":{"x":{"type":"number"},"y":{"type":"number"}},"required":["x","y"]},"name":{"type":"string","maxLength":80}},"required":["id","type","config"]},"NodesItemVariant10":{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":64},"type":{"type":"string","enum":["show_in_app"]},"config":{"$ref":"#/components/schemas/Config7"},"position":{"type":"object","properties":{"x":{"type":"number"},"y":{"type":"number"}},"required":["x","y"]},"name":{"type":"string","maxLength":80}},"required":["id","type","config"]},"Config7":{"type":"object","properties":{"messageId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"expiresInHours":{"default":24,"type":"integer","minimum":1,"maximum":720}},"required":["messageId"]},"NodesItemVariant11":{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":64},"type":{"type":"string","enum":["if_else"]},"config":{"$ref":"#/components/schemas/Config8"},"position":{"type":"object","properties":{"x":{"type":"number"},"y":{"type":"number"}},"required":["x","y"]},"name":{"type":"string","maxLength":80}},"required":["id","type","config"]},"Config8":{"type":"object","properties":{"condition":{"$ref":"#/components/schemas/Condition"}},"required":["condition"]},"Condition":{"oneOf":[{"$ref":"#/components/schemas/ConditionVariant"},{"type":"object","properties":{"kind":{"type":"string","enum":["tag"]},"name":{"type":"string","minLength":1,"maxLength":64}},"required":["kind","name"]},{"$ref":"#/components/schemas/ConditionVariant2"},{"$ref":"#/components/schemas/ConditionVariant3"},{"$ref":"#/components/schemas/ConditionVariant4"},{"$ref":"#/components/schemas/ConditionVariant5"},{"$ref":"#/components/schemas/ConditionVariant6"},{"$ref":"#/components/schemas/ConditionVariant7"},{"$ref":"#/components/schemas/ConditionVariant8"},{"$ref":"#/components/schemas/ConditionVariant9"},{"$ref":"#/components/schemas/ConditionVariant10"},{"type":"object","properties":{"kind":{"type":"string","enum":["push_token"]},"platform":{"type":"string","enum":["ios","android","web"]}},"required":["kind"]},{"$ref":"#/components/schemas/ConditionVariant11"}]},"ConditionVariant":{"type":"object","properties":{"kind":{"type":"string","enum":["field"]},"field":{"type":"string","minLength":1,"maxLength":128},"op":{"type":"string","enum":["eq","ne","gt","gte","lt","lte","contains","exists","not_exists"]},"value":{}},"required":["kind","field","op"]},"ConditionVariant2":{"type":"object","properties":{"kind":{"type":"string","enum":["in_list"]},"listId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},"required":["kind","listId"]},"ConditionVariant3":{"type":"object","properties":{"kind":{"type":"string","enum":["in_segment"]},"segmentId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},"required":["kind","segmentId"]},"ConditionVariant4":{"type":"object","properties":{"kind":{"type":"string","enum":["consent"]},"channel":{"type":"string","enum":["email","sms","whatsapp","push","postcard"]},"purpose":{"default":"marketing","type":"string","enum":["marketing","prospecting","transactional","operational"]}},"required":["kind","channel"]},"ConditionVariant5":{"type":"object","properties":{"kind":{"type":"string","enum":["trigger"]},"path":{"type":"string","minLength":1,"maxLength":128},"op":{"type":"string","enum":["eq","ne","gt","gte","lt","lte","contains","exists","not_exists"]},"value":{}},"required":["kind","path","op"]},"ConditionVariant6":{"type":"object","properties":{"kind":{"type":"string","enum":["var"]},"key":{"type":"string","minLength":1,"maxLength":64},"op":{"type":"string","enum":["eq","ne","gt","gte","lt","lte","contains","exists","not_exists"]},"value":{}},"required":["kind","key","op"]},"ConditionVariant7":{"type":"object","properties":{"kind":{"type":"string","enum":["definition"]},"definition":{"$ref":"#/components/schemas/Definition2"}},"required":["kind","definition"]},"ConditionVariant8":{"type":"object","properties":{"kind":{"type":"string","enum":["field_changed"]},"field":{"type":"string","minLength":1,"maxLength":128},"from":{},"to":{}},"required":["kind","field"]},"ConditionVariant9":{"type":"object","properties":{"kind":{"type":"string","enum":["in_workflow"]},"workflowId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"state":{"default":"active","type":"string","enum":["active","completed","ever"]}},"required":["kind","workflowId"]},"ConditionVariant10":{"type":"object","properties":{"kind":{"type":"string","enum":["time"]},"weekdays":{"type":"array","items":{"type":"integer","minimum":1,"maximum":7}},"startMin":{"type":"integer","minimum":0,"maximum":1440},"endMin":{"type":"integer","minimum":0,"maximum":1440},"tz":{"type":"string","maxLength":64}},"required":["kind"]},"ConditionVariant11":{"type":"object","properties":{"kind":{"type":"string","enum":["date"]},"source":{"default":"field","type":"string","enum":["field","trigger","var"]},"path":{"type":"string","minLength":1,"maxLength":128},"op":{"type":"string","enum":["before","after","today","within_next_days","within_past_days","anniversary_within_days"]},"days":{"default":0,"type":"integer","minimum":0,"maximum":3660}},"required":["kind","path","op"]},"NodesItemVariant12":{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":64},"type":{"type":"string","enum":["multi_branch"]},"config":{"$ref":"#/components/schemas/Config9"},"position":{"type":"object","properties":{"x":{"type":"number"},"y":{"type":"number"}},"required":["x","y"]},"name":{"type":"string","maxLength":80}},"required":["id","type","config"]},"Config9":{"type":"object","properties":{"branches":{"$ref":"#/components/schemas/Branches"},"pick":{"default":"first","type":"string","enum":["first","weighted"]}},"required":["branches"]},"Branches":{"minItems":1,"maxItems":25,"type":"array","items":{"$ref":"#/components/schemas/BranchesItem"}},"BranchesItem":{"type":"object","properties":{"key":{"type":"string","minLength":1,"maxLength":32},"condition":{"$ref":"#/components/schemas/Condition"},"weight":{"default":1,"type":"integer","minimum":0,"maximum":1000}},"required":["key","condition"]},"NodesItemVariant13":{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":64},"type":{"type":"string","enum":["random_split"]},"config":{"$ref":"#/components/schemas/Config10"},"position":{"type":"object","properties":{"x":{"type":"number"},"y":{"type":"number"}},"required":["x","y"]},"name":{"type":"string","maxLength":80}},"required":["id","type","config"]},"Config10":{"type":"object","properties":{"splits":{"$ref":"#/components/schemas/Splits"}},"required":["splits"]},"Splits":{"minItems":2,"maxItems":26,"type":"array","items":{"type":"object","properties":{"key":{"type":"string","minLength":1,"maxLength":32},"weight":{"type":"integer","minimum":0,"maximum":1000}},"required":["key","weight"]}},"NodesItemVariant14":{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":64},"type":{"type":"string","enum":["ab_test"]},"config":{"$ref":"#/components/schemas/Config11"},"position":{"type":"object","properties":{"x":{"type":"number"},"y":{"type":"number"}},"required":["x","y"]},"name":{"type":"string","maxLength":80}},"required":["id","type","config"]},"Config11":{"type":"object","properties":{"experimentId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"variants":{"$ref":"#/components/schemas/Splits"},"autoWinner":{"$ref":"#/components/schemas/AutoWinner"}},"required":["variants"]},"AutoWinner":{"type":"object","properties":{"metric":{"default":"clicks","type":"string","enum":["clicks","opens","conversions","revenue","replies"]},"afterHours":{"default":48,"type":"integer","minimum":1,"maximum":720},"minRecipients":{"default":100,"type":"integer","minimum":1,"maximum":1000000},"minConversions":{"default":20,"type":"integer","minimum":1,"maximum":1000000},"pBest":{"default":0.95,"type":"number","minimum":0.5,"maximum":0.999},"stopAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"shift":{"type":"boolean"}}},"NodesItemVariant15":{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":64},"type":{"type":"string","enum":["for_each_item"]},"config":{"type":"object","properties":{"path":{"type":"string","minLength":1,"maxLength":128},"max":{"default":10,"type":"integer","minimum":1,"maximum":25}},"required":["path"]},"position":{"type":"object","properties":{"x":{"type":"number"},"y":{"type":"number"}},"required":["x","y"]},"name":{"type":"string","maxLength":80}},"required":["id","type","config"]},"NodesItemVariant16":{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":64},"type":{"type":"string","enum":["query_collection"]},"config":{"$ref":"#/components/schemas/Config12"},"position":{"type":"object","properties":{"x":{"type":"number"},"y":{"type":"number"}},"required":["x","y"]},"name":{"type":"string","maxLength":80}},"required":["id","type","config"]},"Config12":{"type":"object","properties":{"collectionId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"column":{"type":"string","minLength":1,"maxLength":128},"value":{"default":"{{ profile.emailPrimary }}","type":"string","minLength":1,"maxLength":500},"saveAs":{"default":"row","type":"string","pattern":"^[a-z][a-z0-9_]{0,31}$"}},"required":["collectionId","column"]},"NodesItemVariant17":{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":64},"type":{"type":"string","enum":["switch"]},"config":{"$ref":"#/components/schemas/Config13"},"position":{"type":"object","properties":{"x":{"type":"number"},"y":{"type":"number"}},"required":["x","y"]},"name":{"type":"string","maxLength":80}},"required":["id","type","config"]},"Config13":{"type":"object","properties":{"field":{"type":"string","minLength":1,"maxLength":128},"cases":{"minItems":1,"maxItems":25,"type":"array","items":{"type":"string","maxLength":128}}},"required":["field","cases"]},"NodesItemVariant18":{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":64},"type":{"type":"string","enum":["merge"]},"config":{"default":{},"type":"object","properties":{}},"position":{"type":"object","properties":{"x":{"type":"number"},"y":{"type":"number"}},"required":["x","y"]},"name":{"type":"string","maxLength":80}},"required":["id","type"]},"NodesItemVariant19":{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":64},"type":{"type":"string","enum":["goto"]},"config":{"$ref":"#/components/schemas/Config14"},"position":{"type":"object","properties":{"x":{"type":"number"},"y":{"type":"number"}},"required":["x","y"]},"name":{"type":"string","maxLength":80}},"required":["id","type","config"]},"Config14":{"type":"object","properties":{"target":{"type":"string","minLength":1,"maxLength":64},"condition":{"$ref":"#/components/schemas/Condition"}},"required":["target"]},"NodesItemVariant20":{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":64},"type":{"type":"string","enum":["exit_workflow"]},"config":{"$ref":"#/components/schemas/Config15"},"position":{"type":"object","properties":{"x":{"type":"number"},"y":{"type":"number"}},"required":["x","y"]},"name":{"type":"string","maxLength":80}},"required":["id","type","config"]},"Config15":{"type":"object","properties":{"workflowId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"reason":{"default":"exited_by_journey","type":"string","maxLength":64}},"required":["workflowId"]},"NodesItemVariant21":{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":64},"type":{"type":"string","enum":["exit"]},"config":{"default":{"reason":"exit_node"},"type":"object","properties":{"reason":{"default":"exit_node","type":"string","maxLength":64}}},"position":{"type":"object","properties":{"x":{"type":"number"},"y":{"type":"number"}},"required":["x","y"]},"name":{"type":"string","maxLength":80}},"required":["id","type"]},"NodesItemVariant22":{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":64},"type":{"type":"string","enum":["enroll_workflow"]},"config":{"$ref":"#/components/schemas/Config16"},"position":{"type":"object","properties":{"x":{"type":"number"},"y":{"type":"number"}},"required":["x","y"]},"name":{"type":"string","maxLength":80}},"required":["id","type","config"]},"Config16":{"type":"object","properties":{"workflowId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},"required":["workflowId"]},"NodesItemVariant23":{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":64},"type":{"type":"string","enum":["delay"]},"config":{"$ref":"#/components/schemas/Config17"},"position":{"type":"object","properties":{"x":{"type":"number"},"y":{"type":"number"}},"required":["x","y"]},"name":{"type":"string","maxLength":80}},"required":["id","type","config"]},"Config17":{"type":"object","properties":{"duration":{"$ref":"#/components/schemas/Duration"},"mode":{"default":"calendar","type":"string","enum":["calendar","exact"]},"atTime":{"type":"string","pattern":"^([01]\\d|2[0-3]):[0-5]\\d$"},"weekdays":{"maxItems":7,"type":"array","items":{"type":"integer","minimum":1,"maximum":7}},"tz":{"type":"string","maxLength":64}},"required":["duration"]},"Duration":{"type":"object","properties":{"amount":{"type":"integer","minimum":0,"maximum":5256000},"unit":{"type":"string","enum":["minutes","hours","days","weeks"]}},"required":["amount","unit"]},"NodesItemVariant24":{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":64},"type":{"type":"string","enum":["wait_until_date"]},"config":{"$ref":"#/components/schemas/Config18"},"position":{"type":"object","properties":{"x":{"type":"number"},"y":{"type":"number"}},"required":["x","y"]},"name":{"type":"string","maxLength":80}},"required":["id","type","config"]},"Config18":{"type":"object","properties":{"attribute":{"type":"string","maxLength":128},"at":{"type":"string","format":"date-time"},"offsetDays":{"default":0,"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"yearly":{"default":false,"type":"boolean"}}},"NodesItemVariant25":{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":64},"type":{"type":"string","enum":["batch"]},"config":{"$ref":"#/components/schemas/Config19"},"position":{"type":"object","properties":{"x":{"type":"number"},"y":{"type":"number"}},"required":["x","y"]},"name":{"type":"string","maxLength":80}},"required":["id","type","config"]},"Config19":{"type":"object","properties":{"window":{"$ref":"#/components/schemas/Duration"}},"required":["window"]},"NodesItemVariant26":{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":64},"type":{"type":"string","enum":["wait_best_send_time"]},"config":{"default":{},"type":"object","properties":{}},"position":{"type":"object","properties":{"x":{"type":"number"},"y":{"type":"number"}},"required":["x","y"]},"name":{"type":"string","maxLength":80}},"required":["id","type"]},"NodesItemVariant27":{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":64},"type":{"type":"string","enum":["wait_for_event"]},"config":{"$ref":"#/components/schemas/Config20"},"position":{"type":"object","properties":{"x":{"type":"number"},"y":{"type":"number"}},"required":["x","y"]},"name":{"type":"string","maxLength":80}},"required":["id","type","config"]},"Config20":{"type":"object","properties":{"eventName":{"type":"string","minLength":1,"maxLength":128},"filter":{"type":"object","additionalProperties":{}},"conditions":{"$ref":"#/components/schemas/Conditions"},"timeout":{"$ref":"#/components/schemas/Duration"}},"required":["eventName","timeout"]},"Conditions":{"maxItems":10,"type":"array","items":{"$ref":"#/components/schemas/ConditionsItem"}},"ConditionsItem":{"type":"object","properties":{"property":{"type":"string","minLength":1,"maxLength":128},"op":{"default":"eq","type":"string","enum":["eq","neq","gt","gte","lt","lte","contains","not_contains","starts_with","ends_with","exists","not_exists","in","not_in","between"]},"value":{"$ref":"#/components/schemas/Value"}},"required":["property"]},"Value":{"anyOf":[{"type":"string","maxLength":512},{"type":"number"},{"type":"boolean"},{"maxItems":100,"type":"array","items":{"anyOf":[{"type":"string","maxLength":512},{"type":"number"}]}}]},"NodesItemVariant28":{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":64},"type":{"type":"string","enum":["wait_for_any_event"]},"config":{"$ref":"#/components/schemas/Config21"},"position":{"type":"object","properties":{"x":{"type":"number"},"y":{"type":"number"}},"required":["x","y"]},"name":{"type":"string","maxLength":80}},"required":["id","type","config"]},"Config21":{"type":"object","properties":{"events":{"$ref":"#/components/schemas/Events2"},"timeout":{"$ref":"#/components/schemas/Duration"}},"required":["events","timeout"]},"Events2":{"minItems":2,"maxItems":10,"type":"array","items":{"$ref":"#/components/schemas/EventsItem2"}},"EventsItem2":{"type":"object","properties":{"key":{"type":"string","minLength":1,"maxLength":32},"eventName":{"type":"string","minLength":1,"maxLength":128},"filter":{"type":"object","additionalProperties":{}},"conditions":{"$ref":"#/components/schemas/Conditions"}},"required":["key","eventName"]},"NodesItemVariant29":{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":64},"type":{"type":"string","enum":["wait_until_condition"]},"config":{"$ref":"#/components/schemas/Config22"},"position":{"type":"object","properties":{"x":{"type":"number"},"y":{"type":"number"}},"required":["x","y"]},"name":{"type":"string","maxLength":80}},"required":["id","type","config"]},"Config22":{"type":"object","properties":{"definition":{"$ref":"#/components/schemas/Definition2"},"timeout":{"$ref":"#/components/schemas/Duration"}},"required":["definition","timeout"]},"NodesItemVariant30":{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":64},"type":{"type":"string","enum":["wait_for_segments"]},"config":{"$ref":"#/components/schemas/Config23"},"position":{"type":"object","properties":{"x":{"type":"number"},"y":{"type":"number"}},"required":["x","y"]},"name":{"type":"string","maxLength":80}},"required":["id","type","config"]},"Config23":{"type":"object","properties":{"branches":{"$ref":"#/components/schemas/Branches2"},"timeout":{"$ref":"#/components/schemas/Duration"}},"required":["branches","timeout"]},"Branches2":{"minItems":2,"maxItems":10,"type":"array","items":{"$ref":"#/components/schemas/BranchesItem2"}},"BranchesItem2":{"type":"object","properties":{"key":{"type":"string","minLength":1,"maxLength":32},"definition":{"$ref":"#/components/schemas/Definition2"}},"required":["key","definition"]},"NodesItemVariant31":{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":64},"type":{"type":"string","enum":["wait_for_attribute_change"]},"config":{"$ref":"#/components/schemas/Config24"},"position":{"type":"object","properties":{"x":{"type":"number"},"y":{"type":"number"}},"required":["x","y"]},"name":{"type":"string","maxLength":80}},"required":["id","type","config"]},"Config24":{"type":"object","properties":{"field":{"type":"string","minLength":1,"maxLength":128},"from":{},"to":{},"timeout":{"$ref":"#/components/schemas/Duration"}},"required":["field","timeout"]},"NodesItemVariant32":{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":64},"type":{"type":"string","enum":["wait_until_weekday"]},"config":{"$ref":"#/components/schemas/Config25"},"position":{"type":"object","properties":{"x":{"type":"number"},"y":{"type":"number"}},"required":["x","y"]},"name":{"type":"string","maxLength":80}},"required":["id","type","config"]},"Config25":{"type":"object","properties":{"weekdays":{"minItems":1,"maxItems":7,"type":"array","items":{"type":"integer","minimum":1,"maximum":7}},"time":{"type":"string","pattern":"^([01]\\d|2[0-3]):[0-5]\\d$"},"tz":{"type":"string","maxLength":64}},"required":["weekdays","time"]},"NodesItemVariant33":{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":64},"type":{"type":"string","enum":["wait_until_reorder"]},"config":{"$ref":"#/components/schemas/Config26"},"position":{"type":"object","properties":{"x":{"type":"number"},"y":{"type":"number"}},"required":["x","y"]},"name":{"type":"string","maxLength":80}},"required":["id","type","config"]},"Config26":{"type":"object","properties":{"overrides":{"$ref":"#/components/schemas/Overrides"},"fallbackDays":{"default":30,"type":"integer","minimum":1,"maximum":3650},"minOrders":{"default":3,"type":"integer","minimum":2,"maximum":50},"bufferDays":{"default":0,"type":"integer","minimum":0,"maximum":365}}},"Overrides":{"default":[],"maxItems":100,"type":"array","items":{"type":"object","properties":{"productId":{"type":"string","minLength":1,"maxLength":128},"days":{"type":"integer","minimum":1,"maximum":3650}},"required":["productId","days"]}},"NodesItemVariant34":{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":64},"type":{"type":"string","enum":["random_delay"]},"config":{"$ref":"#/components/schemas/Config27"},"position":{"type":"object","properties":{"x":{"type":"number"},"y":{"type":"number"}},"required":["x","y"]},"name":{"type":"string","maxLength":80}},"required":["id","type","config"]},"Config27":{"type":"object","properties":{"min":{"$ref":"#/components/schemas/Duration"},"max":{"$ref":"#/components/schemas/Duration"}},"required":["min","max"]},"NodesItemVariant35":{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":64},"type":{"type":"string","enum":["wait_for_engagement"]},"config":{"$ref":"#/components/schemas/Config28"},"position":{"type":"object","properties":{"x":{"type":"number"},"y":{"type":"number"}},"required":["x","y"]},"name":{"type":"string","maxLength":80}},"required":["id","type","config"]},"Config28":{"type":"object","properties":{"kind":{"type":"string","enum":["open","click","reply","delivered","bounced","complained"]},"stepKey":{"type":"string","minLength":1,"maxLength":64},"timeout":{"$ref":"#/components/schemas/Duration"}},"required":["kind","timeout"]},"NodesItemVariant36":{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":64},"type":{"type":"string","enum":["business_hours"]},"config":{"$ref":"#/components/schemas/Config29"},"position":{"type":"object","properties":{"x":{"type":"number"},"y":{"type":"number"}},"required":["x","y"]},"name":{"type":"string","maxLength":80}},"required":["id","type","config"]},"Config29":{"type":"object","properties":{"startMin":{"type":"integer","minimum":0,"maximum":1440},"endMin":{"type":"integer","minimum":0,"maximum":1440},"weekdays":{"type":"array","items":{"type":"integer","minimum":1,"maximum":7}},"tz":{"type":"string"},"onClosed":{"type":"string","enum":["wait","exit"]}},"required":["startMin","endMin"]},"NodesItemVariant37":{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":64},"type":{"type":"string","enum":["send_window"]},"config":{"$ref":"#/components/schemas/Config29"},"position":{"type":"object","properties":{"x":{"type":"number"},"y":{"type":"number"}},"required":["x","y"]},"name":{"type":"string","maxLength":80}},"required":["id","type","config"]},"NodesItemVariant38":{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":64},"type":{"type":"string","enum":["date_window"]},"config":{"$ref":"#/components/schemas/Config30"},"position":{"type":"object","properties":{"x":{"type":"number"},"y":{"type":"number"}},"required":["x","y"]},"name":{"type":"string","maxLength":80}},"required":["id","type","config"]},"Config30":{"type":"object","properties":{"from":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"to":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"beforeStart":{"default":"wait","type":"string","enum":["wait","exit"]}}},"NodesItemVariant39":{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":64},"type":{"type":"string","enum":["add_tag"]},"config":{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":64}},"required":["name"]},"position":{"type":"object","properties":{"x":{"type":"number"},"y":{"type":"number"}},"required":["x","y"]},"name":{"type":"string","maxLength":80}},"required":["id","type","config"]},"NodesItemVariant40":{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":64},"type":{"type":"string","enum":["remove_tag"]},"config":{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":64}},"required":["name"]},"position":{"type":"object","properties":{"x":{"type":"number"},"y":{"type":"number"}},"required":["x","y"]},"name":{"type":"string","maxLength":80}},"required":["id","type","config"]},"NodesItemVariant41":{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":64},"type":{"type":"string","enum":["update_profile"]},"config":{"$ref":"#/components/schemas/Config31"},"position":{"type":"object","properties":{"x":{"type":"number"},"y":{"type":"number"}},"required":["x","y"]},"name":{"type":"string","maxLength":80}},"required":["id","type","config"]},"Config31":{"type":"object","properties":{"set":{"default":{},"type":"object","additionalProperties":{}},"ops":{"$ref":"#/components/schemas/Ops"}}},"Ops":{"default":[],"maxItems":30,"type":"array","items":{"$ref":"#/components/schemas/OpsItem"}},"OpsItem":{"type":"object","properties":{"op":{"type":"string","enum":["set","increment","append","unset"]},"field":{"type":"string","minLength":1,"maxLength":128},"value":{}},"required":["op","field"]},"NodesItemVariant42":{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":64},"type":{"type":"string","enum":["add_to_list"]},"config":{"$ref":"#/components/schemas/Config32"},"position":{"type":"object","properties":{"x":{"type":"number"},"y":{"type":"number"}},"required":["x","y"]},"name":{"type":"string","maxLength":80}},"required":["id","type","config"]},"Config32":{"type":"object","properties":{"listId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},"required":["listId"]},"NodesItemVariant43":{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":64},"type":{"type":"string","enum":["remove_from_list"]},"config":{"$ref":"#/components/schemas/Config32"},"position":{"type":"object","properties":{"x":{"type":"number"},"y":{"type":"number"}},"required":["x","y"]},"name":{"type":"string","maxLength":80}},"required":["id","type","config"]},"NodesItemVariant44":{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":64},"type":{"type":"string","enum":["update_by_event"]},"config":{"type":"object","properties":{"field":{"type":"string","minLength":1,"maxLength":128},"path":{"type":"string","minLength":1,"maxLength":128}},"required":["field","path"]},"position":{"type":"object","properties":{"x":{"type":"number"},"y":{"type":"number"}},"required":["x","y"]},"name":{"type":"string","maxLength":80}},"required":["id","type","config"]},"NodesItemVariant45":{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":64},"type":{"type":"string","enum":["set_field"]},"config":{"type":"object","properties":{"field":{"type":"string","minLength":1,"maxLength":128},"value":{}},"required":["field","value"]},"position":{"type":"object","properties":{"x":{"type":"number"},"y":{"type":"number"}},"required":["x","y"]},"name":{"type":"string","maxLength":80}},"required":["id","type","config"]},"NodesItemVariant46":{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":64},"type":{"type":"string","enum":["score"]},"config":{"type":"object","properties":{"delta":{"type":"integer","minimum":-1000,"maximum":1000},"field":{"default":"score","type":"string"}},"required":["delta"]},"position":{"type":"object","properties":{"x":{"type":"number"},"y":{"type":"number"}},"required":["x","y"]},"name":{"type":"string","maxLength":80}},"required":["id","type","config"]},"NodesItemVariant47":{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":64},"type":{"type":"string","enum":["adjust_score"]},"config":{"$ref":"#/components/schemas/Config33"},"position":{"type":"object","properties":{"x":{"type":"number"},"y":{"type":"number"}},"required":["x","y"]},"name":{"type":"string","maxLength":80}},"required":["id","type","config"]},"Config33":{"type":"object","properties":{"modelId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"delta":{"type":"integer","minimum":-1000,"maximum":1000}},"required":["modelId","delta"]},"NodesItemVariant48":{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":64},"type":{"type":"string","enum":["update_company"]},"config":{"$ref":"#/components/schemas/Config34"},"position":{"type":"object","properties":{"x":{"type":"number"},"y":{"type":"number"}},"required":["x","y"]},"name":{"type":"string","maxLength":80}},"required":["id","type","config"]},"Config34":{"type":"object","properties":{"set":{"$ref":"#/components/schemas/Set"}},"required":["set"]},"Set":{"type":"object","properties":{"name":{"type":"string","maxLength":200},"industry":{"type":"string","maxLength":100},"sizeBand":{"type":"string","maxLength":50},"country":{"type":"string","minLength":2,"maxLength":2}}},"NodesItemVariant49":{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":64},"type":{"type":"string","enum":["add_to_company"]},"config":{"$ref":"#/components/schemas/Config35"},"position":{"type":"object","properties":{"x":{"type":"number"},"y":{"type":"number"}},"required":["x","y"]},"name":{"type":"string","maxLength":80}},"required":["id","type","config"]},"Config35":{"type":"object","properties":{"companyId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},"required":["companyId"]},"NodesItemVariant50":{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":64},"type":{"type":"string","enum":["push_integration"]},"config":{"$ref":"#/components/schemas/Config36"},"position":{"type":"object","properties":{"x":{"type":"number"},"y":{"type":"number"}},"required":["x","y"]},"name":{"type":"string","maxLength":80}},"required":["id","type","config"]},"Config36":{"type":"object","properties":{"integrationId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},"required":["integrationId"]},"NodesItemVariant51":{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":64},"type":{"type":"string","enum":["validate_email"]},"config":{"type":"object","properties":{"rejectRole":{"default":false,"type":"boolean"}}},"position":{"type":"object","properties":{"x":{"type":"number"},"y":{"type":"number"}},"required":["x","y"]},"name":{"type":"string","maxLength":80}},"required":["id","type","config"]},"NodesItemVariant52":{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":64},"type":{"type":"string","enum":["delete_contact"]},"config":{"type":"object","properties":{"confirm":{"default":false,"type":"boolean"}}},"position":{"type":"object","properties":{"x":{"type":"number"},"y":{"type":"number"}},"required":["x","y"]},"name":{"type":"string","maxLength":80}},"required":["id","type","config"]},"NodesItemVariant53":{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":64},"type":{"type":"string","enum":["company_branch"]},"config":{"$ref":"#/components/schemas/Config37"},"position":{"type":"object","properties":{"x":{"type":"number"},"y":{"type":"number"}},"required":["x","y"]},"name":{"type":"string","maxLength":80}},"required":["id","type","config"]},"Config37":{"type":"object","properties":{"field":{"type":"string","enum":["name","domain","industry","sizeBand","country","stage","suppressed"]},"op":{"type":"string","enum":["eq","ne","gt","gte","lt","lte","contains","exists","not_exists"]},"value":{}},"required":["field","op"]},"NodesItemVariant54":{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":64},"type":{"type":"string","enum":["set_lifecycle"]},"config":{"type":"object","properties":{"stage":{"type":"string","minLength":1,"maxLength":64}},"required":["stage"]},"position":{"type":"object","properties":{"x":{"type":"number"},"y":{"type":"number"}},"required":["x","y"]},"name":{"type":"string","maxLength":80}},"required":["id","type","config"]},"NodesItemVariant55":{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":64},"type":{"type":"string","enum":["update_consent"]},"config":{"$ref":"#/components/schemas/Config38"},"position":{"type":"object","properties":{"x":{"type":"number"},"y":{"type":"number"}},"required":["x","y"]},"name":{"type":"string","maxLength":80}},"required":["id","type","config"]},"Config38":{"type":"object","properties":{"channel":{"type":"string","enum":["email","sms","whatsapp","push","postcard"]},"purpose":{"default":"marketing","type":"string","enum":["marketing","prospecting","transactional","operational"]},"status":{"type":"string","enum":["granted","revoked"]},"proofSource":{"type":"string","enum":["trigger_event","form"]}},"required":["channel","status"]},"NodesItemVariant56":{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":64},"type":{"type":"string","enum":["goal"]},"config":{"$ref":"#/components/schemas/Config39"},"position":{"type":"object","properties":{"x":{"type":"number"},"y":{"type":"number"}},"required":["x","y"]},"name":{"type":"string","maxLength":80}},"required":["id","type","config"]},"Config39":{"type":"object","properties":{"name":{"default":"goal","type":"string","maxLength":64},"skipAhead":{"default":false,"type":"boolean"},"match":{"$ref":"#/components/schemas/Match"}}},"Match":{"type":"object","properties":{"kind":{"type":"string","enum":["event","segment"]},"eventName":{"type":"string","maxLength":128},"filter":{"type":"object","additionalProperties":{}},"definition":{"$ref":"#/components/schemas/Definition2"}},"required":["kind"]},"NodesItemVariant57":{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":64},"type":{"type":"string","enum":["frequency_cap"]},"config":{"$ref":"#/components/schemas/Config40"},"position":{"type":"object","properties":{"x":{"type":"number"},"y":{"type":"number"}},"required":["x","y"]},"name":{"type":"string","maxLength":80}},"required":["id","type","config"]},"Config40":{"type":"object","properties":{"maxSends":{"type":"integer","minimum":1,"maximum":9007199254740991},"windowHours":{"type":"integer","minimum":1,"maximum":9007199254740991},"channel":{"type":"string","enum":["email","sms","whatsapp","push","postcard"]},"onExceed":{"default":"hold","type":"string","enum":["hold","branch","exit"]}},"required":["maxSends","windowHours"]},"NodesItemVariant58":{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":64},"type":{"type":"string","enum":["suppression_check"]},"config":{"$ref":"#/components/schemas/Config41"},"position":{"type":"object","properties":{"x":{"type":"number"},"y":{"type":"number"}},"required":["x","y"]},"name":{"type":"string","maxLength":80}},"required":["id","type","config"]},"Config41":{"type":"object","properties":{"channel":{"type":"string","enum":["email","sms","whatsapp","push","postcard"]},"purpose":{"default":"marketing","type":"string","enum":["marketing","prospecting","transactional","operational"]}},"required":["channel"]},"NodesItemVariant59":{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":64},"type":{"type":"string","enum":["rate_limit"]},"config":{"$ref":"#/components/schemas/Config42"},"position":{"type":"object","properties":{"x":{"type":"number"},"y":{"type":"number"}},"required":["x","y"]},"name":{"type":"string","maxLength":80}},"required":["id","type","config"]},"Config42":{"type":"object","properties":{"perHour":{"type":"integer","minimum":1,"maximum":9007199254740991},"windowMinutes":{"default":60,"type":"integer","minimum":1,"maximum":10080},"onExceed":{"default":"hold","type":"string","enum":["hold","branch","exit"]},"slot":{"type":"string","minLength":1,"maxLength":64},"perMailbox":{"type":"boolean"}},"required":["perHour"]},"NodesItemVariant60":{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":64},"type":{"type":"string","enum":["add_suppression"]},"config":{"$ref":"#/components/schemas/Config43"},"position":{"type":"object","properties":{"x":{"type":"number"},"y":{"type":"number"}},"required":["x","y"]},"name":{"type":"string","maxLength":80}},"required":["id","type","config"]},"Config43":{"type":"object","properties":{"channel":{"type":"string","enum":["email","sms","whatsapp","push","postcard"]},"reason":{"default":"workflow","type":"string","maxLength":64}},"required":["channel"]},"NodesItemVariant61":{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":64},"type":{"type":"string","enum":["remove_suppression"]},"config":{"type":"object","properties":{"channel":{"type":"string","enum":["email","sms","whatsapp","push","postcard"]}},"required":["channel"]},"position":{"type":"object","properties":{"x":{"type":"number"},"y":{"type":"number"}},"required":["x","y"]},"name":{"type":"string","maxLength":80}},"required":["id","type","config"]},"NodesItemVariant62":{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":64},"type":{"type":"string","enum":["approval_gate"]},"config":{"default":{},"type":"object","properties":{}},"position":{"type":"object","properties":{"x":{"type":"number"},"y":{"type":"number"}},"required":["x","y"]},"name":{"type":"string","maxLength":80}},"required":["id","type"]},"NodesItemVariant63":{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":64},"type":{"type":"string","enum":["pause"]},"config":{"default":{},"type":"object","properties":{}},"position":{"type":"object","properties":{"x":{"type":"number"},"y":{"type":"number"}},"required":["x","y"]},"name":{"type":"string","maxLength":80}},"required":["id","type"]},"NodesItemVariant64":{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":64},"type":{"type":"string","enum":["end"]},"config":{"default":{},"type":"object","properties":{}},"position":{"type":"object","properties":{"x":{"type":"number"},"y":{"type":"number"}},"required":["x","y"]},"name":{"type":"string","maxLength":80}},"required":["id","type"]},"NodesItemVariant65":{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":64},"type":{"type":"string","enum":["stop_on_reply"]},"config":{"default":{},"type":"object","properties":{}},"position":{"type":"object","properties":{"x":{"type":"number"},"y":{"type":"number"}},"required":["x","y"]},"name":{"type":"string","maxLength":80}},"required":["id","type"]},"NodesItemVariant66":{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":64},"type":{"type":"string","enum":["stop_on_bounce"]},"config":{"default":{},"type":"object","properties":{}},"position":{"type":"object","properties":{"x":{"type":"number"},"y":{"type":"number"}},"required":["x","y"]},"name":{"type":"string","maxLength":80}},"required":["id","type"]},"NodesItemVariant67":{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":64},"type":{"type":"string","enum":["stop_on_unsubscribe"]},"config":{"default":{},"type":"object","properties":{}},"position":{"type":"object","properties":{"x":{"type":"number"},"y":{"type":"number"}},"required":["x","y"]},"name":{"type":"string","maxLength":80}},"required":["id","type"]},"NodesItemVariant68":{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":64},"type":{"type":"string","enum":["classify_reply"]},"config":{"default":{"params":{}},"type":"object","properties":{"title":{"type":"string","maxLength":200},"params":{"default":{},"type":"object","additionalProperties":{}}}},"position":{"type":"object","properties":{"x":{"type":"number"},"y":{"type":"number"}},"required":["x","y"]},"name":{"type":"string","maxLength":80}},"required":["id","type"]},"NodesItemVariant69":{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":64},"type":{"type":"string","enum":["assign_owner"]},"config":{"default":{"params":{}},"type":"object","properties":{"title":{"type":"string","maxLength":200},"params":{"default":{},"type":"object","additionalProperties":{}}}},"position":{"type":"object","properties":{"x":{"type":"number"},"y":{"type":"number"}},"required":["x","y"]},"name":{"type":"string","maxLength":80}},"required":["id","type"]},"NodesItemVariant70":{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":64},"type":{"type":"string","enum":["rotate_mailbox"]},"config":{"default":{"params":{}},"type":"object","properties":{"title":{"type":"string","maxLength":200},"params":{"default":{},"type":"object","additionalProperties":{}}}},"position":{"type":"object","properties":{"x":{"type":"number"},"y":{"type":"number"}},"required":["x","y"]},"name":{"type":"string","maxLength":80}},"required":["id","type"]},"NodesItemVariant71":{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":64},"type":{"type":"string","enum":["follow_up_task"]},"config":{"default":{"params":{}},"type":"object","properties":{"title":{"type":"string","maxLength":200},"params":{"default":{},"type":"object","additionalProperties":{}}}},"position":{"type":"object","properties":{"x":{"type":"number"},"y":{"type":"number"}},"required":["x","y"]},"name":{"type":"string","maxLength":80}},"required":["id","type"]},"NodesItemVariant72":{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":64},"type":{"type":"string","enum":["score_company"]},"config":{"type":"object","properties":{"delta":{"type":"integer","minimum":-1000,"maximum":1000}},"required":["delta"]},"position":{"type":"object","properties":{"x":{"type":"number"},"y":{"type":"number"}},"required":["x","y"]},"name":{"type":"string","maxLength":80}},"required":["id","type","config"]},"NodesItemVariant73":{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":64},"type":{"type":"string","enum":["score_company_from_form"]},"config":{"$ref":"#/components/schemas/Config44"},"position":{"type":"object","properties":{"x":{"type":"number"},"y":{"type":"number"}},"required":["x","y"]},"name":{"type":"string","maxLength":80}},"required":["id","type","config"]},"Config44":{"type":"object","properties":{"delta":{"type":"integer","minimum":-1000,"maximum":1000},"formId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},"required":["delta"]},"NodesItemVariant74":{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":64},"type":{"type":"string","enum":["send_site_message"]},"config":{"$ref":"#/components/schemas/Config45"},"position":{"type":"object","properties":{"x":{"type":"number"},"y":{"type":"number"}},"required":["x","y"]},"name":{"type":"string","maxLength":80}},"required":["id","type","config"]},"Config45":{"type":"object","properties":{"siteMessageId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"expiresInHours":{"default":168,"type":"integer","minimum":1,"maximum":720}},"required":["siteMessageId"]},"NodesItemVariant75":{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":64},"type":{"type":"string","enum":["push_slot_content"]},"config":{"$ref":"#/components/schemas/Config46"},"position":{"type":"object","properties":{"x":{"type":"number"},"y":{"type":"number"}},"required":["x","y"]},"name":{"type":"string","maxLength":80}},"required":["id","type","config"]},"Config46":{"type":"object","properties":{"slotKey":{"type":"string","pattern":"^[a-z0-9][a-z0-9_-]{0,62}$"},"html":{"type":"string","minLength":1,"maxLength":20000},"expiresInHours":{"default":168,"type":"integer","minimum":1,"maximum":720}},"required":["slotKey","html"]},"NodesItemVariant76":{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":64},"type":{"type":"string","enum":["upsert_object"]},"config":{"$ref":"#/components/schemas/Config47"},"position":{"type":"object","properties":{"x":{"type":"number"},"y":{"type":"number"}},"required":["x","y"]},"name":{"type":"string","maxLength":80}},"required":["id","type","config"]},"Config47":{"type":"object","properties":{"typeKey":{"type":"string","minLength":1,"maxLength":64},"externalId":{"type":"string","minLength":1,"maxLength":500},"name":{"type":"string","maxLength":500},"attributes":{"default":{},"type":"object","additionalProperties":{"type":"string","maxLength":2000}},"link":{"default":true,"type":"boolean"},"role":{"type":"string","maxLength":64}},"required":["typeKey","externalId"]},"NodesItemVariant77":{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":64},"type":{"type":"string","enum":["relate_object"]},"config":{"$ref":"#/components/schemas/Config48"},"position":{"type":"object","properties":{"x":{"type":"number"},"y":{"type":"number"}},"required":["x","y"]},"name":{"type":"string","maxLength":80}},"required":["id","type","config"]},"Config48":{"type":"object","properties":{"typeKey":{"type":"string","minLength":1,"maxLength":64},"externalId":{"type":"string","minLength":1,"maxLength":500},"op":{"default":"link","type":"string","enum":["link","unlink"]},"role":{"type":"string","maxLength":64}},"required":["typeKey","externalId"]},"NodesItemVariant78":{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":64},"type":{"type":"string","enum":["run_code"]},"config":{"$ref":"#/components/schemas/Config49"},"position":{"type":"object","properties":{"x":{"type":"number"},"y":{"type":"number"}},"required":["x","y"]},"name":{"type":"string","maxLength":80}},"required":["id","type","config"]},"Config49":{"type":"object","properties":{"webhookTemplateId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"inputFields":{"default":{},"type":"object","additionalProperties":{"type":"string","maxLength":2000}},"maxAttempts":{"default":3,"type":"integer","minimum":1,"maximum":8},"responseTimeout":{"$ref":"#/components/schemas/ResponseTimeout"}},"required":["webhookTemplateId"]},"NodesItemVariant79":{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":64},"type":{"type":"string","enum":["custom_action"]},"config":{"$ref":"#/components/schemas/Config50"},"position":{"type":"object","properties":{"x":{"type":"number"},"y":{"type":"number"}},"required":["x","y"]},"name":{"type":"string","maxLength":80}},"required":["id","type","config"]},"Config50":{"type":"object","properties":{"typeKey":{"type":"string","pattern":"^[a-z][a-z0-9_]{0,47}$"},"values":{"default":{},"type":"object","additionalProperties":{"type":"string","maxLength":2000}},"responseTimeout":{"$ref":"#/components/schemas/ResponseTimeout"}},"required":["typeKey"]},"NodesItemVariant80":{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":64},"type":{"type":"string","enum":["sheets_append_row"]},"config":{"$ref":"#/components/schemas/Config51"},"position":{"type":"object","properties":{"x":{"type":"number"},"y":{"type":"number"}},"required":["x","y"]},"name":{"type":"string","maxLength":80}},"required":["id","type","config"]},"Config51":{"type":"object","properties":{"spreadsheetId":{"type":"string","pattern":"^[A-Za-z0-9_-]{20,100}$"},"sheet":{"default":"Sheet1","type":"string","minLength":1,"maxLength":100},"values":{"minItems":1,"maxItems":50,"type":"array","items":{"type":"string","maxLength":2000}},"secretName":{"type":"string","minLength":1,"maxLength":100}},"required":["spreadsheetId","values","secretName"]},"NodesItemVariant81":{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":64},"type":{"type":"string","enum":["calendly_link"]},"config":{"$ref":"#/components/schemas/Config52"},"position":{"type":"object","properties":{"x":{"type":"number"},"y":{"type":"number"}},"required":["x","y"]},"name":{"type":"string","maxLength":80}},"required":["id","type","config"]},"Config52":{"type":"object","properties":{"eventTypeUri":{"type":"string","maxLength":500,"format":"uri"},"secretName":{"type":"string","minLength":1,"maxLength":100},"field":{"default":"calendly_link","type":"string","minLength":1,"maxLength":128},"maxEventCount":{"default":1,"type":"integer","minimum":1,"maximum":10}},"required":["eventTypeUri","secretName"]},"NodesItemVariant82":{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":64},"type":{"type":"string","enum":["send_slack"]},"config":{"$ref":"#/components/schemas/Config53"},"position":{"type":"object","properties":{"x":{"type":"number"},"y":{"type":"number"}},"required":["x","y"]},"name":{"type":"string","maxLength":80}},"required":["id","type","config"]},"Config53":{"type":"object","properties":{"installId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"slackTemplateId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"text":{"type":"string","maxLength":3000},"to":{"default":"channel","type":"string","enum":["channel","contact"]},"channel":{"type":"string","maxLength":80}},"required":["installId"]},"NodesItemVariant83":{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":64},"type":{"type":"string","enum":["send_whatsapp_flow"]},"config":{"$ref":"#/components/schemas/Config54"},"position":{"type":"object","properties":{"x":{"type":"number"},"y":{"type":"number"}},"required":["x","y"]},"name":{"type":"string","maxLength":80}},"required":["id","type","config"]},"Config54":{"type":"object","properties":{"flowId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"purpose":{"default":"marketing","type":"string","enum":["marketing","prospecting","transactional","operational"]},"timeout":{"$ref":"#/components/schemas/Timeout"},"branches":{"$ref":"#/components/schemas/Branches3"}},"required":["flowId"]},"Timeout":{"default":{"amount":1,"unit":"days"},"type":"object","properties":{"amount":{"type":"integer","minimum":0,"maximum":5256000},"unit":{"type":"string","enum":["minutes","hours","days","weeks"]}},"required":["amount","unit"]},"Branches3":{"default":[],"maxItems":10,"type":"array","items":{"$ref":"#/components/schemas/BranchesItem3"}},"BranchesItem3":{"type":"object","properties":{"key":{"type":"string","pattern":"^[a-z][a-z0-9_]{0,31}$"},"field":{"type":"string","minLength":1,"maxLength":64},"value":{"type":"string","maxLength":200}},"required":["key","field","value"]},"NodesItemVariant84":{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":64},"type":{"type":"string","enum":["in_app_tracker"]},"config":{"$ref":"#/components/schemas/Config55"},"position":{"type":"object","properties":{"x":{"type":"number"},"y":{"type":"number"}},"required":["x","y"]},"name":{"type":"string","maxLength":80}},"required":["id","type","config"]},"Config55":{"type":"object","properties":{"componentKey":{"type":"string","pattern":"^[a-z][a-z0-9_]{0,63}$"},"fields":{"default":{},"type":"object","additionalProperties":{"type":"string","maxLength":2000}},"events":{"minItems":1,"maxItems":10,"type":"array","items":{"type":"string","pattern":"^[a-z][a-z0-9_]{0,63}$"}},"timeout":{"$ref":"#/components/schemas/Timeout2"}},"required":["componentKey","events"]},"Timeout2":{"default":{"amount":7,"unit":"days"},"type":"object","properties":{"amount":{"type":"integer","minimum":0,"maximum":5256000},"unit":{"type":"string","enum":["minutes","hours","days","weeks"]}},"required":["amount","unit"]},"NodesItemVariant85":{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":64},"type":{"type":"string","enum":["ad_audience"]},"config":{"$ref":"#/components/schemas/Config56"},"position":{"type":"object","properties":{"x":{"type":"number"},"y":{"type":"number"}},"required":["x","y"]},"name":{"type":"string","maxLength":80}},"required":["id","type","config"]},"Config56":{"type":"object","properties":{"adAccountId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"audienceId":{"type":"string","minLength":1,"maxLength":200},"op":{"default":"add","type":"string","enum":["add","remove"]}},"required":["adAccountId","audienceId"]},"Edges":{"maxItems":15000,"type":"array","items":{"$ref":"#/components/schemas/EdgesItem"}},"EdgesItem":{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":64},"source":{"type":"string","minLength":1,"maxLength":64},"sourceHandle":{"type":"string","minLength":1,"maxLength":64},"target":{"type":"string","minLength":1,"maxLength":64}},"required":["id","source","sourceHandle","target"]},"Triggers":{"maxItems":20,"type":"array","items":{"$ref":"#/components/schemas/TriggersItem"}},"TriggersItem":{"oneOf":[{"$ref":"#/components/schemas/TriggersItemVariant"},{"$ref":"#/components/schemas/TriggersItemVariant2"},{"$ref":"#/components/schemas/TriggersItemVariant3"},{"$ref":"#/components/schemas/TriggersItemVariant4"},{"$ref":"#/components/schemas/TriggersItemVariant5"},{"$ref":"#/components/schemas/TriggersItemVariant6"},{"$ref":"#/components/schemas/TriggersItemVariant7"},{"$ref":"#/components/schemas/TriggersItemVariant8"},{"$ref":"#/components/schemas/TriggersItemVariant9"},{"$ref":"#/components/schemas/TriggersItemVariant10"},{"$ref":"#/components/schemas/TriggersItemVariant11"},{"$ref":"#/components/schemas/TriggersItemVariant12"},{"$ref":"#/components/schemas/TriggersItemVariant13"},{"$ref":"#/components/schemas/TriggersItemVariant14"},{"$ref":"#/components/schemas/TriggersItemVariant15"},{"$ref":"#/components/schemas/TriggersItemVariant16"},{"$ref":"#/components/schemas/TriggersItemVariant17"},{"$ref":"#/components/schemas/TriggersItemVariant18"},{"$ref":"#/components/schemas/TriggersItemVariant19"},{"$ref":"#/components/schemas/TriggersItemVariant20"},{"$ref":"#/components/schemas/TriggersItemVariant21"},{"$ref":"#/components/schemas/TriggersItemVariant22"},{"$ref":"#/components/schemas/TriggersItemVariant23"},{"$ref":"#/components/schemas/TriggersItemVariant24"},{"$ref":"#/components/schemas/TriggersItemVariant25"},{"$ref":"#/components/schemas/TriggersItemVariant26"},{"$ref":"#/components/schemas/TriggersItemVariant27"},{"$ref":"#/components/schemas/TriggersItemVariant28"},{"$ref":"#/components/schemas/TriggersItemVariant29"},{"$ref":"#/components/schemas/TriggersItemVariant30"},{"$ref":"#/components/schemas/TriggersItemVariant31"},{"$ref":"#/components/schemas/TriggersItemVariant32"},{"$ref":"#/components/schemas/TriggersItemVariant33"},{"$ref":"#/components/schemas/TriggersItemVariant34"},{"$ref":"#/components/schemas/TriggersItemVariant35"}]},"TriggersItemVariant":{"type":"object","properties":{"type":{"type":"string","enum":["profile_created"]},"reentry":{"$ref":"#/components/schemas/Reentry"}},"required":["type"]},"Reentry":{"default":{"mode":"after_completion"},"oneOf":[{"type":"object","properties":{"mode":{"type":"string","enum":["never"]}},"required":["mode"]},{"type":"object","properties":{"mode":{"type":"string","enum":["once"]}},"required":["mode"]},{"type":"object","properties":{"mode":{"type":"string","enum":["after_completion"]}},"required":["mode"]},{"$ref":"#/components/schemas/ReentryVariant"},{"$ref":"#/components/schemas/ReentryVariant2"}]},"ReentryVariant":{"type":"object","properties":{"mode":{"type":"string","enum":["after_cooldown"]},"cooldown":{"$ref":"#/components/schemas/Duration"}},"required":["mode","cooldown"]},"ReentryVariant2":{"type":"object","properties":{"mode":{"type":"string","enum":["concurrent"]},"dedupeKeyTemplate":{"type":"string","minLength":1,"maxLength":200}},"required":["mode","dedupeKeyTemplate"]},"TriggersItemVariant2":{"type":"object","properties":{"type":{"type":"string","enum":["profile_updated"]},"keys":{"type":"array","items":{"type":"string"}},"from":{},"where":{"$ref":"#/components/schemas/Where"},"reentry":{"$ref":"#/components/schemas/Reentry"}},"required":["type"]},"Where":{"type":"object","properties":{"field":{"type":"string","minLength":1,"maxLength":128},"op":{"type":"string","enum":["eq","ne","gt","gte","lt","lte","contains","exists","not_exists"]},"value":{}},"required":["field","op"]},"TriggersItemVariant3":{"type":"object","properties":{"type":{"type":"string","enum":["list_added"]},"listId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"reentry":{"$ref":"#/components/schemas/Reentry"}},"required":["type","listId"]},"TriggersItemVariant4":{"type":"object","properties":{"type":{"type":"string","enum":["list_removed"]},"listId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"reentry":{"$ref":"#/components/schemas/Reentry"}},"required":["type","listId"]},"TriggersItemVariant5":{"type":"object","properties":{"type":{"type":"string","enum":["segment_entered"]},"segmentId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"enrollExisting":{"type":"boolean"},"reentry":{"$ref":"#/components/schemas/Reentry"}},"required":["type","segmentId"]},"TriggersItemVariant6":{"type":"object","properties":{"type":{"type":"string","enum":["segment_exited"]},"segmentId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"reentry":{"$ref":"#/components/schemas/Reentry"}},"required":["type","segmentId"]},"TriggersItemVariant7":{"type":"object","properties":{"type":{"type":"string","enum":["tag_added"]},"name":{"type":"string","minLength":1,"maxLength":64},"reentry":{"$ref":"#/components/schemas/Reentry"}},"required":["type","name"]},"TriggersItemVariant8":{"type":"object","properties":{"type":{"type":"string","enum":["tag_removed"]},"name":{"type":"string","minLength":1,"maxLength":64},"reentry":{"$ref":"#/components/schemas/Reentry"}},"required":["type","name"]},"TriggersItemVariant9":{"type":"object","properties":{"type":{"type":"string","enum":["consent_changed"]},"channel":{"type":"string","enum":["email","sms","whatsapp","push","postcard"]},"status":{"type":"string","enum":["granted","revoked"]},"reentry":{"$ref":"#/components/schemas/Reentry"}},"required":["type","channel","status"]},"TriggersItemVariant10":{"type":"object","properties":{"type":{"type":"string","enum":["event"]},"name":{"type":"string","minLength":1,"maxLength":128},"filter":{"type":"object","additionalProperties":{}},"conditions":{"$ref":"#/components/schemas/Conditions"},"reentry":{"$ref":"#/components/schemas/Reentry"}},"required":["type","name"]},"TriggersItemVariant11":{"type":"object","properties":{"type":{"type":"string","enum":["object_created"]},"objectType":{"type":"string","minLength":1,"maxLength":64},"reentry":{"$ref":"#/components/schemas/Reentry"}},"required":["type","objectType"]},"TriggersItemVariant12":{"type":"object","properties":{"type":{"type":"string","enum":["object_updated"]},"objectType":{"type":"string","minLength":1,"maxLength":64},"conditions":{"$ref":"#/components/schemas/Conditions"},"reentry":{"$ref":"#/components/schemas/Reentry"}},"required":["type","objectType"]},"TriggersItemVariant13":{"type":"object","properties":{"type":{"type":"string","enum":["object_linked"]},"objectType":{"type":"string","minLength":1,"maxLength":64},"reentry":{"$ref":"#/components/schemas/Reentry"}},"required":["type","objectType"]},"TriggersItemVariant14":{"type":"object","properties":{"type":{"type":"string","enum":["relationship_added"]},"objectType":{"type":"string","maxLength":64},"kind":{"type":"string","maxLength":64},"reentry":{"$ref":"#/components/schemas/Reentry"}},"required":["type"]},"TriggersItemVariant15":{"type":"object","properties":{"type":{"type":"string","enum":["score_reached"]},"modelId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"threshold":{"type":"number"},"enrollExisting":{"type":"boolean"},"reentry":{"$ref":"#/components/schemas/Reentry"}},"required":["type","modelId","threshold"]},"TriggersItemVariant16":{"type":"object","properties":{"type":{"type":"string","enum":["back_in_stock"]},"sku":{"type":"string","maxLength":128},"reentry":{"$ref":"#/components/schemas/Reentry"}},"required":["type"]},"TriggersItemVariant17":{"type":"object","properties":{"type":{"type":"string","enum":["price_drop"]},"sku":{"type":"string","maxLength":128},"minPercent":{"type":"number","minimum":0,"maximum":100},"reentry":{"$ref":"#/components/schemas/Reentry"}},"required":["type"]},"TriggersItemVariant18":{"type":"object","properties":{"type":{"type":"string","enum":["date_property"]},"attribute":{"type":"string","minLength":1,"maxLength":128},"offsetDays":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"time":{"type":"string","pattern":"^\\d{2}:\\d{2}$"},"tz":{"type":"string"},"yearly":{"type":"boolean"},"reentry":{"$ref":"#/components/schemas/Reentry"}},"required":["type","attribute","offsetDays","time","tz"]},"TriggersItemVariant19":{"type":"object","properties":{"type":{"type":"string","enum":["low_inventory"]},"sku":{"type":"string","maxLength":128},"below":{"type":"integer","minimum":1,"maximum":10},"reentry":{"$ref":"#/components/schemas/Reentry"}},"required":["type"]},"TriggersItemVariant20":{"type":"object","properties":{"type":{"type":"string","enum":["form_submitted"]},"formId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"completed":{"type":"boolean"},"reentry":{"$ref":"#/components/schemas/Reentry"}},"required":["type","formId"]},"TriggersItemVariant21":{"type":"object","properties":{"type":{"type":"string","enum":["schedule"]},"cron":{"type":"string","minLength":1,"maxLength":100},"tz":{"type":"string"},"audience":{"$ref":"#/components/schemas/Audience3"},"endsAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"maxRuns":{"type":"integer","minimum":1,"maximum":100000},"maxEntriesPerRun":{"type":"integer","minimum":1,"maximum":100000},"localTime":{"type":"boolean"},"reentry":{"$ref":"#/components/schemas/Reentry"}},"required":["type","cron","tz","audience"]},"Audience3":{"type":"object","properties":{"segmentId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"listId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}},"TriggersItemVariant22":{"type":"object","properties":{"type":{"type":"string","enum":["rss_item"]},"url":{"type":"string","format":"uri"},"audience":{"$ref":"#/components/schemas/Audience3"},"reentry":{"$ref":"#/components/schemas/Reentry"}},"required":["type","url","audience"]},"TriggersItemVariant23":{"type":"object","properties":{"type":{"type":"string","enum":["webhook"]},"inboundKey":{"type":"string","minLength":1,"maxLength":64},"reentry":{"$ref":"#/components/schemas/Reentry"}},"required":["type","inboundKey"]},"TriggersItemVariant24":{"type":"object","properties":{"type":{"type":"string","enum":["api"]},"reentry":{"$ref":"#/components/schemas/Reentry"}},"required":["type"]},"TriggersItemVariant25":{"type":"object","properties":{"type":{"type":"string","enum":["prospect_enrolled"]},"reentry":{"$ref":"#/components/schemas/Reentry"}},"required":["type"]},"TriggersItemVariant26":{"type":"object","properties":{"type":{"type":"string","enum":["message_event"]},"kind":{"type":"string","minLength":1,"maxLength":32},"url":{"type":"string","maxLength":500},"reentry":{"$ref":"#/components/schemas/Reentry"}},"required":["type","kind"]},"TriggersItemVariant27":{"type":"object","properties":{"type":{"type":"string","enum":["reply_received"]},"classification":{"type":"string"},"keyword":{"type":"string","maxLength":64},"reentry":{"$ref":"#/components/schemas/Reentry"}},"required":["type"]},"TriggersItemVariant28":{"type":"object","properties":{"type":{"type":"string","enum":["meeting_booked"]},"reentry":{"$ref":"#/components/schemas/Reentry"}},"required":["type"]},"TriggersItemVariant29":{"type":"object","properties":{"type":{"type":"string","enum":["geofence_entered"]},"geofenceId":{"type":"string","maxLength":128},"reentry":{"$ref":"#/components/schemas/Reentry"}},"required":["type"]},"TriggersItemVariant30":{"type":"object","properties":{"type":{"type":"string","enum":["custom"]},"typeKey":{"type":"string","pattern":"^[a-z][a-z0-9_]{0,47}$"},"values":{"default":{},"type":"object","additionalProperties":{}},"reentry":{"$ref":"#/components/schemas/Reentry"}},"required":["type","typeKey"]},"TriggersItemVariant31":{"type":"object","properties":{"type":{"type":"string","enum":["mailbox_disconnected"]},"reentry":{"$ref":"#/components/schemas/Reentry"}},"required":["type"]},"TriggersItemVariant32":{"type":"object","properties":{"type":{"type":"string","enum":["campaign_paused"]},"reentry":{"$ref":"#/components/schemas/Reentry"}},"required":["type"]},"TriggersItemVariant33":{"type":"object","properties":{"type":{"type":"string","enum":["loyalty_points_changed"]},"programId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"direction":{"type":"string","enum":["earned","spent","any"]},"reentry":{"$ref":"#/components/schemas/Reentry"}},"required":["type"]},"TriggersItemVariant34":{"type":"object","properties":{"type":{"type":"string","enum":["loyalty_tier_changed"]},"programId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"toTierId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"reentry":{"$ref":"#/components/schemas/Reentry"}},"required":["type"]},"TriggersItemVariant35":{"type":"object","properties":{"type":{"type":"string","enum":["loyalty_reward_available"]},"programId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"rewardId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"reentry":{"$ref":"#/components/schemas/Reentry"}},"required":["type"]},"Settings4":{"type":"object","properties":{"purpose":{"default":"marketing","type":"string","enum":["marketing","prospecting","transactional","operational"]},"mode":{"default":"journey","type":"string","enum":["journey","sequence"]},"filterCheck":{"default":"before_send","type":"string","enum":["entry","every_step","before_send"]},"filterFailAction":{"default":"exit","type":"string","enum":["exit","skip"]},"profileFilter":{"$ref":"#/components/schemas/Definition2"},"goal":{"$ref":"#/components/schemas/Goal"},"quietHours":{"$ref":"#/components/schemas/QuietHours2"},"quietHoursAction":{"type":"string","enum":["wait","skip","exit"]},"sendWindow":{"$ref":"#/components/schemas/SendWindow"},"smartSending":{"$ref":"#/components/schemas/SmartSending"},"enrollmentCap":{"type":"object","properties":{"maxTotal":{"type":"integer","minimum":1,"maximum":9007199254740991},"maxConcurrent":{"type":"integer","minimum":1,"maximum":9007199254740991}}},"activeWindow":{"$ref":"#/components/schemas/ActiveWindow"},"failureAlert":{"$ref":"#/components/schemas/FailureAlert"},"timezoneSource":{"default":"profile","type":"string","enum":["profile","workspace"]},"timezone":{"default":"UTC","type":"string"},"exitOn":{"$ref":"#/components/schemas/Definition2"},"sequence":{"$ref":"#/components/schemas/Sequence"}}},"Goal":{"type":"object","properties":{"kind":{"type":"string","enum":["event","segment"]},"eventName":{"type":"string","maxLength":128},"filter":{"type":"object","additionalProperties":{}},"definition":{"$ref":"#/components/schemas/Definition2"},"windowDays":{"default":30,"type":"integer","minimum":1,"maximum":365},"onReach":{"default":"exit","type":"string","enum":["exit","continue","jump"]}},"required":["kind"]},"QuietHours2":{"default":"inherit","anyOf":[{"type":"string","enum":["inherit"]},{"type":"object","properties":{"startMin":{"type":"integer","minimum":0,"maximum":1440},"endMin":{"type":"integer","minimum":0,"maximum":1440}},"required":["startMin","endMin"]}]},"SendWindow":{"type":"object","properties":{"startMin":{"type":"integer","minimum":0,"maximum":1440},"endMin":{"type":"integer","minimum":0,"maximum":1440},"weekdays":{"type":"array","items":{"type":"integer","minimum":1,"maximum":7}}},"required":["startMin","endMin"]},"SmartSending":{"type":"object","properties":{"skipIfMessagedWithinHours":{"type":"integer","minimum":1,"maximum":336},"frequencyCap":{"type":"object","properties":{"maxSends":{"type":"integer","minimum":1,"maximum":1000},"windowHours":{"type":"integer","minimum":1,"maximum":720}},"required":["maxSends","windowHours"]}}},"ActiveWindow":{"type":"object","properties":{"from":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"until":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"}}},"FailureAlert":{"type":"object","properties":{"userIds":{"$ref":"#/components/schemas/ListIds4"},"emails":{"$ref":"#/components/schemas/Emails3"}}},"Sequence":{"type":"object","properties":{"steps":{"$ref":"#/components/schemas/Steps"},"schedule":{"$ref":"#/components/schemas/Schedule3"},"mailbox":{"$ref":"#/components/schemas/Mailbox"},"dailyNewLimit":{"type":"integer","minimum":1,"maximum":100000},"followUpPercent":{"type":"integer","minimum":0,"maximum":90},"plainTextOnly":{"type":"boolean"},"trackOpens":{"type":"boolean"},"unsubscribeText":{"type":"string","minLength":1,"maxLength":120},"spintaxMode":{"type":"string","enum":["random","sequential"]},"variables":{"type":"object","additionalProperties":{"type":"string","maxLength":500}},"blocklist":{"$ref":"#/components/schemas/Blocklist"},"reviewBeforeSend":{"type":"boolean"},"reviewEachMessage":{"type":"boolean"},"stop":{"$ref":"#/components/schemas/Stop"},"onCategory":{"$ref":"#/components/schemas/OnCategory"},"ownerUserId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"scheduleId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"dedupe":{"$ref":"#/components/schemas/Dedupe"},"startAt":{"type":"string","format":"date-time"},"minGapMinutes":{"type":"integer","minimum":1,"maximum":1440},"senderOverrides":{"type":"object","additionalProperties":{"type":"object","properties":{"dailyLimit":{"type":"integer","minimum":0,"maximum":100000},"paused":{"type":"boolean"}}}},"abm":{"$ref":"#/components/schemas/Abm"}}},"Steps":{"default":[],"maxItems":50,"type":"array","items":{"$ref":"#/components/schemas/StepsItem"}},"StepsItem":{"oneOf":[{"$ref":"#/components/schemas/StepsItemVariant"},{"$ref":"#/components/schemas/StepsItemVariant2"},{"$ref":"#/components/schemas/StepsItemVariant3"},{"$ref":"#/components/schemas/StepsItemVariant4"},{"$ref":"#/components/schemas/StepsItemVariant5"},{"$ref":"#/components/schemas/StepsItemVariant6"},{"$ref":"#/components/schemas/StepsItemVariant7"},{"$ref":"#/components/schemas/StepsItemVariant8"},{"$ref":"#/components/schemas/StepsItemVariant9"},{"$ref":"#/components/schemas/StepsItemVariant10"}]},"StepsItemVariant":{"type":"object","properties":{"type":{"type":"string","enum":["email"]},"templateId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"versionId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"thread":{"default":"new","type":"string","enum":["new","reply"]},"waitDays":{"default":0,"type":"integer","minimum":0,"maximum":365},"businessDays":{"default":false,"type":"boolean"},"when":{"$ref":"#/components/schemas/When"},"window":{"$ref":"#/components/schemas/Window2"},"alternates":{"$ref":"#/components/schemas/Alternates"},"weightA":{"default":1,"type":"integer","minimum":1,"maximum":1000},"optimize":{"default":false,"type":"boolean"},"senderConnectionId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},"required":["type","templateId"]},"When":{"oneOf":[{"$ref":"#/components/schemas/WhenVariant"},{"$ref":"#/components/schemas/WhenVariant2"},{"type":"object","properties":{"kind":{"type":"string","enum":["has_phone"]},"negate":{"default":false,"type":"boolean"}},"required":["kind"]},{"type":"object","properties":{"kind":{"type":"string","enum":["linkedin_connected"]},"negate":{"default":false,"type":"boolean"}},"required":["kind"]},{"$ref":"#/components/schemas/WhenVariant3"},{"type":"object","properties":{"kind":{"type":"string","enum":["verified"]},"negate":{"default":false,"type":"boolean"}},"required":["kind"]},{"$ref":"#/components/schemas/ConditionVariant"}]},"WhenVariant":{"type":"object","properties":{"kind":{"type":"string","enum":["engagement"]},"event":{"type":"string","enum":["opened","clicked","replied"]},"negate":{"default":false,"type":"boolean"}},"required":["kind","event"]},"WhenVariant2":{"type":"object","properties":{"kind":{"type":"string","enum":["task_outcome"]},"outcome":{"type":"string","minLength":1,"maxLength":40},"step":{"type":"string","maxLength":64},"negate":{"default":false,"type":"boolean"}},"required":["kind","outcome"]},"WhenVariant3":{"type":"object","properties":{"kind":{"type":"string","enum":["reply"]},"category":{"type":"string","enum":["positive","negative","neutral","ooo","auto_reply","bounce","unsubscribe","meeting","wrong_person"]},"negate":{"default":false,"type":"boolean"}},"required":["kind","category"]},"Window2":{"type":"object","properties":{"startMin":{"type":"integer","minimum":0,"maximum":1440},"endMin":{"type":"integer","minimum":0,"maximum":1440},"weekdays":{"minItems":1,"type":"array","items":{"type":"integer","minimum":1,"maximum":7}}},"required":["startMin","endMin"]},"Alternates":{"default":[],"maxItems":25,"type":"array","items":{"$ref":"#/components/schemas/AlternatesItem"}},"AlternatesItem":{"type":"object","properties":{"templateId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"versionId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"weight":{"default":1,"type":"integer","minimum":1,"maximum":1000}},"required":["templateId"]},"StepsItemVariant2":{"type":"object","properties":{"type":{"type":"string","enum":["wait"]},"days":{"type":"integer","minimum":1,"maximum":365},"businessDays":{"default":false,"type":"boolean"}},"required":["type","days"]},"StepsItemVariant3":{"type":"object","properties":{"type":{"type":"string","enum":["task"]},"kind":{"type":"string","enum":["call","linkedin_visit","linkedin_connect","linkedin_message","sms","whatsapp","manual_email","custom"]},"title":{"type":"string","minLength":1,"maxLength":200},"notes":{"type":"string","maxLength":5000},"draft":{"type":"string","maxLength":20000},"waitDays":{"default":0,"type":"integer","minimum":0,"maximum":365},"businessDays":{"default":false,"type":"boolean"},"when":{"$ref":"#/components/schemas/When"},"window":{"$ref":"#/components/schemas/Window2"}},"required":["type","kind","title"]},"StepsItemVariant4":{"type":"object","properties":{"type":{"type":"string","enum":["jump"]},"sequenceId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"waitDays":{"default":0,"type":"integer","minimum":0,"maximum":365},"businessDays":{"default":false,"type":"boolean"},"when":{"$ref":"#/components/schemas/When"},"window":{"$ref":"#/components/schemas/Window2"}},"required":["type","sequenceId"]},"StepsItemVariant5":{"type":"object","properties":{"type":{"type":"string","enum":["sms"]},"templateId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"versionId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"waitDays":{"default":0,"type":"integer","minimum":0,"maximum":365},"businessDays":{"default":false,"type":"boolean"},"when":{"$ref":"#/components/schemas/When"},"window":{"$ref":"#/components/schemas/Window2"}},"required":["type","templateId"]},"StepsItemVariant6":{"type":"object","properties":{"type":{"type":"string","enum":["webhook"]},"url":{"type":"string","format":"uri"},"body":{"type":"object","additionalProperties":{}},"headers":{"type":"object","additionalProperties":{"type":"string"}},"maxAttempts":{"default":5,"type":"integer","minimum":1,"maximum":8},"signingSecret":{"type":"string","minLength":8,"maxLength":200},"signingSecretSealed":{"type":"string","maxLength":2000},"signingSecretSet":{"type":"boolean"},"responseMap":{"$ref":"#/components/schemas/ResponseMap"},"waitDays":{"default":0,"type":"integer","minimum":0,"maximum":365},"businessDays":{"default":false,"type":"boolean"},"when":{"$ref":"#/components/schemas/When"},"window":{"$ref":"#/components/schemas/Window2"}},"required":["type","url"]},"StepsItemVariant7":{"type":"object","properties":{"type":{"type":"string","enum":["linkedin"]},"action":{"type":"string","enum":["visit","connect","message","like_post","inmail"]},"message":{"type":"string","maxLength":4000},"waitDays":{"default":0,"type":"integer","minimum":0,"maximum":365},"businessDays":{"default":false,"type":"boolean"},"when":{"$ref":"#/components/schemas/When"},"window":{"$ref":"#/components/schemas/Window2"}},"required":["type","action"]},"StepsItemVariant8":{"type":"object","properties":{"type":{"type":"string","enum":["whatsapp"]},"templateId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"versionId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"waitDays":{"default":0,"type":"integer","minimum":0,"maximum":365},"businessDays":{"default":false,"type":"boolean"},"when":{"$ref":"#/components/schemas/When"},"window":{"$ref":"#/components/schemas/Window2"}},"required":["type","templateId"]},"StepsItemVariant9":{"type":"object","properties":{"type":{"type":"string","enum":["voice"]},"clipId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"via":{"type":"string","enum":["linkedin","voicemail"]},"message":{"type":"string","maxLength":4000},"title":{"type":"string","maxLength":200},"waitDays":{"default":0,"type":"integer","minimum":0,"maximum":365},"businessDays":{"default":false,"type":"boolean"},"when":{"$ref":"#/components/schemas/When"},"window":{"$ref":"#/components/schemas/Window2"}},"required":["type","clipId","via"]},"StepsItemVariant10":{"type":"object","properties":{"type":{"type":"string","enum":["branch"]},"waitDays":{"default":0,"type":"integer","minimum":0,"maximum":365},"businessDays":{"default":false,"type":"boolean"},"branches":{"$ref":"#/components/schemas/Branches4"},"otherwise":{"$ref":"#/components/schemas/Steps2"}},"required":["type","branches"]},"Branches4":{"minItems":1,"maxItems":8,"type":"array","items":{"$ref":"#/components/schemas/BranchesItem4"}},"BranchesItem4":{"type":"object","properties":{"key":{"type":"string","pattern":"^[a-z0-9]{1,8}$"},"label":{"type":"string","maxLength":80},"when":{"$ref":"#/components/schemas/When"},"steps":{"$ref":"#/components/schemas/Steps2"}},"required":["key","when"]},"Steps2":{"default":[],"maxItems":20,"type":"array","items":{"$ref":"#/components/schemas/StepsItem2"}},"StepsItem2":{"oneOf":[{"$ref":"#/components/schemas/StepsItemVariant"},{"$ref":"#/components/schemas/StepsItemVariant2"},{"$ref":"#/components/schemas/StepsItemVariant3"},{"$ref":"#/components/schemas/StepsItemVariant4"},{"$ref":"#/components/schemas/StepsItemVariant5"},{"$ref":"#/components/schemas/StepsItemVariant6"},{"$ref":"#/components/schemas/StepsItemVariant7"},{"$ref":"#/components/schemas/StepsItemVariant8"},{"$ref":"#/components/schemas/StepsItemVariant9"}]},"Schedule3":{"default":{"weekdays":[1,2,3,4,5],"startMin":540,"endMin":1020,"timezoneSource":"prospect","timezone":"UTC"},"type":"object","properties":{"weekdays":{"default":[1,2,3,4,5],"minItems":1,"type":"array","items":{"type":"integer","minimum":1,"maximum":7}},"startMin":{"default":540,"type":"integer","minimum":0,"maximum":1440},"endMin":{"default":1020,"type":"integer","minimum":0,"maximum":1440},"timezoneSource":{"default":"prospect","type":"string","enum":["prospect","sequence"]},"timezone":{"default":"UTC","type":"string"}}},"Mailbox":{"default":{"sticky":true,"onUnavailable":"pause"},"type":"object","properties":{"poolId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"connectionId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"sticky":{"default":true,"type":"boolean"},"onUnavailable":{"default":"pause","type":"string","enum":["pause","reassign"]}}},"Blocklist":{"type":"object","properties":{"emails":{"maxItems":2000,"type":"array","items":{"type":"string","format":"email","pattern":"^(?:[A-Za-z0-9_'+\\-]+\\.)*[A-Za-z0-9_'+\\-]*[A-Za-z0-9_+-]@(?:[A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$"}},"domains":{"default":[],"maxItems":500,"type":"array","items":{"type":"string","pattern":"^[a-z0-9.-]+\\.[a-z]{2,}$"}}}},"Stop":{"default":{"onReply":"human","onAutoReply":"continue","onOoo":"pause_until_return","onCompanyReply":"none"},"type":"object","properties":{"onReply":{"default":"human","type":"string","enum":["human","any"]},"onAutoReply":{"default":"continue","type":"string","enum":["continue","pause"]},"onOoo":{"default":"pause_until_return","type":"string","enum":["pause_until_return","continue","stop"]},"onCompanyReply":{"default":"none","type":"string","enum":["none","stop","pause"]}}},"OnCategory":{"maxItems":10,"type":"array","items":{"$ref":"#/components/schemas/OnCategoryItem"}},"OnCategoryItem":{"type":"object","properties":{"category":{"type":"string","enum":["positive","negative","neutral","ooo","auto_reply","bounce","unsubscribe","meeting","wrong_person"]},"sequenceId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"stopCurrent":{"default":true,"type":"boolean"}},"required":["category","sequenceId"]},"Dedupe":{"default":{"crossSequence":"skip","contactedWithinDays":0,"domain":false},"type":"object","properties":{"crossSequence":{"default":"skip","type":"string","enum":["skip","allow"]},"contactedWithinDays":{"default":0,"type":"integer","minimum":0,"maximum":3650},"domain":{"default":false,"type":"boolean"}}},"Abm":{"type":"object","properties":{"maxPerAccount":{"default":5,"type":"integer","minimum":1,"maximum":100},"onAccountReply":{"default":"stop","type":"string","enum":["none","stop","pause"]}}},"Definition3":{"type":"object","properties":{"graph":{"$ref":"#/components/schemas/Graph2"},"triggers":{"$ref":"#/components/schemas/Triggers2"},"settings":{"$ref":"#/components/schemas/Settings5"}},"required":["graph","triggers","settings"],"additionalProperties":false},"Graph2":{"type":"object","properties":{"start":{"default":null,"nullable":true,"type":"string","minLength":1,"maxLength":64},"nodes":{"$ref":"#/components/schemas/Nodes2"},"edges":{"$ref":"#/components/schemas/Edges2"}},"required":["start","nodes","edges"],"additionalProperties":false},"Nodes2":{"maxItems":501,"type":"array","items":{"$ref":"#/components/schemas/NodesItem2"}},"NodesItem2":{"oneOf":[{"$ref":"#/components/schemas/NodesItemVariant86"},{"$ref":"#/components/schemas/NodesItemVariant87"},{"$ref":"#/components/schemas/NodesItemVariant88"},{"$ref":"#/components/schemas/NodesItemVariant89"},{"$ref":"#/components/schemas/NodesItemVariant90"},{"$ref":"#/components/schemas/NodesItemVariant91"},{"$ref":"#/components/schemas/NodesItemVariant92"},{"$ref":"#/components/schemas/NodesItemVariant93"},{"$ref":"#/components/schemas/NodesItemVariant94"},{"$ref":"#/components/schemas/NodesItemVariant95"},{"$ref":"#/components/schemas/NodesItemVariant96"},{"$ref":"#/components/schemas/NodesItemVariant97"},{"$ref":"#/components/schemas/NodesItemVariant98"},{"$ref":"#/components/schemas/NodesItemVariant99"},{"$ref":"#/components/schemas/NodesItemVariant100"},{"$ref":"#/components/schemas/NodesItemVariant101"},{"$ref":"#/components/schemas/NodesItemVariant102"},{"$ref":"#/components/schemas/NodesItemVariant103"},{"$ref":"#/components/schemas/NodesItemVariant104"},{"$ref":"#/components/schemas/NodesItemVariant105"},{"$ref":"#/components/schemas/NodesItemVariant106"},{"$ref":"#/components/schemas/NodesItemVariant107"},{"$ref":"#/components/schemas/NodesItemVariant108"},{"$ref":"#/components/schemas/NodesItemVariant109"},{"$ref":"#/components/schemas/NodesItemVariant110"},{"$ref":"#/components/schemas/NodesItemVariant111"},{"$ref":"#/components/schemas/NodesItemVariant112"},{"$ref":"#/components/schemas/NodesItemVariant113"},{"$ref":"#/components/schemas/NodesItemVariant114"},{"$ref":"#/components/schemas/NodesItemVariant115"},{"$ref":"#/components/schemas/NodesItemVariant116"},{"$ref":"#/components/schemas/NodesItemVariant117"},{"$ref":"#/components/schemas/NodesItemVariant118"},{"$ref":"#/components/schemas/NodesItemVariant119"},{"$ref":"#/components/schemas/NodesItemVariant120"},{"$ref":"#/components/schemas/NodesItemVariant121"},{"$ref":"#/components/schemas/NodesItemVariant122"},{"$ref":"#/components/schemas/NodesItemVariant123"},{"$ref":"#/components/schemas/NodesItemVariant124"},{"$ref":"#/components/schemas/NodesItemVariant125"},{"$ref":"#/components/schemas/NodesItemVariant126"},{"$ref":"#/components/schemas/NodesItemVariant127"},{"$ref":"#/components/schemas/NodesItemVariant128"},{"$ref":"#/components/schemas/NodesItemVariant129"},{"$ref":"#/components/schemas/NodesItemVariant130"},{"$ref":"#/components/schemas/NodesItemVariant131"},{"$ref":"#/components/schemas/NodesItemVariant132"},{"$ref":"#/components/schemas/NodesItemVariant133"},{"$ref":"#/components/schemas/NodesItemVariant134"},{"$ref":"#/components/schemas/NodesItemVariant135"},{"$ref":"#/components/schemas/NodesItemVariant136"},{"$ref":"#/components/schemas/NodesItemVariant137"},{"$ref":"#/components/schemas/NodesItemVariant138"},{"$ref":"#/components/schemas/NodesItemVariant139"},{"$ref":"#/components/schemas/NodesItemVariant140"},{"$ref":"#/components/schemas/NodesItemVariant141"},{"$ref":"#/components/schemas/NodesItemVariant142"},{"$ref":"#/components/schemas/NodesItemVariant143"},{"$ref":"#/components/schemas/NodesItemVariant144"},{"$ref":"#/components/schemas/NodesItemVariant145"},{"$ref":"#/components/schemas/NodesItemVariant146"},{"$ref":"#/components/schemas/NodesItemVariant147"},{"$ref":"#/components/schemas/NodesItemVariant148"},{"$ref":"#/components/schemas/NodesItemVariant149"},{"$ref":"#/components/schemas/NodesItemVariant150"},{"$ref":"#/components/schemas/NodesItemVariant151"},{"$ref":"#/components/schemas/NodesItemVariant152"},{"$ref":"#/components/schemas/NodesItemVariant153"},{"$ref":"#/components/schemas/NodesItemVariant154"},{"$ref":"#/components/schemas/NodesItemVariant155"},{"$ref":"#/components/schemas/NodesItemVariant156"},{"$ref":"#/components/schemas/NodesItemVariant157"},{"$ref":"#/components/schemas/NodesItemVariant158"},{"$ref":"#/components/schemas/NodesItemVariant159"},{"$ref":"#/components/schemas/NodesItemVariant160"},{"$ref":"#/components/schemas/NodesItemVariant161"},{"$ref":"#/components/schemas/NodesItemVariant162"},{"$ref":"#/components/schemas/NodesItemVariant163"},{"$ref":"#/components/schemas/NodesItemVariant164"},{"$ref":"#/components/schemas/NodesItemVariant165"},{"$ref":"#/components/schemas/NodesItemVariant166"},{"$ref":"#/components/schemas/NodesItemVariant167"},{"$ref":"#/components/schemas/NodesItemVariant168"},{"$ref":"#/components/schemas/NodesItemVariant169"},{"$ref":"#/components/schemas/NodesItemVariant170"}]},"NodesItemVariant86":{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":64},"type":{"type":"string","enum":["send_email"]},"config":{"$ref":"#/components/schemas/Config57"},"position":{"type":"object","properties":{"x":{"type":"number"},"y":{"type":"number"}},"required":["x","y"],"additionalProperties":false},"name":{"type":"string","maxLength":80}},"required":["id","type","config"],"additionalProperties":false},"Config57":{"type":"object","properties":{"templateId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"versionId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"route":{"$ref":"#/components/schemas/Route2"},"topicId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"replyToStep":{"type":"string","minLength":1,"maxLength":64},"onBlocked":{"default":"continue","type":"string","enum":["continue","exit"]},"skipOnFailure":{"type":"boolean"},"skipIfMessagedWithinHours":{"type":"integer","minimum":1,"maximum":720},"filter":{"$ref":"#/components/schemas/Definition"},"retries":{"type":"integer","minimum":0,"maximum":5},"senderIdentityId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"replyTo":{"type":"string","maxLength":1000},"oneClickUnsubscribe":{"type":"boolean"}},"required":["templateId","route","onBlocked"],"additionalProperties":false},"NodesItemVariant87":{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":64},"type":{"type":"string","enum":["send_sms"]},"config":{"$ref":"#/components/schemas/Config58"},"position":{"type":"object","properties":{"x":{"type":"number"},"y":{"type":"number"}},"required":["x","y"],"additionalProperties":false},"name":{"type":"string","maxLength":80}},"required":["id","type","config"],"additionalProperties":false},"Config58":{"type":"object","properties":{"templateId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"versionId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"route":{"$ref":"#/components/schemas/Route2"},"topicId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"replyToStep":{"type":"string","minLength":1,"maxLength":64},"onBlocked":{"default":"continue","type":"string","enum":["continue","exit"]},"skipOnFailure":{"type":"boolean"},"skipIfMessagedWithinHours":{"type":"integer","minimum":1,"maximum":720},"filter":{"$ref":"#/components/schemas/Definition"},"retries":{"type":"integer","minimum":0,"maximum":5},"senderIdentityId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"replyTo":{"type":"string","maxLength":1000},"oneClickUnsubscribe":{"type":"boolean"},"purpose":{"type":"string","enum":["marketing","prospecting","transactional","operational"]}},"required":["templateId","route","onBlocked"],"additionalProperties":false},"NodesItemVariant88":{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":64},"type":{"type":"string","enum":["send_whatsapp"]},"config":{"$ref":"#/components/schemas/Config58"},"position":{"type":"object","properties":{"x":{"type":"number"},"y":{"type":"number"}},"required":["x","y"],"additionalProperties":false},"name":{"type":"string","maxLength":80}},"required":["id","type","config"],"additionalProperties":false},"NodesItemVariant89":{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":64},"type":{"type":"string","enum":["send_push"]},"config":{"$ref":"#/components/schemas/Config59"},"position":{"type":"object","properties":{"x":{"type":"number"},"y":{"type":"number"}},"required":["x","y"],"additionalProperties":false},"name":{"type":"string","maxLength":80}},"required":["id","type","config"],"additionalProperties":false},"Config59":{"type":"object","properties":{"templateId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"versionId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"route":{"$ref":"#/components/schemas/Route2"},"topicId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"replyToStep":{"type":"string","minLength":1,"maxLength":64},"onBlocked":{"default":"continue","type":"string","enum":["continue","exit"]},"skipOnFailure":{"type":"boolean"},"skipIfMessagedWithinHours":{"type":"integer","minimum":1,"maximum":720},"filter":{"$ref":"#/components/schemas/Definition"},"retries":{"type":"integer","minimum":0,"maximum":5},"senderIdentityId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"replyTo":{"type":"string","maxLength":1000},"oneClickUnsubscribe":{"type":"boolean"},"purpose":{"type":"string","enum":["marketing","prospecting","transactional","operational"]},"push":{"$ref":"#/components/schemas/Push2"}},"required":["templateId","route","onBlocked"],"additionalProperties":false},"Push2":{"type":"object","properties":{"imageUrl":{"type":"string","maxLength":2000},"url":{"type":"string","maxLength":2000},"data":{"type":"object","additionalProperties":{"type":"string","maxLength":1000}},"badge":{"type":"integer","minimum":0,"maximum":99999},"sound":{"type":"string","maxLength":100},"ttlSeconds":{"type":"integer","minimum":0,"maximum":2419200},"priority":{"type":"string","enum":["high","normal"]},"collapseKey":{"type":"string","maxLength":64},"ios":{"$ref":"#/components/schemas/Ios2"},"android":{"$ref":"#/components/schemas/Ios2"},"web":{"$ref":"#/components/schemas/Ios2"}},"additionalProperties":false},"Ios2":{"type":"object","properties":{"title":{"type":"string","maxLength":500},"body":{"type":"string","maxLength":2000},"imageUrl":{"type":"string","format":"uri"},"url":{"type":"string","maxLength":2000},"sound":{"type":"string","maxLength":100},"badge":{"type":"integer","minimum":0,"maximum":99999}},"additionalProperties":false},"NodesItemVariant90":{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":64},"type":{"type":"string","enum":["send_transactional_email"]},"config":{"$ref":"#/components/schemas/Config57"},"position":{"type":"object","properties":{"x":{"type":"number"},"y":{"type":"number"}},"required":["x","y"],"additionalProperties":false},"name":{"type":"string","maxLength":80}},"required":["id","type","config"],"additionalProperties":false},"NodesItemVariant91":{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":64},"type":{"type":"string","enum":["notify_internal"]},"config":{"$ref":"#/components/schemas/Config60"},"position":{"type":"object","properties":{"x":{"type":"number"},"y":{"type":"number"}},"required":["x","y"],"additionalProperties":false},"name":{"type":"string","maxLength":80}},"required":["id","type","config"],"additionalProperties":false},"Config60":{"default":{"to":{"userIds":[],"emails":[]},"params":{}},"type":"object","properties":{"title":{"type":"string","maxLength":200},"subject":{"type":"string","maxLength":200},"body":{"type":"string","maxLength":5000},"to":{"$ref":"#/components/schemas/To3"},"params":{"default":{},"type":"object","additionalProperties":{}}},"required":["to","params"],"additionalProperties":false},"To3":{"default":{"userIds":[],"emails":[]},"type":"object","properties":{"userIds":{"$ref":"#/components/schemas/ListIds4"},"emails":{"$ref":"#/components/schemas/Emails3"},"slackWebhookUrl":{"type":"string","format":"uri"},"webhookUrl":{"type":"string","format":"uri"},"discordWebhookUrl":{"type":"string","pattern":"^https:\\/\\/(discord\\.com|discordapp\\.com|ptb\\.discord\\.com|canary\\.discord\\.com)\\/api\\/webhooks\\/"}},"required":["userIds","emails"],"additionalProperties":false},"NodesItemVariant92":{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":64},"type":{"type":"string","enum":["create_task"]},"config":{"$ref":"#/components/schemas/Config61"},"position":{"type":"object","properties":{"x":{"type":"number"},"y":{"type":"number"}},"required":["x","y"],"additionalProperties":false},"name":{"type":"string","maxLength":80}},"required":["id","type","config"],"additionalProperties":false},"Config61":{"default":{"params":{}},"type":"object","properties":{"title":{"type":"string","maxLength":200},"params":{"default":{},"type":"object","additionalProperties":{}}},"required":["params"],"additionalProperties":false},"NodesItemVariant93":{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":64},"type":{"type":"string","enum":["send_webhook"]},"config":{"$ref":"#/components/schemas/Config62"},"position":{"type":"object","properties":{"x":{"type":"number"},"y":{"type":"number"}},"required":["x","y"],"additionalProperties":false},"name":{"type":"string","maxLength":80}},"required":["id","type","config"],"additionalProperties":false},"Config62":{"type":"object","properties":{"webhookTemplateId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"url":{"type":"string","format":"uri"},"method":{"type":"string","enum":["POST","PUT","PATCH","DELETE","GET","HEAD","OPTIONS"]},"bodyFormat":{"default":"json","type":"string","enum":["json","form","text","xml"]},"rawBody":{"type":"string","maxLength":100000},"authHeaders":{"$ref":"#/components/schemas/AuthHeaders2"},"body":{"type":"object","additionalProperties":{}},"headers":{"type":"object","additionalProperties":{"type":"string"}},"maxAttempts":{"default":5,"type":"integer","minimum":1,"maximum":8},"signingSecret":{"type":"string","minLength":8,"maxLength":200},"signingSecretSealed":{"type":"string","maxLength":2000},"signingSecretSet":{"type":"boolean"},"responseMap":{"$ref":"#/components/schemas/ResponseMap2"},"inputFields":{"default":{},"type":"object","additionalProperties":{"type":"string","maxLength":2000}},"awaitResponse":{"default":false,"type":"boolean"},"awaitCallback":{"default":false,"type":"boolean"},"responseTimeout":{"$ref":"#/components/schemas/ResponseTimeout2"}},"required":["bodyFormat","maxAttempts","responseMap","inputFields","awaitResponse","awaitCallback","responseTimeout"],"additionalProperties":false},"AuthHeaders2":{"maxItems":10,"type":"array","items":{"$ref":"#/components/schemas/AuthHeadersItem2"}},"AuthHeadersItem2":{"type":"object","properties":{"header":{"type":"string","pattern":"^[A-Za-z0-9-]{1,64}$"},"secretName":{"type":"string","minLength":1,"maxLength":100},"prefix":{"type":"string","maxLength":40}},"required":["header","secretName"],"additionalProperties":false},"ResponseMap2":{"default":[],"maxItems":20,"type":"array","items":{"$ref":"#/components/schemas/ResponseMapItem"}},"ResponseMapItem":{"type":"object","properties":{"path":{"type":"string","minLength":1,"maxLength":200},"field":{"type":"string","minLength":1,"maxLength":128}},"required":["path","field"],"additionalProperties":false},"ResponseTimeout2":{"default":{"amount":10,"unit":"minutes"},"type":"object","properties":{"amount":{"type":"integer","minimum":0,"maximum":5256000},"unit":{"type":"string","enum":["minutes","hours","days","weeks"]}},"required":["amount","unit"],"additionalProperties":false},"NodesItemVariant94":{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":64},"type":{"type":"string","enum":["add_note"]},"config":{"type":"object","properties":{"body":{"type":"string","minLength":1,"maxLength":5000}},"required":["body"],"additionalProperties":false},"position":{"type":"object","properties":{"x":{"type":"number"},"y":{"type":"number"}},"required":["x","y"],"additionalProperties":false},"name":{"type":"string","maxLength":80}},"required":["id","type","config"],"additionalProperties":false},"NodesItemVariant95":{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":64},"type":{"type":"string","enum":["show_in_app"]},"config":{"$ref":"#/components/schemas/Config63"},"position":{"type":"object","properties":{"x":{"type":"number"},"y":{"type":"number"}},"required":["x","y"],"additionalProperties":false},"name":{"type":"string","maxLength":80}},"required":["id","type","config"],"additionalProperties":false},"Config63":{"type":"object","properties":{"messageId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"expiresInHours":{"default":24,"type":"integer","minimum":1,"maximum":720}},"required":["messageId","expiresInHours"],"additionalProperties":false},"NodesItemVariant96":{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":64},"type":{"type":"string","enum":["if_else"]},"config":{"$ref":"#/components/schemas/Config64"},"position":{"type":"object","properties":{"x":{"type":"number"},"y":{"type":"number"}},"required":["x","y"],"additionalProperties":false},"name":{"type":"string","maxLength":80}},"required":["id","type","config"],"additionalProperties":false},"Config64":{"type":"object","properties":{"condition":{"$ref":"#/components/schemas/Condition2"}},"required":["condition"],"additionalProperties":false},"Condition2":{"oneOf":[{"$ref":"#/components/schemas/ConditionVariant12"},{"$ref":"#/components/schemas/ConditionVariant13"},{"$ref":"#/components/schemas/ConditionVariant14"},{"$ref":"#/components/schemas/ConditionVariant15"},{"$ref":"#/components/schemas/ConditionVariant16"},{"$ref":"#/components/schemas/ConditionVariant17"},{"$ref":"#/components/schemas/ConditionVariant18"},{"$ref":"#/components/schemas/ConditionVariant19"},{"$ref":"#/components/schemas/ConditionVariant20"},{"$ref":"#/components/schemas/ConditionVariant21"},{"$ref":"#/components/schemas/ConditionVariant22"},{"$ref":"#/components/schemas/ConditionVariant23"},{"$ref":"#/components/schemas/ConditionVariant24"}]},"ConditionVariant12":{"type":"object","properties":{"kind":{"type":"string","enum":["field"]},"field":{"type":"string","minLength":1,"maxLength":128},"op":{"type":"string","enum":["eq","ne","gt","gte","lt","lte","contains","exists","not_exists"]},"value":{}},"required":["kind","field","op"],"additionalProperties":false},"ConditionVariant13":{"type":"object","properties":{"kind":{"type":"string","enum":["tag"]},"name":{"type":"string","minLength":1,"maxLength":64}},"required":["kind","name"],"additionalProperties":false},"ConditionVariant14":{"type":"object","properties":{"kind":{"type":"string","enum":["in_list"]},"listId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},"required":["kind","listId"],"additionalProperties":false},"ConditionVariant15":{"type":"object","properties":{"kind":{"type":"string","enum":["in_segment"]},"segmentId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},"required":["kind","segmentId"],"additionalProperties":false},"ConditionVariant16":{"type":"object","properties":{"kind":{"type":"string","enum":["consent"]},"channel":{"type":"string","enum":["email","sms","whatsapp","push","postcard"]},"purpose":{"default":"marketing","type":"string","enum":["marketing","prospecting","transactional","operational"]}},"required":["kind","channel","purpose"],"additionalProperties":false},"ConditionVariant17":{"type":"object","properties":{"kind":{"type":"string","enum":["trigger"]},"path":{"type":"string","minLength":1,"maxLength":128},"op":{"type":"string","enum":["eq","ne","gt","gte","lt","lte","contains","exists","not_exists"]},"value":{}},"required":["kind","path","op"],"additionalProperties":false},"ConditionVariant18":{"type":"object","properties":{"kind":{"type":"string","enum":["var"]},"key":{"type":"string","minLength":1,"maxLength":64},"op":{"type":"string","enum":["eq","ne","gt","gte","lt","lte","contains","exists","not_exists"]},"value":{}},"required":["kind","key","op"],"additionalProperties":false},"ConditionVariant19":{"type":"object","properties":{"kind":{"type":"string","enum":["definition"]},"definition":{"$ref":"#/components/schemas/Definition"}},"required":["kind","definition"],"additionalProperties":false},"ConditionVariant20":{"type":"object","properties":{"kind":{"type":"string","enum":["field_changed"]},"field":{"type":"string","minLength":1,"maxLength":128},"from":{},"to":{}},"required":["kind","field"],"additionalProperties":false},"ConditionVariant21":{"type":"object","properties":{"kind":{"type":"string","enum":["in_workflow"]},"workflowId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"state":{"default":"active","type":"string","enum":["active","completed","ever"]}},"required":["kind","workflowId","state"],"additionalProperties":false},"ConditionVariant22":{"type":"object","properties":{"kind":{"type":"string","enum":["time"]},"weekdays":{"type":"array","items":{"type":"integer","minimum":1,"maximum":7}},"startMin":{"type":"integer","minimum":0,"maximum":1440},"endMin":{"type":"integer","minimum":0,"maximum":1440},"tz":{"type":"string","maxLength":64}},"required":["kind"],"additionalProperties":false},"ConditionVariant23":{"type":"object","properties":{"kind":{"type":"string","enum":["push_token"]},"platform":{"type":"string","enum":["ios","android","web"]}},"required":["kind"],"additionalProperties":false},"ConditionVariant24":{"type":"object","properties":{"kind":{"type":"string","enum":["date"]},"source":{"default":"field","type":"string","enum":["field","trigger","var"]},"path":{"type":"string","minLength":1,"maxLength":128},"op":{"type":"string","enum":["before","after","today","within_next_days","within_past_days","anniversary_within_days"]},"days":{"default":0,"type":"integer","minimum":0,"maximum":3660}},"required":["kind","source","path","op","days"],"additionalProperties":false},"NodesItemVariant97":{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":64},"type":{"type":"string","enum":["multi_branch"]},"config":{"$ref":"#/components/schemas/Config65"},"position":{"type":"object","properties":{"x":{"type":"number"},"y":{"type":"number"}},"required":["x","y"],"additionalProperties":false},"name":{"type":"string","maxLength":80}},"required":["id","type","config"],"additionalProperties":false},"Config65":{"type":"object","properties":{"branches":{"$ref":"#/components/schemas/Branches5"},"pick":{"default":"first","type":"string","enum":["first","weighted"]}},"required":["branches","pick"],"additionalProperties":false},"Branches5":{"minItems":1,"maxItems":25,"type":"array","items":{"$ref":"#/components/schemas/BranchesItem5"}},"BranchesItem5":{"type":"object","properties":{"key":{"type":"string","minLength":1,"maxLength":32},"condition":{"$ref":"#/components/schemas/Condition2"},"weight":{"default":1,"type":"integer","minimum":0,"maximum":1000}},"required":["key","condition","weight"],"additionalProperties":false},"NodesItemVariant98":{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":64},"type":{"type":"string","enum":["random_split"]},"config":{"$ref":"#/components/schemas/Config66"},"position":{"type":"object","properties":{"x":{"type":"number"},"y":{"type":"number"}},"required":["x","y"],"additionalProperties":false},"name":{"type":"string","maxLength":80}},"required":["id","type","config"],"additionalProperties":false},"Config66":{"type":"object","properties":{"splits":{"$ref":"#/components/schemas/Splits2"}},"required":["splits"],"additionalProperties":false},"Splits2":{"minItems":2,"maxItems":26,"type":"array","items":{"$ref":"#/components/schemas/SplitsItem"}},"SplitsItem":{"type":"object","properties":{"key":{"type":"string","minLength":1,"maxLength":32},"weight":{"type":"integer","minimum":0,"maximum":1000}},"required":["key","weight"],"additionalProperties":false},"NodesItemVariant99":{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":64},"type":{"type":"string","enum":["ab_test"]},"config":{"$ref":"#/components/schemas/Config67"},"position":{"type":"object","properties":{"x":{"type":"number"},"y":{"type":"number"}},"required":["x","y"],"additionalProperties":false},"name":{"type":"string","maxLength":80}},"required":["id","type","config"],"additionalProperties":false},"Config67":{"type":"object","properties":{"experimentId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"variants":{"$ref":"#/components/schemas/Splits2"},"autoWinner":{"$ref":"#/components/schemas/AutoWinner2"}},"required":["variants"],"additionalProperties":false},"AutoWinner2":{"type":"object","properties":{"metric":{"default":"clicks","type":"string","enum":["clicks","opens","conversions","revenue","replies"]},"afterHours":{"default":48,"type":"integer","minimum":1,"maximum":720},"minRecipients":{"default":100,"type":"integer","minimum":1,"maximum":1000000},"minConversions":{"default":20,"type":"integer","minimum":1,"maximum":1000000},"pBest":{"default":0.95,"type":"number","minimum":0.5,"maximum":0.999},"stopAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"shift":{"type":"boolean"}},"required":["metric","afterHours","minRecipients","minConversions","pBest"],"additionalProperties":false},"NodesItemVariant100":{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":64},"type":{"type":"string","enum":["for_each_item"]},"config":{"$ref":"#/components/schemas/Config68"},"position":{"type":"object","properties":{"x":{"type":"number"},"y":{"type":"number"}},"required":["x","y"],"additionalProperties":false},"name":{"type":"string","maxLength":80}},"required":["id","type","config"],"additionalProperties":false},"Config68":{"type":"object","properties":{"path":{"type":"string","minLength":1,"maxLength":128},"max":{"default":10,"type":"integer","minimum":1,"maximum":25}},"required":["path","max"],"additionalProperties":false},"NodesItemVariant101":{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":64},"type":{"type":"string","enum":["query_collection"]},"config":{"$ref":"#/components/schemas/Config69"},"position":{"type":"object","properties":{"x":{"type":"number"},"y":{"type":"number"}},"required":["x","y"],"additionalProperties":false},"name":{"type":"string","maxLength":80}},"required":["id","type","config"],"additionalProperties":false},"Config69":{"type":"object","properties":{"collectionId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"column":{"type":"string","minLength":1,"maxLength":128},"value":{"default":"{{ profile.emailPrimary }}","type":"string","minLength":1,"maxLength":500},"saveAs":{"default":"row","type":"string","pattern":"^[a-z][a-z0-9_]{0,31}$"}},"required":["collectionId","column","value","saveAs"],"additionalProperties":false},"NodesItemVariant102":{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":64},"type":{"type":"string","enum":["switch"]},"config":{"$ref":"#/components/schemas/Config70"},"position":{"type":"object","properties":{"x":{"type":"number"},"y":{"type":"number"}},"required":["x","y"],"additionalProperties":false},"name":{"type":"string","maxLength":80}},"required":["id","type","config"],"additionalProperties":false},"Config70":{"type":"object","properties":{"field":{"type":"string","minLength":1,"maxLength":128},"cases":{"minItems":1,"maxItems":25,"type":"array","items":{"type":"string","maxLength":128}}},"required":["field","cases"],"additionalProperties":false},"NodesItemVariant103":{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":64},"type":{"type":"string","enum":["merge"]},"config":{"default":{},"type":"object","properties":{},"additionalProperties":false},"position":{"type":"object","properties":{"x":{"type":"number"},"y":{"type":"number"}},"required":["x","y"],"additionalProperties":false},"name":{"type":"string","maxLength":80}},"required":["id","type","config"],"additionalProperties":false},"NodesItemVariant104":{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":64},"type":{"type":"string","enum":["goto"]},"config":{"$ref":"#/components/schemas/Config71"},"position":{"type":"object","properties":{"x":{"type":"number"},"y":{"type":"number"}},"required":["x","y"],"additionalProperties":false},"name":{"type":"string","maxLength":80}},"required":["id","type","config"],"additionalProperties":false},"Config71":{"type":"object","properties":{"target":{"type":"string","minLength":1,"maxLength":64},"condition":{"$ref":"#/components/schemas/Condition2"}},"required":["target"],"additionalProperties":false},"NodesItemVariant105":{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":64},"type":{"type":"string","enum":["exit_workflow"]},"config":{"$ref":"#/components/schemas/Config72"},"position":{"type":"object","properties":{"x":{"type":"number"},"y":{"type":"number"}},"required":["x","y"],"additionalProperties":false},"name":{"type":"string","maxLength":80}},"required":["id","type","config"],"additionalProperties":false},"Config72":{"type":"object","properties":{"workflowId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"reason":{"default":"exited_by_journey","type":"string","maxLength":64}},"required":["workflowId","reason"],"additionalProperties":false},"NodesItemVariant106":{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":64},"type":{"type":"string","enum":["exit"]},"config":{"default":{"reason":"exit_node"},"type":"object","properties":{"reason":{"default":"exit_node","type":"string","maxLength":64}},"required":["reason"],"additionalProperties":false},"position":{"type":"object","properties":{"x":{"type":"number"},"y":{"type":"number"}},"required":["x","y"],"additionalProperties":false},"name":{"type":"string","maxLength":80}},"required":["id","type","config"],"additionalProperties":false},"NodesItemVariant107":{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":64},"type":{"type":"string","enum":["enroll_workflow"]},"config":{"$ref":"#/components/schemas/Config73"},"position":{"type":"object","properties":{"x":{"type":"number"},"y":{"type":"number"}},"required":["x","y"],"additionalProperties":false},"name":{"type":"string","maxLength":80}},"required":["id","type","config"],"additionalProperties":false},"Config73":{"type":"object","properties":{"workflowId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},"required":["workflowId"],"additionalProperties":false},"NodesItemVariant108":{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":64},"type":{"type":"string","enum":["delay"]},"config":{"$ref":"#/components/schemas/Config74"},"position":{"type":"object","properties":{"x":{"type":"number"},"y":{"type":"number"}},"required":["x","y"],"additionalProperties":false},"name":{"type":"string","maxLength":80}},"required":["id","type","config"],"additionalProperties":false},"Config74":{"type":"object","properties":{"duration":{"$ref":"#/components/schemas/Duration2"},"mode":{"default":"calendar","type":"string","enum":["calendar","exact"]},"atTime":{"type":"string","pattern":"^([01]\\d|2[0-3]):[0-5]\\d$"},"weekdays":{"maxItems":7,"type":"array","items":{"type":"integer","minimum":1,"maximum":7}},"tz":{"type":"string","maxLength":64}},"required":["duration","mode"],"additionalProperties":false},"Duration2":{"type":"object","properties":{"amount":{"type":"integer","minimum":0,"maximum":5256000},"unit":{"type":"string","enum":["minutes","hours","days","weeks"]}},"required":["amount","unit"],"additionalProperties":false},"NodesItemVariant109":{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":64},"type":{"type":"string","enum":["wait_until_date"]},"config":{"$ref":"#/components/schemas/Config75"},"position":{"type":"object","properties":{"x":{"type":"number"},"y":{"type":"number"}},"required":["x","y"],"additionalProperties":false},"name":{"type":"string","maxLength":80}},"required":["id","type","config"],"additionalProperties":false},"Config75":{"type":"object","properties":{"attribute":{"type":"string","maxLength":128},"at":{"type":"string","format":"date-time"},"offsetDays":{"default":0,"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"yearly":{"default":false,"type":"boolean"}},"required":["offsetDays","yearly"],"additionalProperties":false},"NodesItemVariant110":{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":64},"type":{"type":"string","enum":["batch"]},"config":{"$ref":"#/components/schemas/Config76"},"position":{"type":"object","properties":{"x":{"type":"number"},"y":{"type":"number"}},"required":["x","y"],"additionalProperties":false},"name":{"type":"string","maxLength":80}},"required":["id","type","config"],"additionalProperties":false},"Config76":{"type":"object","properties":{"window":{"$ref":"#/components/schemas/Duration2"}},"required":["window"],"additionalProperties":false},"NodesItemVariant111":{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":64},"type":{"type":"string","enum":["wait_best_send_time"]},"config":{"default":{},"type":"object","properties":{},"additionalProperties":false},"position":{"type":"object","properties":{"x":{"type":"number"},"y":{"type":"number"}},"required":["x","y"],"additionalProperties":false},"name":{"type":"string","maxLength":80}},"required":["id","type","config"],"additionalProperties":false},"NodesItemVariant112":{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":64},"type":{"type":"string","enum":["wait_for_event"]},"config":{"$ref":"#/components/schemas/Config77"},"position":{"type":"object","properties":{"x":{"type":"number"},"y":{"type":"number"}},"required":["x","y"],"additionalProperties":false},"name":{"type":"string","maxLength":80}},"required":["id","type","config"],"additionalProperties":false},"Config77":{"type":"object","properties":{"eventName":{"type":"string","minLength":1,"maxLength":128},"filter":{"type":"object","additionalProperties":{}},"conditions":{"$ref":"#/components/schemas/Conditions2"},"timeout":{"$ref":"#/components/schemas/Duration2"}},"required":["eventName","timeout"],"additionalProperties":false},"Conditions2":{"maxItems":10,"type":"array","items":{"$ref":"#/components/schemas/ConditionsItem2"}},"ConditionsItem2":{"type":"object","properties":{"property":{"type":"string","minLength":1,"maxLength":128},"op":{"default":"eq","type":"string","enum":["eq","neq","gt","gte","lt","lte","contains","not_contains","starts_with","ends_with","exists","not_exists","in","not_in","between"]},"value":{"$ref":"#/components/schemas/Value"}},"required":["property","op"],"additionalProperties":false},"NodesItemVariant113":{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":64},"type":{"type":"string","enum":["wait_for_any_event"]},"config":{"$ref":"#/components/schemas/Config78"},"position":{"type":"object","properties":{"x":{"type":"number"},"y":{"type":"number"}},"required":["x","y"],"additionalProperties":false},"name":{"type":"string","maxLength":80}},"required":["id","type","config"],"additionalProperties":false},"Config78":{"type":"object","properties":{"events":{"$ref":"#/components/schemas/Events3"},"timeout":{"$ref":"#/components/schemas/Duration2"}},"required":["events","timeout"],"additionalProperties":false},"Events3":{"minItems":2,"maxItems":10,"type":"array","items":{"$ref":"#/components/schemas/EventsItem3"}},"EventsItem3":{"type":"object","properties":{"key":{"type":"string","minLength":1,"maxLength":32},"eventName":{"type":"string","minLength":1,"maxLength":128},"filter":{"type":"object","additionalProperties":{}},"conditions":{"$ref":"#/components/schemas/Conditions2"}},"required":["key","eventName"],"additionalProperties":false},"NodesItemVariant114":{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":64},"type":{"type":"string","enum":["wait_until_condition"]},"config":{"$ref":"#/components/schemas/Config79"},"position":{"type":"object","properties":{"x":{"type":"number"},"y":{"type":"number"}},"required":["x","y"],"additionalProperties":false},"name":{"type":"string","maxLength":80}},"required":["id","type","config"],"additionalProperties":false},"Config79":{"type":"object","properties":{"definition":{"$ref":"#/components/schemas/Definition"},"timeout":{"$ref":"#/components/schemas/Duration2"}},"required":["definition","timeout"],"additionalProperties":false},"NodesItemVariant115":{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":64},"type":{"type":"string","enum":["wait_for_segments"]},"config":{"$ref":"#/components/schemas/Config80"},"position":{"type":"object","properties":{"x":{"type":"number"},"y":{"type":"number"}},"required":["x","y"],"additionalProperties":false},"name":{"type":"string","maxLength":80}},"required":["id","type","config"],"additionalProperties":false},"Config80":{"type":"object","properties":{"branches":{"$ref":"#/components/schemas/Branches6"},"timeout":{"$ref":"#/components/schemas/Duration2"}},"required":["branches","timeout"],"additionalProperties":false},"Branches6":{"minItems":2,"maxItems":10,"type":"array","items":{"$ref":"#/components/schemas/BranchesItem6"}},"BranchesItem6":{"type":"object","properties":{"key":{"type":"string","minLength":1,"maxLength":32},"definition":{"$ref":"#/components/schemas/Definition"}},"required":["key","definition"],"additionalProperties":false},"NodesItemVariant116":{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":64},"type":{"type":"string","enum":["wait_for_attribute_change"]},"config":{"$ref":"#/components/schemas/Config81"},"position":{"type":"object","properties":{"x":{"type":"number"},"y":{"type":"number"}},"required":["x","y"],"additionalProperties":false},"name":{"type":"string","maxLength":80}},"required":["id","type","config"],"additionalProperties":false},"Config81":{"type":"object","properties":{"field":{"type":"string","minLength":1,"maxLength":128},"from":{},"to":{},"timeout":{"$ref":"#/components/schemas/Duration2"}},"required":["field","timeout"],"additionalProperties":false},"NodesItemVariant117":{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":64},"type":{"type":"string","enum":["wait_until_weekday"]},"config":{"$ref":"#/components/schemas/Config82"},"position":{"type":"object","properties":{"x":{"type":"number"},"y":{"type":"number"}},"required":["x","y"],"additionalProperties":false},"name":{"type":"string","maxLength":80}},"required":["id","type","config"],"additionalProperties":false},"Config82":{"type":"object","properties":{"weekdays":{"minItems":1,"maxItems":7,"type":"array","items":{"type":"integer","minimum":1,"maximum":7}},"time":{"type":"string","pattern":"^([01]\\d|2[0-3]):[0-5]\\d$"},"tz":{"type":"string","maxLength":64}},"required":["weekdays","time"],"additionalProperties":false},"NodesItemVariant118":{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":64},"type":{"type":"string","enum":["wait_until_reorder"]},"config":{"$ref":"#/components/schemas/Config83"},"position":{"type":"object","properties":{"x":{"type":"number"},"y":{"type":"number"}},"required":["x","y"],"additionalProperties":false},"name":{"type":"string","maxLength":80}},"required":["id","type","config"],"additionalProperties":false},"Config83":{"type":"object","properties":{"overrides":{"$ref":"#/components/schemas/Overrides2"},"fallbackDays":{"default":30,"type":"integer","minimum":1,"maximum":3650},"minOrders":{"default":3,"type":"integer","minimum":2,"maximum":50},"bufferDays":{"default":0,"type":"integer","minimum":0,"maximum":365}},"required":["overrides","fallbackDays","minOrders","bufferDays"],"additionalProperties":false},"Overrides2":{"default":[],"maxItems":100,"type":"array","items":{"$ref":"#/components/schemas/OverridesItem"}},"OverridesItem":{"type":"object","properties":{"productId":{"type":"string","minLength":1,"maxLength":128},"days":{"type":"integer","minimum":1,"maximum":3650}},"required":["productId","days"],"additionalProperties":false},"NodesItemVariant119":{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":64},"type":{"type":"string","enum":["random_delay"]},"config":{"$ref":"#/components/schemas/Config84"},"position":{"type":"object","properties":{"x":{"type":"number"},"y":{"type":"number"}},"required":["x","y"],"additionalProperties":false},"name":{"type":"string","maxLength":80}},"required":["id","type","config"],"additionalProperties":false},"Config84":{"type":"object","properties":{"min":{"$ref":"#/components/schemas/Duration2"},"max":{"$ref":"#/components/schemas/Duration2"}},"required":["min","max"],"additionalProperties":false},"NodesItemVariant120":{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":64},"type":{"type":"string","enum":["wait_for_engagement"]},"config":{"$ref":"#/components/schemas/Config85"},"position":{"type":"object","properties":{"x":{"type":"number"},"y":{"type":"number"}},"required":["x","y"],"additionalProperties":false},"name":{"type":"string","maxLength":80}},"required":["id","type","config"],"additionalProperties":false},"Config85":{"type":"object","properties":{"kind":{"type":"string","enum":["open","click","reply","delivered","bounced","complained"]},"stepKey":{"type":"string","minLength":1,"maxLength":64},"timeout":{"$ref":"#/components/schemas/Duration2"}},"required":["kind","timeout"],"additionalProperties":false},"NodesItemVariant121":{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":64},"type":{"type":"string","enum":["business_hours"]},"config":{"$ref":"#/components/schemas/Config86"},"position":{"type":"object","properties":{"x":{"type":"number"},"y":{"type":"number"}},"required":["x","y"],"additionalProperties":false},"name":{"type":"string","maxLength":80}},"required":["id","type","config"],"additionalProperties":false},"Config86":{"type":"object","properties":{"startMin":{"type":"integer","minimum":0,"maximum":1440},"endMin":{"type":"integer","minimum":0,"maximum":1440},"weekdays":{"type":"array","items":{"type":"integer","minimum":1,"maximum":7}},"tz":{"type":"string"},"onClosed":{"type":"string","enum":["wait","exit"]}},"required":["startMin","endMin"],"additionalProperties":false},"NodesItemVariant122":{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":64},"type":{"type":"string","enum":["send_window"]},"config":{"$ref":"#/components/schemas/Config86"},"position":{"type":"object","properties":{"x":{"type":"number"},"y":{"type":"number"}},"required":["x","y"],"additionalProperties":false},"name":{"type":"string","maxLength":80}},"required":["id","type","config"],"additionalProperties":false},"NodesItemVariant123":{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":64},"type":{"type":"string","enum":["date_window"]},"config":{"$ref":"#/components/schemas/Config87"},"position":{"type":"object","properties":{"x":{"type":"number"},"y":{"type":"number"}},"required":["x","y"],"additionalProperties":false},"name":{"type":"string","maxLength":80}},"required":["id","type","config"],"additionalProperties":false},"Config87":{"type":"object","properties":{"from":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"to":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"beforeStart":{"default":"wait","type":"string","enum":["wait","exit"]}},"required":["beforeStart"],"additionalProperties":false},"NodesItemVariant124":{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":64},"type":{"type":"string","enum":["add_tag"]},"config":{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":64}},"required":["name"],"additionalProperties":false},"position":{"type":"object","properties":{"x":{"type":"number"},"y":{"type":"number"}},"required":["x","y"],"additionalProperties":false},"name":{"type":"string","maxLength":80}},"required":["id","type","config"],"additionalProperties":false},"NodesItemVariant125":{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":64},"type":{"type":"string","enum":["remove_tag"]},"config":{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":64}},"required":["name"],"additionalProperties":false},"position":{"type":"object","properties":{"x":{"type":"number"},"y":{"type":"number"}},"required":["x","y"],"additionalProperties":false},"name":{"type":"string","maxLength":80}},"required":["id","type","config"],"additionalProperties":false},"NodesItemVariant126":{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":64},"type":{"type":"string","enum":["update_profile"]},"config":{"$ref":"#/components/schemas/Config88"},"position":{"type":"object","properties":{"x":{"type":"number"},"y":{"type":"number"}},"required":["x","y"],"additionalProperties":false},"name":{"type":"string","maxLength":80}},"required":["id","type","config"],"additionalProperties":false},"Config88":{"type":"object","properties":{"set":{"default":{},"type":"object","additionalProperties":{}},"ops":{"$ref":"#/components/schemas/Ops2"}},"required":["set","ops"],"additionalProperties":false},"Ops2":{"default":[],"maxItems":30,"type":"array","items":{"$ref":"#/components/schemas/OpsItem2"}},"OpsItem2":{"type":"object","properties":{"op":{"type":"string","enum":["set","increment","append","unset"]},"field":{"type":"string","minLength":1,"maxLength":128},"value":{}},"required":["op","field"],"additionalProperties":false},"NodesItemVariant127":{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":64},"type":{"type":"string","enum":["add_to_list"]},"config":{"$ref":"#/components/schemas/Config89"},"position":{"type":"object","properties":{"x":{"type":"number"},"y":{"type":"number"}},"required":["x","y"],"additionalProperties":false},"name":{"type":"string","maxLength":80}},"required":["id","type","config"],"additionalProperties":false},"Config89":{"type":"object","properties":{"listId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},"required":["listId"],"additionalProperties":false},"NodesItemVariant128":{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":64},"type":{"type":"string","enum":["remove_from_list"]},"config":{"$ref":"#/components/schemas/Config89"},"position":{"type":"object","properties":{"x":{"type":"number"},"y":{"type":"number"}},"required":["x","y"],"additionalProperties":false},"name":{"type":"string","maxLength":80}},"required":["id","type","config"],"additionalProperties":false},"NodesItemVariant129":{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":64},"type":{"type":"string","enum":["update_by_event"]},"config":{"$ref":"#/components/schemas/Config90"},"position":{"type":"object","properties":{"x":{"type":"number"},"y":{"type":"number"}},"required":["x","y"],"additionalProperties":false},"name":{"type":"string","maxLength":80}},"required":["id","type","config"],"additionalProperties":false},"Config90":{"type":"object","properties":{"field":{"type":"string","minLength":1,"maxLength":128},"path":{"type":"string","minLength":1,"maxLength":128}},"required":["field","path"],"additionalProperties":false},"NodesItemVariant130":{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":64},"type":{"type":"string","enum":["set_field"]},"config":{"type":"object","properties":{"field":{"type":"string","minLength":1,"maxLength":128},"value":{}},"required":["field","value"],"additionalProperties":false},"position":{"type":"object","properties":{"x":{"type":"number"},"y":{"type":"number"}},"required":["x","y"],"additionalProperties":false},"name":{"type":"string","maxLength":80}},"required":["id","type","config"],"additionalProperties":false},"NodesItemVariant131":{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":64},"type":{"type":"string","enum":["score"]},"config":{"$ref":"#/components/schemas/Config91"},"position":{"type":"object","properties":{"x":{"type":"number"},"y":{"type":"number"}},"required":["x","y"],"additionalProperties":false},"name":{"type":"string","maxLength":80}},"required":["id","type","config"],"additionalProperties":false},"Config91":{"type":"object","properties":{"delta":{"type":"integer","minimum":-1000,"maximum":1000},"field":{"default":"score","type":"string"}},"required":["delta","field"],"additionalProperties":false},"NodesItemVariant132":{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":64},"type":{"type":"string","enum":["adjust_score"]},"config":{"$ref":"#/components/schemas/Config92"},"position":{"type":"object","properties":{"x":{"type":"number"},"y":{"type":"number"}},"required":["x","y"],"additionalProperties":false},"name":{"type":"string","maxLength":80}},"required":["id","type","config"],"additionalProperties":false},"Config92":{"type":"object","properties":{"modelId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"delta":{"type":"integer","minimum":-1000,"maximum":1000}},"required":["modelId","delta"],"additionalProperties":false},"NodesItemVariant133":{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":64},"type":{"type":"string","enum":["update_company"]},"config":{"$ref":"#/components/schemas/Config93"},"position":{"type":"object","properties":{"x":{"type":"number"},"y":{"type":"number"}},"required":["x","y"],"additionalProperties":false},"name":{"type":"string","maxLength":80}},"required":["id","type","config"],"additionalProperties":false},"Config93":{"type":"object","properties":{"set":{"$ref":"#/components/schemas/Set2"}},"required":["set"],"additionalProperties":false},"Set2":{"type":"object","properties":{"name":{"type":"string","maxLength":200},"industry":{"type":"string","maxLength":100},"sizeBand":{"type":"string","maxLength":50},"country":{"type":"string","minLength":2,"maxLength":2}},"additionalProperties":false},"NodesItemVariant134":{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":64},"type":{"type":"string","enum":["add_to_company"]},"config":{"$ref":"#/components/schemas/Config94"},"position":{"type":"object","properties":{"x":{"type":"number"},"y":{"type":"number"}},"required":["x","y"],"additionalProperties":false},"name":{"type":"string","maxLength":80}},"required":["id","type","config"],"additionalProperties":false},"Config94":{"type":"object","properties":{"companyId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},"required":["companyId"],"additionalProperties":false},"NodesItemVariant135":{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":64},"type":{"type":"string","enum":["push_integration"]},"config":{"$ref":"#/components/schemas/Config95"},"position":{"type":"object","properties":{"x":{"type":"number"},"y":{"type":"number"}},"required":["x","y"],"additionalProperties":false},"name":{"type":"string","maxLength":80}},"required":["id","type","config"],"additionalProperties":false},"Config95":{"type":"object","properties":{"integrationId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},"required":["integrationId"],"additionalProperties":false},"NodesItemVariant136":{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":64},"type":{"type":"string","enum":["validate_email"]},"config":{"type":"object","properties":{"rejectRole":{"default":false,"type":"boolean"}},"required":["rejectRole"],"additionalProperties":false},"position":{"type":"object","properties":{"x":{"type":"number"},"y":{"type":"number"}},"required":["x","y"],"additionalProperties":false},"name":{"type":"string","maxLength":80}},"required":["id","type","config"],"additionalProperties":false},"NodesItemVariant137":{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":64},"type":{"type":"string","enum":["delete_contact"]},"config":{"type":"object","properties":{"confirm":{"default":false,"type":"boolean"}},"required":["confirm"],"additionalProperties":false},"position":{"type":"object","properties":{"x":{"type":"number"},"y":{"type":"number"}},"required":["x","y"],"additionalProperties":false},"name":{"type":"string","maxLength":80}},"required":["id","type","config"],"additionalProperties":false},"NodesItemVariant138":{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":64},"type":{"type":"string","enum":["company_branch"]},"config":{"$ref":"#/components/schemas/Config96"},"position":{"type":"object","properties":{"x":{"type":"number"},"y":{"type":"number"}},"required":["x","y"],"additionalProperties":false},"name":{"type":"string","maxLength":80}},"required":["id","type","config"],"additionalProperties":false},"Config96":{"type":"object","properties":{"field":{"type":"string","enum":["name","domain","industry","sizeBand","country","stage","suppressed"]},"op":{"type":"string","enum":["eq","ne","gt","gte","lt","lte","contains","exists","not_exists"]},"value":{}},"required":["field","op"],"additionalProperties":false},"NodesItemVariant139":{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":64},"type":{"type":"string","enum":["set_lifecycle"]},"config":{"type":"object","properties":{"stage":{"type":"string","minLength":1,"maxLength":64}},"required":["stage"],"additionalProperties":false},"position":{"type":"object","properties":{"x":{"type":"number"},"y":{"type":"number"}},"required":["x","y"],"additionalProperties":false},"name":{"type":"string","maxLength":80}},"required":["id","type","config"],"additionalProperties":false},"NodesItemVariant140":{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":64},"type":{"type":"string","enum":["update_consent"]},"config":{"$ref":"#/components/schemas/Config97"},"position":{"type":"object","properties":{"x":{"type":"number"},"y":{"type":"number"}},"required":["x","y"],"additionalProperties":false},"name":{"type":"string","maxLength":80}},"required":["id","type","config"],"additionalProperties":false},"Config97":{"type":"object","properties":{"channel":{"type":"string","enum":["email","sms","whatsapp","push","postcard"]},"purpose":{"default":"marketing","type":"string","enum":["marketing","prospecting","transactional","operational"]},"status":{"type":"string","enum":["granted","revoked"]},"proofSource":{"type":"string","enum":["trigger_event","form"]}},"required":["channel","purpose","status"],"additionalProperties":false},"NodesItemVariant141":{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":64},"type":{"type":"string","enum":["goal"]},"config":{"$ref":"#/components/schemas/Config98"},"position":{"type":"object","properties":{"x":{"type":"number"},"y":{"type":"number"}},"required":["x","y"],"additionalProperties":false},"name":{"type":"string","maxLength":80}},"required":["id","type","config"],"additionalProperties":false},"Config98":{"type":"object","properties":{"name":{"default":"goal","type":"string","maxLength":64},"skipAhead":{"default":false,"type":"boolean"},"match":{"$ref":"#/components/schemas/Match2"}},"required":["name","skipAhead"],"additionalProperties":false},"Match2":{"type":"object","properties":{"kind":{"type":"string","enum":["event","segment"]},"eventName":{"type":"string","maxLength":128},"filter":{"type":"object","additionalProperties":{}},"definition":{"$ref":"#/components/schemas/Definition"}},"required":["kind"],"additionalProperties":false},"NodesItemVariant142":{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":64},"type":{"type":"string","enum":["frequency_cap"]},"config":{"$ref":"#/components/schemas/Config99"},"position":{"type":"object","properties":{"x":{"type":"number"},"y":{"type":"number"}},"required":["x","y"],"additionalProperties":false},"name":{"type":"string","maxLength":80}},"required":["id","type","config"],"additionalProperties":false},"Config99":{"type":"object","properties":{"maxSends":{"type":"integer","minimum":1,"maximum":9007199254740991},"windowHours":{"type":"integer","minimum":1,"maximum":9007199254740991},"channel":{"type":"string","enum":["email","sms","whatsapp","push","postcard"]},"onExceed":{"default":"hold","type":"string","enum":["hold","branch","exit"]}},"required":["maxSends","windowHours","onExceed"],"additionalProperties":false},"NodesItemVariant143":{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":64},"type":{"type":"string","enum":["suppression_check"]},"config":{"$ref":"#/components/schemas/Config100"},"position":{"type":"object","properties":{"x":{"type":"number"},"y":{"type":"number"}},"required":["x","y"],"additionalProperties":false},"name":{"type":"string","maxLength":80}},"required":["id","type","config"],"additionalProperties":false},"Config100":{"type":"object","properties":{"channel":{"type":"string","enum":["email","sms","whatsapp","push","postcard"]},"purpose":{"default":"marketing","type":"string","enum":["marketing","prospecting","transactional","operational"]}},"required":["channel","purpose"],"additionalProperties":false},"NodesItemVariant144":{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":64},"type":{"type":"string","enum":["rate_limit"]},"config":{"$ref":"#/components/schemas/Config101"},"position":{"type":"object","properties":{"x":{"type":"number"},"y":{"type":"number"}},"required":["x","y"],"additionalProperties":false},"name":{"type":"string","maxLength":80}},"required":["id","type","config"],"additionalProperties":false},"Config101":{"type":"object","properties":{"perHour":{"type":"integer","minimum":1,"maximum":9007199254740991},"windowMinutes":{"default":60,"type":"integer","minimum":1,"maximum":10080},"onExceed":{"default":"hold","type":"string","enum":["hold","branch","exit"]},"slot":{"type":"string","minLength":1,"maxLength":64},"perMailbox":{"type":"boolean"}},"required":["perHour","windowMinutes","onExceed"],"additionalProperties":false},"NodesItemVariant145":{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":64},"type":{"type":"string","enum":["add_suppression"]},"config":{"$ref":"#/components/schemas/Config102"},"position":{"type":"object","properties":{"x":{"type":"number"},"y":{"type":"number"}},"required":["x","y"],"additionalProperties":false},"name":{"type":"string","maxLength":80}},"required":["id","type","config"],"additionalProperties":false},"Config102":{"type":"object","properties":{"channel":{"type":"string","enum":["email","sms","whatsapp","push","postcard"]},"reason":{"default":"workflow","type":"string","maxLength":64}},"required":["channel","reason"],"additionalProperties":false},"NodesItemVariant146":{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":64},"type":{"type":"string","enum":["remove_suppression"]},"config":{"type":"object","properties":{"channel":{"type":"string","enum":["email","sms","whatsapp","push","postcard"]}},"required":["channel"],"additionalProperties":false},"position":{"type":"object","properties":{"x":{"type":"number"},"y":{"type":"number"}},"required":["x","y"],"additionalProperties":false},"name":{"type":"string","maxLength":80}},"required":["id","type","config"],"additionalProperties":false},"NodesItemVariant147":{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":64},"type":{"type":"string","enum":["approval_gate"]},"config":{"default":{},"type":"object","properties":{},"additionalProperties":false},"position":{"type":"object","properties":{"x":{"type":"number"},"y":{"type":"number"}},"required":["x","y"],"additionalProperties":false},"name":{"type":"string","maxLength":80}},"required":["id","type","config"],"additionalProperties":false},"NodesItemVariant148":{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":64},"type":{"type":"string","enum":["pause"]},"config":{"default":{},"type":"object","properties":{},"additionalProperties":false},"position":{"type":"object","properties":{"x":{"type":"number"},"y":{"type":"number"}},"required":["x","y"],"additionalProperties":false},"name":{"type":"string","maxLength":80}},"required":["id","type","config"],"additionalProperties":false},"NodesItemVariant149":{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":64},"type":{"type":"string","enum":["end"]},"config":{"default":{},"type":"object","properties":{},"additionalProperties":false},"position":{"type":"object","properties":{"x":{"type":"number"},"y":{"type":"number"}},"required":["x","y"],"additionalProperties":false},"name":{"type":"string","maxLength":80}},"required":["id","type","config"],"additionalProperties":false},"NodesItemVariant150":{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":64},"type":{"type":"string","enum":["stop_on_reply"]},"config":{"default":{},"type":"object","properties":{},"additionalProperties":false},"position":{"type":"object","properties":{"x":{"type":"number"},"y":{"type":"number"}},"required":["x","y"],"additionalProperties":false},"name":{"type":"string","maxLength":80}},"required":["id","type","config"],"additionalProperties":false},"NodesItemVariant151":{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":64},"type":{"type":"string","enum":["stop_on_bounce"]},"config":{"default":{},"type":"object","properties":{},"additionalProperties":false},"position":{"type":"object","properties":{"x":{"type":"number"},"y":{"type":"number"}},"required":["x","y"],"additionalProperties":false},"name":{"type":"string","maxLength":80}},"required":["id","type","config"],"additionalProperties":false},"NodesItemVariant152":{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":64},"type":{"type":"string","enum":["stop_on_unsubscribe"]},"config":{"default":{},"type":"object","properties":{},"additionalProperties":false},"position":{"type":"object","properties":{"x":{"type":"number"},"y":{"type":"number"}},"required":["x","y"],"additionalProperties":false},"name":{"type":"string","maxLength":80}},"required":["id","type","config"],"additionalProperties":false},"NodesItemVariant153":{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":64},"type":{"type":"string","enum":["classify_reply"]},"config":{"$ref":"#/components/schemas/Config61"},"position":{"type":"object","properties":{"x":{"type":"number"},"y":{"type":"number"}},"required":["x","y"],"additionalProperties":false},"name":{"type":"string","maxLength":80}},"required":["id","type","config"],"additionalProperties":false},"NodesItemVariant154":{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":64},"type":{"type":"string","enum":["assign_owner"]},"config":{"$ref":"#/components/schemas/Config61"},"position":{"type":"object","properties":{"x":{"type":"number"},"y":{"type":"number"}},"required":["x","y"],"additionalProperties":false},"name":{"type":"string","maxLength":80}},"required":["id","type","config"],"additionalProperties":false},"NodesItemVariant155":{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":64},"type":{"type":"string","enum":["rotate_mailbox"]},"config":{"$ref":"#/components/schemas/Config61"},"position":{"type":"object","properties":{"x":{"type":"number"},"y":{"type":"number"}},"required":["x","y"],"additionalProperties":false},"name":{"type":"string","maxLength":80}},"required":["id","type","config"],"additionalProperties":false},"NodesItemVariant156":{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":64},"type":{"type":"string","enum":["follow_up_task"]},"config":{"$ref":"#/components/schemas/Config61"},"position":{"type":"object","properties":{"x":{"type":"number"},"y":{"type":"number"}},"required":["x","y"],"additionalProperties":false},"name":{"type":"string","maxLength":80}},"required":["id","type","config"],"additionalProperties":false},"NodesItemVariant157":{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":64},"type":{"type":"string","enum":["score_company"]},"config":{"type":"object","properties":{"delta":{"type":"integer","minimum":-1000,"maximum":1000}},"required":["delta"],"additionalProperties":false},"position":{"type":"object","properties":{"x":{"type":"number"},"y":{"type":"number"}},"required":["x","y"],"additionalProperties":false},"name":{"type":"string","maxLength":80}},"required":["id","type","config"],"additionalProperties":false},"NodesItemVariant158":{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":64},"type":{"type":"string","enum":["score_company_from_form"]},"config":{"$ref":"#/components/schemas/Config103"},"position":{"type":"object","properties":{"x":{"type":"number"},"y":{"type":"number"}},"required":["x","y"],"additionalProperties":false},"name":{"type":"string","maxLength":80}},"required":["id","type","config"],"additionalProperties":false},"Config103":{"type":"object","properties":{"delta":{"type":"integer","minimum":-1000,"maximum":1000},"formId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},"required":["delta"],"additionalProperties":false},"NodesItemVariant159":{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":64},"type":{"type":"string","enum":["send_site_message"]},"config":{"$ref":"#/components/schemas/Config104"},"position":{"type":"object","properties":{"x":{"type":"number"},"y":{"type":"number"}},"required":["x","y"],"additionalProperties":false},"name":{"type":"string","maxLength":80}},"required":["id","type","config"],"additionalProperties":false},"Config104":{"type":"object","properties":{"siteMessageId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"expiresInHours":{"default":168,"type":"integer","minimum":1,"maximum":720}},"required":["siteMessageId","expiresInHours"],"additionalProperties":false},"NodesItemVariant160":{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":64},"type":{"type":"string","enum":["push_slot_content"]},"config":{"$ref":"#/components/schemas/Config105"},"position":{"type":"object","properties":{"x":{"type":"number"},"y":{"type":"number"}},"required":["x","y"],"additionalProperties":false},"name":{"type":"string","maxLength":80}},"required":["id","type","config"],"additionalProperties":false},"Config105":{"type":"object","properties":{"slotKey":{"type":"string","pattern":"^[a-z0-9][a-z0-9_-]{0,62}$"},"html":{"type":"string","minLength":1,"maxLength":20000},"expiresInHours":{"default":168,"type":"integer","minimum":1,"maximum":720}},"required":["slotKey","html","expiresInHours"],"additionalProperties":false},"NodesItemVariant161":{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":64},"type":{"type":"string","enum":["upsert_object"]},"config":{"$ref":"#/components/schemas/Config106"},"position":{"type":"object","properties":{"x":{"type":"number"},"y":{"type":"number"}},"required":["x","y"],"additionalProperties":false},"name":{"type":"string","maxLength":80}},"required":["id","type","config"],"additionalProperties":false},"Config106":{"type":"object","properties":{"typeKey":{"type":"string","minLength":1,"maxLength":64},"externalId":{"type":"string","minLength":1,"maxLength":500},"name":{"type":"string","maxLength":500},"attributes":{"default":{},"type":"object","additionalProperties":{"type":"string","maxLength":2000}},"link":{"default":true,"type":"boolean"},"role":{"type":"string","maxLength":64}},"required":["typeKey","externalId","attributes","link"],"additionalProperties":false},"NodesItemVariant162":{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":64},"type":{"type":"string","enum":["relate_object"]},"config":{"$ref":"#/components/schemas/Config107"},"position":{"type":"object","properties":{"x":{"type":"number"},"y":{"type":"number"}},"required":["x","y"],"additionalProperties":false},"name":{"type":"string","maxLength":80}},"required":["id","type","config"],"additionalProperties":false},"Config107":{"type":"object","properties":{"typeKey":{"type":"string","minLength":1,"maxLength":64},"externalId":{"type":"string","minLength":1,"maxLength":500},"op":{"default":"link","type":"string","enum":["link","unlink"]},"role":{"type":"string","maxLength":64}},"required":["typeKey","externalId","op"],"additionalProperties":false},"NodesItemVariant163":{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":64},"type":{"type":"string","enum":["run_code"]},"config":{"$ref":"#/components/schemas/Config108"},"position":{"type":"object","properties":{"x":{"type":"number"},"y":{"type":"number"}},"required":["x","y"],"additionalProperties":false},"name":{"type":"string","maxLength":80}},"required":["id","type","config"],"additionalProperties":false},"Config108":{"type":"object","properties":{"webhookTemplateId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"inputFields":{"default":{},"type":"object","additionalProperties":{"type":"string","maxLength":2000}},"maxAttempts":{"default":3,"type":"integer","minimum":1,"maximum":8},"responseTimeout":{"$ref":"#/components/schemas/ResponseTimeout2"}},"required":["webhookTemplateId","inputFields","maxAttempts","responseTimeout"],"additionalProperties":false},"NodesItemVariant164":{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":64},"type":{"type":"string","enum":["custom_action"]},"config":{"$ref":"#/components/schemas/Config109"},"position":{"type":"object","properties":{"x":{"type":"number"},"y":{"type":"number"}},"required":["x","y"],"additionalProperties":false},"name":{"type":"string","maxLength":80}},"required":["id","type","config"],"additionalProperties":false},"Config109":{"type":"object","properties":{"typeKey":{"type":"string","pattern":"^[a-z][a-z0-9_]{0,47}$"},"values":{"default":{},"type":"object","additionalProperties":{"type":"string","maxLength":2000}},"responseTimeout":{"$ref":"#/components/schemas/ResponseTimeout2"}},"required":["typeKey","values","responseTimeout"],"additionalProperties":false},"NodesItemVariant165":{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":64},"type":{"type":"string","enum":["sheets_append_row"]},"config":{"$ref":"#/components/schemas/Config110"},"position":{"type":"object","properties":{"x":{"type":"number"},"y":{"type":"number"}},"required":["x","y"],"additionalProperties":false},"name":{"type":"string","maxLength":80}},"required":["id","type","config"],"additionalProperties":false},"Config110":{"type":"object","properties":{"spreadsheetId":{"type":"string","pattern":"^[A-Za-z0-9_-]{20,100}$"},"sheet":{"default":"Sheet1","type":"string","minLength":1,"maxLength":100},"values":{"minItems":1,"maxItems":50,"type":"array","items":{"type":"string","maxLength":2000}},"secretName":{"type":"string","minLength":1,"maxLength":100}},"required":["spreadsheetId","sheet","values","secretName"],"additionalProperties":false},"NodesItemVariant166":{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":64},"type":{"type":"string","enum":["calendly_link"]},"config":{"$ref":"#/components/schemas/Config111"},"position":{"type":"object","properties":{"x":{"type":"number"},"y":{"type":"number"}},"required":["x","y"],"additionalProperties":false},"name":{"type":"string","maxLength":80}},"required":["id","type","config"],"additionalProperties":false},"Config111":{"type":"object","properties":{"eventTypeUri":{"type":"string","maxLength":500,"format":"uri"},"secretName":{"type":"string","minLength":1,"maxLength":100},"field":{"default":"calendly_link","type":"string","minLength":1,"maxLength":128},"maxEventCount":{"default":1,"type":"integer","minimum":1,"maximum":10}},"required":["eventTypeUri","secretName","field","maxEventCount"],"additionalProperties":false},"NodesItemVariant167":{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":64},"type":{"type":"string","enum":["send_slack"]},"config":{"$ref":"#/components/schemas/Config112"},"position":{"type":"object","properties":{"x":{"type":"number"},"y":{"type":"number"}},"required":["x","y"],"additionalProperties":false},"name":{"type":"string","maxLength":80}},"required":["id","type","config"],"additionalProperties":false},"Config112":{"type":"object","properties":{"installId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"slackTemplateId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"text":{"type":"string","maxLength":3000},"to":{"default":"channel","type":"string","enum":["channel","contact"]},"channel":{"type":"string","maxLength":80}},"required":["installId","to"],"additionalProperties":false},"NodesItemVariant168":{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":64},"type":{"type":"string","enum":["send_whatsapp_flow"]},"config":{"$ref":"#/components/schemas/Config113"},"position":{"type":"object","properties":{"x":{"type":"number"},"y":{"type":"number"}},"required":["x","y"],"additionalProperties":false},"name":{"type":"string","maxLength":80}},"required":["id","type","config"],"additionalProperties":false},"Config113":{"type":"object","properties":{"flowId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"purpose":{"default":"marketing","type":"string","enum":["marketing","prospecting","transactional","operational"]},"timeout":{"$ref":"#/components/schemas/Timeout3"},"branches":{"$ref":"#/components/schemas/Branches7"}},"required":["flowId","purpose","timeout","branches"],"additionalProperties":false},"Timeout3":{"default":{"amount":1,"unit":"days"},"type":"object","properties":{"amount":{"type":"integer","minimum":0,"maximum":5256000},"unit":{"type":"string","enum":["minutes","hours","days","weeks"]}},"required":["amount","unit"],"additionalProperties":false},"Branches7":{"default":[],"maxItems":10,"type":"array","items":{"$ref":"#/components/schemas/BranchesItem7"}},"BranchesItem7":{"type":"object","properties":{"key":{"type":"string","pattern":"^[a-z][a-z0-9_]{0,31}$"},"field":{"type":"string","minLength":1,"maxLength":64},"value":{"type":"string","maxLength":200}},"required":["key","field","value"],"additionalProperties":false},"NodesItemVariant169":{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":64},"type":{"type":"string","enum":["in_app_tracker"]},"config":{"$ref":"#/components/schemas/Config114"},"position":{"type":"object","properties":{"x":{"type":"number"},"y":{"type":"number"}},"required":["x","y"],"additionalProperties":false},"name":{"type":"string","maxLength":80}},"required":["id","type","config"],"additionalProperties":false},"Config114":{"type":"object","properties":{"componentKey":{"type":"string","pattern":"^[a-z][a-z0-9_]{0,63}$"},"fields":{"default":{},"type":"object","additionalProperties":{"type":"string","maxLength":2000}},"events":{"minItems":1,"maxItems":10,"type":"array","items":{"type":"string","pattern":"^[a-z][a-z0-9_]{0,63}$"}},"timeout":{"$ref":"#/components/schemas/Timeout4"}},"required":["componentKey","fields","events","timeout"],"additionalProperties":false},"Timeout4":{"default":{"amount":7,"unit":"days"},"type":"object","properties":{"amount":{"type":"integer","minimum":0,"maximum":5256000},"unit":{"type":"string","enum":["minutes","hours","days","weeks"]}},"required":["amount","unit"],"additionalProperties":false},"NodesItemVariant170":{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":64},"type":{"type":"string","enum":["ad_audience"]},"config":{"$ref":"#/components/schemas/Config115"},"position":{"type":"object","properties":{"x":{"type":"number"},"y":{"type":"number"}},"required":["x","y"],"additionalProperties":false},"name":{"type":"string","maxLength":80}},"required":["id","type","config"],"additionalProperties":false},"Config115":{"type":"object","properties":{"adAccountId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"audienceId":{"type":"string","minLength":1,"maxLength":200},"op":{"default":"add","type":"string","enum":["add","remove"]}},"required":["adAccountId","audienceId","op"],"additionalProperties":false},"Edges2":{"maxItems":15000,"type":"array","items":{"$ref":"#/components/schemas/EdgesItem2"}},"EdgesItem2":{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":64},"source":{"type":"string","minLength":1,"maxLength":64},"sourceHandle":{"type":"string","minLength":1,"maxLength":64},"target":{"type":"string","minLength":1,"maxLength":64}},"required":["id","source","sourceHandle","target"],"additionalProperties":false},"Triggers2":{"maxItems":20,"type":"array","items":{"$ref":"#/components/schemas/TriggersItem2"}},"TriggersItem2":{"oneOf":[{"$ref":"#/components/schemas/TriggersItemVariant36"},{"$ref":"#/components/schemas/TriggersItemVariant37"},{"$ref":"#/components/schemas/TriggersItemVariant38"},{"$ref":"#/components/schemas/TriggersItemVariant39"},{"$ref":"#/components/schemas/TriggersItemVariant40"},{"$ref":"#/components/schemas/TriggersItemVariant41"},{"$ref":"#/components/schemas/TriggersItemVariant42"},{"$ref":"#/components/schemas/TriggersItemVariant43"},{"$ref":"#/components/schemas/TriggersItemVariant44"},{"$ref":"#/components/schemas/TriggersItemVariant45"},{"$ref":"#/components/schemas/TriggersItemVariant46"},{"$ref":"#/components/schemas/TriggersItemVariant47"},{"$ref":"#/components/schemas/TriggersItemVariant48"},{"$ref":"#/components/schemas/TriggersItemVariant49"},{"$ref":"#/components/schemas/TriggersItemVariant50"},{"$ref":"#/components/schemas/TriggersItemVariant51"},{"$ref":"#/components/schemas/TriggersItemVariant52"},{"$ref":"#/components/schemas/TriggersItemVariant53"},{"$ref":"#/components/schemas/TriggersItemVariant54"},{"$ref":"#/components/schemas/TriggersItemVariant55"},{"$ref":"#/components/schemas/TriggersItemVariant56"},{"$ref":"#/components/schemas/TriggersItemVariant57"},{"$ref":"#/components/schemas/TriggersItemVariant58"},{"$ref":"#/components/schemas/TriggersItemVariant59"},{"$ref":"#/components/schemas/TriggersItemVariant60"},{"$ref":"#/components/schemas/TriggersItemVariant61"},{"$ref":"#/components/schemas/TriggersItemVariant62"},{"$ref":"#/components/schemas/TriggersItemVariant63"},{"$ref":"#/components/schemas/TriggersItemVariant64"},{"$ref":"#/components/schemas/TriggersItemVariant65"},{"$ref":"#/components/schemas/TriggersItemVariant66"},{"$ref":"#/components/schemas/TriggersItemVariant67"},{"$ref":"#/components/schemas/TriggersItemVariant68"},{"$ref":"#/components/schemas/TriggersItemVariant69"},{"$ref":"#/components/schemas/TriggersItemVariant70"}]},"TriggersItemVariant36":{"type":"object","properties":{"type":{"type":"string","enum":["profile_created"]},"reentry":{"$ref":"#/components/schemas/Reentry2"}},"required":["type","reentry"],"additionalProperties":false},"Reentry2":{"default":{"mode":"after_completion"},"oneOf":[{"type":"object","properties":{"mode":{"type":"string","enum":["never"]}},"required":["mode"],"additionalProperties":false},{"type":"object","properties":{"mode":{"type":"string","enum":["once"]}},"required":["mode"],"additionalProperties":false},{"type":"object","properties":{"mode":{"type":"string","enum":["after_completion"]}},"required":["mode"],"additionalProperties":false},{"$ref":"#/components/schemas/ReentryVariant3"},{"$ref":"#/components/schemas/ReentryVariant4"}]},"ReentryVariant3":{"type":"object","properties":{"mode":{"type":"string","enum":["after_cooldown"]},"cooldown":{"$ref":"#/components/schemas/Duration2"}},"required":["mode","cooldown"],"additionalProperties":false},"ReentryVariant4":{"type":"object","properties":{"mode":{"type":"string","enum":["concurrent"]},"dedupeKeyTemplate":{"type":"string","minLength":1,"maxLength":200}},"required":["mode","dedupeKeyTemplate"],"additionalProperties":false},"TriggersItemVariant37":{"type":"object","properties":{"type":{"type":"string","enum":["profile_updated"]},"keys":{"type":"array","items":{"type":"string"}},"from":{},"where":{"$ref":"#/components/schemas/Where2"},"reentry":{"$ref":"#/components/schemas/Reentry2"}},"required":["type","reentry"],"additionalProperties":false},"Where2":{"type":"object","properties":{"field":{"type":"string","minLength":1,"maxLength":128},"op":{"type":"string","enum":["eq","ne","gt","gte","lt","lte","contains","exists","not_exists"]},"value":{}},"required":["field","op"],"additionalProperties":false},"TriggersItemVariant38":{"type":"object","properties":{"type":{"type":"string","enum":["list_added"]},"listId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"reentry":{"$ref":"#/components/schemas/Reentry2"}},"required":["type","listId","reentry"],"additionalProperties":false},"TriggersItemVariant39":{"type":"object","properties":{"type":{"type":"string","enum":["list_removed"]},"listId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"reentry":{"$ref":"#/components/schemas/Reentry2"}},"required":["type","listId","reentry"],"additionalProperties":false},"TriggersItemVariant40":{"type":"object","properties":{"type":{"type":"string","enum":["segment_entered"]},"segmentId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"enrollExisting":{"type":"boolean"},"reentry":{"$ref":"#/components/schemas/Reentry2"}},"required":["type","segmentId","reentry"],"additionalProperties":false},"TriggersItemVariant41":{"type":"object","properties":{"type":{"type":"string","enum":["segment_exited"]},"segmentId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"reentry":{"$ref":"#/components/schemas/Reentry2"}},"required":["type","segmentId","reentry"],"additionalProperties":false},"TriggersItemVariant42":{"type":"object","properties":{"type":{"type":"string","enum":["tag_added"]},"name":{"type":"string","minLength":1,"maxLength":64},"reentry":{"$ref":"#/components/schemas/Reentry2"}},"required":["type","name","reentry"],"additionalProperties":false},"TriggersItemVariant43":{"type":"object","properties":{"type":{"type":"string","enum":["tag_removed"]},"name":{"type":"string","minLength":1,"maxLength":64},"reentry":{"$ref":"#/components/schemas/Reentry2"}},"required":["type","name","reentry"],"additionalProperties":false},"TriggersItemVariant44":{"type":"object","properties":{"type":{"type":"string","enum":["consent_changed"]},"channel":{"type":"string","enum":["email","sms","whatsapp","push","postcard"]},"status":{"type":"string","enum":["granted","revoked"]},"reentry":{"$ref":"#/components/schemas/Reentry2"}},"required":["type","channel","status","reentry"],"additionalProperties":false},"TriggersItemVariant45":{"type":"object","properties":{"type":{"type":"string","enum":["event"]},"name":{"type":"string","minLength":1,"maxLength":128},"filter":{"type":"object","additionalProperties":{}},"conditions":{"$ref":"#/components/schemas/Conditions2"},"reentry":{"$ref":"#/components/schemas/Reentry2"}},"required":["type","name","reentry"],"additionalProperties":false},"TriggersItemVariant46":{"type":"object","properties":{"type":{"type":"string","enum":["object_created"]},"objectType":{"type":"string","minLength":1,"maxLength":64},"reentry":{"$ref":"#/components/schemas/Reentry2"}},"required":["type","objectType","reentry"],"additionalProperties":false},"TriggersItemVariant47":{"type":"object","properties":{"type":{"type":"string","enum":["object_updated"]},"objectType":{"type":"string","minLength":1,"maxLength":64},"conditions":{"$ref":"#/components/schemas/Conditions2"},"reentry":{"$ref":"#/components/schemas/Reentry2"}},"required":["type","objectType","reentry"],"additionalProperties":false},"TriggersItemVariant48":{"type":"object","properties":{"type":{"type":"string","enum":["object_linked"]},"objectType":{"type":"string","minLength":1,"maxLength":64},"reentry":{"$ref":"#/components/schemas/Reentry2"}},"required":["type","objectType","reentry"],"additionalProperties":false},"TriggersItemVariant49":{"type":"object","properties":{"type":{"type":"string","enum":["relationship_added"]},"objectType":{"type":"string","maxLength":64},"kind":{"type":"string","maxLength":64},"reentry":{"$ref":"#/components/schemas/Reentry2"}},"required":["type","reentry"],"additionalProperties":false},"TriggersItemVariant50":{"type":"object","properties":{"type":{"type":"string","enum":["score_reached"]},"modelId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"threshold":{"type":"number"},"enrollExisting":{"type":"boolean"},"reentry":{"$ref":"#/components/schemas/Reentry2"}},"required":["type","modelId","threshold","reentry"],"additionalProperties":false},"TriggersItemVariant51":{"type":"object","properties":{"type":{"type":"string","enum":["back_in_stock"]},"sku":{"type":"string","maxLength":128},"reentry":{"$ref":"#/components/schemas/Reentry2"}},"required":["type","reentry"],"additionalProperties":false},"TriggersItemVariant52":{"type":"object","properties":{"type":{"type":"string","enum":["price_drop"]},"sku":{"type":"string","maxLength":128},"minPercent":{"type":"number","minimum":0,"maximum":100},"reentry":{"$ref":"#/components/schemas/Reentry2"}},"required":["type","reentry"],"additionalProperties":false},"TriggersItemVariant53":{"type":"object","properties":{"type":{"type":"string","enum":["date_property"]},"attribute":{"type":"string","minLength":1,"maxLength":128},"offsetDays":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"time":{"type":"string","pattern":"^\\d{2}:\\d{2}$"},"tz":{"type":"string"},"yearly":{"type":"boolean"},"reentry":{"$ref":"#/components/schemas/Reentry2"}},"required":["type","attribute","offsetDays","time","tz","reentry"],"additionalProperties":false},"TriggersItemVariant54":{"type":"object","properties":{"type":{"type":"string","enum":["low_inventory"]},"sku":{"type":"string","maxLength":128},"below":{"type":"integer","minimum":1,"maximum":10},"reentry":{"$ref":"#/components/schemas/Reentry2"}},"required":["type","reentry"],"additionalProperties":false},"TriggersItemVariant55":{"type":"object","properties":{"type":{"type":"string","enum":["form_submitted"]},"formId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"completed":{"type":"boolean"},"reentry":{"$ref":"#/components/schemas/Reentry2"}},"required":["type","formId","reentry"],"additionalProperties":false},"TriggersItemVariant56":{"type":"object","properties":{"type":{"type":"string","enum":["schedule"]},"cron":{"type":"string","minLength":1,"maxLength":100},"tz":{"type":"string"},"audience":{"$ref":"#/components/schemas/Audience4"},"endsAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"maxRuns":{"type":"integer","minimum":1,"maximum":100000},"maxEntriesPerRun":{"type":"integer","minimum":1,"maximum":100000},"localTime":{"type":"boolean"},"reentry":{"$ref":"#/components/schemas/Reentry2"}},"required":["type","cron","tz","audience","reentry"],"additionalProperties":false},"Audience4":{"type":"object","properties":{"segmentId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"listId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},"additionalProperties":false},"TriggersItemVariant57":{"type":"object","properties":{"type":{"type":"string","enum":["rss_item"]},"url":{"type":"string","format":"uri"},"audience":{"$ref":"#/components/schemas/Audience4"},"reentry":{"$ref":"#/components/schemas/Reentry2"}},"required":["type","url","audience","reentry"],"additionalProperties":false},"TriggersItemVariant58":{"type":"object","properties":{"type":{"type":"string","enum":["webhook"]},"inboundKey":{"type":"string","minLength":1,"maxLength":64},"reentry":{"$ref":"#/components/schemas/Reentry2"}},"required":["type","inboundKey","reentry"],"additionalProperties":false},"TriggersItemVariant59":{"type":"object","properties":{"type":{"type":"string","enum":["api"]},"reentry":{"$ref":"#/components/schemas/Reentry2"}},"required":["type","reentry"],"additionalProperties":false},"TriggersItemVariant60":{"type":"object","properties":{"type":{"type":"string","enum":["prospect_enrolled"]},"reentry":{"$ref":"#/components/schemas/Reentry2"}},"required":["type","reentry"],"additionalProperties":false},"TriggersItemVariant61":{"type":"object","properties":{"type":{"type":"string","enum":["message_event"]},"kind":{"type":"string","minLength":1,"maxLength":32},"url":{"type":"string","maxLength":500},"reentry":{"$ref":"#/components/schemas/Reentry2"}},"required":["type","kind","reentry"],"additionalProperties":false},"TriggersItemVariant62":{"type":"object","properties":{"type":{"type":"string","enum":["reply_received"]},"classification":{"type":"string"},"keyword":{"type":"string","maxLength":64},"reentry":{"$ref":"#/components/schemas/Reentry2"}},"required":["type","reentry"],"additionalProperties":false},"TriggersItemVariant63":{"type":"object","properties":{"type":{"type":"string","enum":["meeting_booked"]},"reentry":{"$ref":"#/components/schemas/Reentry2"}},"required":["type","reentry"],"additionalProperties":false},"TriggersItemVariant64":{"type":"object","properties":{"type":{"type":"string","enum":["geofence_entered"]},"geofenceId":{"type":"string","maxLength":128},"reentry":{"$ref":"#/components/schemas/Reentry2"}},"required":["type","reentry"],"additionalProperties":false},"TriggersItemVariant65":{"type":"object","properties":{"type":{"type":"string","enum":["custom"]},"typeKey":{"type":"string","pattern":"^[a-z][a-z0-9_]{0,47}$"},"values":{"default":{},"type":"object","additionalProperties":{}},"reentry":{"$ref":"#/components/schemas/Reentry2"}},"required":["type","typeKey","values","reentry"],"additionalProperties":false},"TriggersItemVariant66":{"type":"object","properties":{"type":{"type":"string","enum":["mailbox_disconnected"]},"reentry":{"$ref":"#/components/schemas/Reentry2"}},"required":["type","reentry"],"additionalProperties":false},"TriggersItemVariant67":{"type":"object","properties":{"type":{"type":"string","enum":["campaign_paused"]},"reentry":{"$ref":"#/components/schemas/Reentry2"}},"required":["type","reentry"],"additionalProperties":false},"TriggersItemVariant68":{"type":"object","properties":{"type":{"type":"string","enum":["loyalty_points_changed"]},"programId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"direction":{"type":"string","enum":["earned","spent","any"]},"reentry":{"$ref":"#/components/schemas/Reentry2"}},"required":["type","reentry"],"additionalProperties":false},"TriggersItemVariant69":{"type":"object","properties":{"type":{"type":"string","enum":["loyalty_tier_changed"]},"programId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"toTierId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"reentry":{"$ref":"#/components/schemas/Reentry2"}},"required":["type","reentry"],"additionalProperties":false},"TriggersItemVariant70":{"type":"object","properties":{"type":{"type":"string","enum":["loyalty_reward_available"]},"programId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"rewardId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"reentry":{"$ref":"#/components/schemas/Reentry2"}},"required":["type","reentry"],"additionalProperties":false},"Settings5":{"type":"object","properties":{"purpose":{"default":"marketing","type":"string","enum":["marketing","prospecting","transactional","operational"]},"mode":{"default":"journey","type":"string","enum":["journey","sequence"]},"filterCheck":{"default":"before_send","type":"string","enum":["entry","every_step","before_send"]},"filterFailAction":{"default":"exit","type":"string","enum":["exit","skip"]},"profileFilter":{"$ref":"#/components/schemas/Definition"},"goal":{"$ref":"#/components/schemas/Goal2"},"quietHours":{"$ref":"#/components/schemas/QuietHours3"},"quietHoursAction":{"type":"string","enum":["wait","skip","exit"]},"sendWindow":{"$ref":"#/components/schemas/SendWindow2"},"smartSending":{"$ref":"#/components/schemas/SmartSending2"},"enrollmentCap":{"$ref":"#/components/schemas/EnrollmentCap"},"activeWindow":{"$ref":"#/components/schemas/ActiveWindow2"},"failureAlert":{"$ref":"#/components/schemas/FailureAlert2"},"timezoneSource":{"default":"profile","type":"string","enum":["profile","workspace"]},"timezone":{"default":"UTC","type":"string"},"exitOn":{"$ref":"#/components/schemas/Definition"},"sequence":{"$ref":"#/components/schemas/Sequence2"}},"required":["purpose","mode","filterCheck","filterFailAction","quietHours","timezoneSource","timezone"],"additionalProperties":false},"Goal2":{"type":"object","properties":{"kind":{"type":"string","enum":["event","segment"]},"eventName":{"type":"string","maxLength":128},"filter":{"type":"object","additionalProperties":{}},"definition":{"$ref":"#/components/schemas/Definition"},"windowDays":{"default":30,"type":"integer","minimum":1,"maximum":365},"onReach":{"default":"exit","type":"string","enum":["exit","continue","jump"]}},"required":["kind","windowDays","onReach"],"additionalProperties":false},"QuietHours3":{"default":"inherit","anyOf":[{"type":"string","enum":["inherit"]},{"$ref":"#/components/schemas/Window"}]},"SendWindow2":{"type":"object","properties":{"startMin":{"type":"integer","minimum":0,"maximum":1440},"endMin":{"type":"integer","minimum":0,"maximum":1440},"weekdays":{"type":"array","items":{"type":"integer","minimum":1,"maximum":7}}},"required":["startMin","endMin"],"additionalProperties":false},"SmartSending2":{"type":"object","properties":{"skipIfMessagedWithinHours":{"type":"integer","minimum":1,"maximum":336},"frequencyCap":{"$ref":"#/components/schemas/FrequencyCap"}},"additionalProperties":false},"FrequencyCap":{"type":"object","properties":{"maxSends":{"type":"integer","minimum":1,"maximum":1000},"windowHours":{"type":"integer","minimum":1,"maximum":720}},"required":["maxSends","windowHours"],"additionalProperties":false},"EnrollmentCap":{"type":"object","properties":{"maxTotal":{"type":"integer","minimum":1,"maximum":9007199254740991},"maxConcurrent":{"type":"integer","minimum":1,"maximum":9007199254740991}},"additionalProperties":false},"ActiveWindow2":{"type":"object","properties":{"from":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"until":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"}},"additionalProperties":false},"FailureAlert2":{"type":"object","properties":{"userIds":{"$ref":"#/components/schemas/ListIds4"},"emails":{"$ref":"#/components/schemas/Emails3"}},"required":["userIds","emails"],"additionalProperties":false},"Sequence2":{"type":"object","properties":{"steps":{"$ref":"#/components/schemas/Steps3"},"schedule":{"$ref":"#/components/schemas/Schedule4"},"mailbox":{"$ref":"#/components/schemas/Mailbox2"},"dailyNewLimit":{"type":"integer","minimum":1,"maximum":100000},"followUpPercent":{"type":"integer","minimum":0,"maximum":90},"plainTextOnly":{"type":"boolean"},"trackOpens":{"type":"boolean"},"unsubscribeText":{"type":"string","minLength":1,"maxLength":120},"spintaxMode":{"type":"string","enum":["random","sequential"]},"variables":{"type":"object","additionalProperties":{"type":"string","maxLength":500}},"blocklist":{"$ref":"#/components/schemas/Blocklist2"},"reviewBeforeSend":{"type":"boolean"},"reviewEachMessage":{"type":"boolean"},"stop":{"$ref":"#/components/schemas/Stop2"},"onCategory":{"$ref":"#/components/schemas/OnCategory2"},"ownerUserId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"scheduleId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"dedupe":{"$ref":"#/components/schemas/Dedupe2"},"startAt":{"type":"string","format":"date-time"},"minGapMinutes":{"type":"integer","minimum":1,"maximum":1440},"senderOverrides":{"type":"object","additionalProperties":{"type":"object","properties":{"dailyLimit":{"type":"integer","minimum":0,"maximum":100000},"paused":{"type":"boolean"}},"additionalProperties":false}},"abm":{"$ref":"#/components/schemas/Abm2"}},"required":["steps","schedule","mailbox","stop","dedupe"],"additionalProperties":false},"Steps3":{"default":[],"maxItems":50,"type":"array","items":{"$ref":"#/components/schemas/StepsItem3"}},"StepsItem3":{"oneOf":[{"$ref":"#/components/schemas/StepsItemVariant11"},{"$ref":"#/components/schemas/StepsItemVariant12"},{"$ref":"#/components/schemas/StepsItemVariant13"},{"$ref":"#/components/schemas/StepsItemVariant14"},{"$ref":"#/components/schemas/StepsItemVariant15"},{"$ref":"#/components/schemas/StepsItemVariant16"},{"$ref":"#/components/schemas/StepsItemVariant17"},{"$ref":"#/components/schemas/StepsItemVariant18"},{"$ref":"#/components/schemas/StepsItemVariant19"},{"$ref":"#/components/schemas/StepsItemVariant20"}]},"StepsItemVariant11":{"type":"object","properties":{"type":{"type":"string","enum":["email"]},"templateId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"versionId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"thread":{"default":"new","type":"string","enum":["new","reply"]},"waitDays":{"default":0,"type":"integer","minimum":0,"maximum":365},"businessDays":{"default":false,"type":"boolean"},"when":{"$ref":"#/components/schemas/When2"},"window":{"$ref":"#/components/schemas/Window3"},"alternates":{"$ref":"#/components/schemas/Alternates2"},"weightA":{"default":1,"type":"integer","minimum":1,"maximum":1000},"optimize":{"default":false,"type":"boolean"},"senderConnectionId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},"required":["type","templateId","thread","waitDays","businessDays","alternates","weightA","optimize"],"additionalProperties":false},"When2":{"oneOf":[{"$ref":"#/components/schemas/WhenVariant4"},{"$ref":"#/components/schemas/WhenVariant5"},{"type":"object","properties":{"kind":{"type":"string","enum":["has_phone"]},"negate":{"default":false,"type":"boolean"}},"required":["kind","negate"],"additionalProperties":false},{"$ref":"#/components/schemas/WhenVariant6"},{"$ref":"#/components/schemas/WhenVariant7"},{"type":"object","properties":{"kind":{"type":"string","enum":["verified"]},"negate":{"default":false,"type":"boolean"}},"required":["kind","negate"],"additionalProperties":false},{"$ref":"#/components/schemas/ConditionVariant12"}]},"WhenVariant4":{"type":"object","properties":{"kind":{"type":"string","enum":["engagement"]},"event":{"type":"string","enum":["opened","clicked","replied"]},"negate":{"default":false,"type":"boolean"}},"required":["kind","event","negate"],"additionalProperties":false},"WhenVariant5":{"type":"object","properties":{"kind":{"type":"string","enum":["task_outcome"]},"outcome":{"type":"string","minLength":1,"maxLength":40},"step":{"type":"string","maxLength":64},"negate":{"default":false,"type":"boolean"}},"required":["kind","outcome","negate"],"additionalProperties":false},"WhenVariant6":{"type":"object","properties":{"kind":{"type":"string","enum":["linkedin_connected"]},"negate":{"default":false,"type":"boolean"}},"required":["kind","negate"],"additionalProperties":false},"WhenVariant7":{"type":"object","properties":{"kind":{"type":"string","enum":["reply"]},"category":{"type":"string","enum":["positive","negative","neutral","ooo","auto_reply","bounce","unsubscribe","meeting","wrong_person"]},"negate":{"default":false,"type":"boolean"}},"required":["kind","category","negate"],"additionalProperties":false},"Window3":{"type":"object","properties":{"startMin":{"type":"integer","minimum":0,"maximum":1440},"endMin":{"type":"integer","minimum":0,"maximum":1440},"weekdays":{"minItems":1,"type":"array","items":{"type":"integer","minimum":1,"maximum":7}}},"required":["startMin","endMin"],"additionalProperties":false},"Alternates2":{"default":[],"maxItems":25,"type":"array","items":{"$ref":"#/components/schemas/AlternatesItem2"}},"AlternatesItem2":{"type":"object","properties":{"templateId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"versionId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"weight":{"default":1,"type":"integer","minimum":1,"maximum":1000}},"required":["templateId","weight"],"additionalProperties":false},"StepsItemVariant12":{"type":"object","properties":{"type":{"type":"string","enum":["wait"]},"days":{"type":"integer","minimum":1,"maximum":365},"businessDays":{"default":false,"type":"boolean"}},"required":["type","days","businessDays"],"additionalProperties":false},"StepsItemVariant13":{"type":"object","properties":{"type":{"type":"string","enum":["task"]},"kind":{"type":"string","enum":["call","linkedin_visit","linkedin_connect","linkedin_message","sms","whatsapp","manual_email","custom"]},"title":{"type":"string","minLength":1,"maxLength":200},"notes":{"type":"string","maxLength":5000},"draft":{"type":"string","maxLength":20000},"waitDays":{"default":0,"type":"integer","minimum":0,"maximum":365},"businessDays":{"default":false,"type":"boolean"},"when":{"$ref":"#/components/schemas/When2"},"window":{"$ref":"#/components/schemas/Window3"}},"required":["type","kind","title","waitDays","businessDays"],"additionalProperties":false},"StepsItemVariant14":{"type":"object","properties":{"type":{"type":"string","enum":["jump"]},"sequenceId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"waitDays":{"default":0,"type":"integer","minimum":0,"maximum":365},"businessDays":{"default":false,"type":"boolean"},"when":{"$ref":"#/components/schemas/When2"},"window":{"$ref":"#/components/schemas/Window3"}},"required":["type","sequenceId","waitDays","businessDays"],"additionalProperties":false},"StepsItemVariant15":{"type":"object","properties":{"type":{"type":"string","enum":["sms"]},"templateId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"versionId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"waitDays":{"default":0,"type":"integer","minimum":0,"maximum":365},"businessDays":{"default":false,"type":"boolean"},"when":{"$ref":"#/components/schemas/When2"},"window":{"$ref":"#/components/schemas/Window3"}},"required":["type","templateId","waitDays","businessDays"],"additionalProperties":false},"StepsItemVariant16":{"type":"object","properties":{"type":{"type":"string","enum":["webhook"]},"url":{"type":"string","format":"uri"},"body":{"type":"object","additionalProperties":{}},"headers":{"type":"object","additionalProperties":{"type":"string"}},"maxAttempts":{"default":5,"type":"integer","minimum":1,"maximum":8},"signingSecret":{"type":"string","minLength":8,"maxLength":200},"signingSecretSealed":{"type":"string","maxLength":2000},"signingSecretSet":{"type":"boolean"},"responseMap":{"$ref":"#/components/schemas/ResponseMap2"},"waitDays":{"default":0,"type":"integer","minimum":0,"maximum":365},"businessDays":{"default":false,"type":"boolean"},"when":{"$ref":"#/components/schemas/When2"},"window":{"$ref":"#/components/schemas/Window3"}},"required":["type","url","maxAttempts","responseMap","waitDays","businessDays"],"additionalProperties":false},"StepsItemVariant17":{"type":"object","properties":{"type":{"type":"string","enum":["linkedin"]},"action":{"type":"string","enum":["visit","connect","message","like_post","inmail"]},"message":{"type":"string","maxLength":4000},"waitDays":{"default":0,"type":"integer","minimum":0,"maximum":365},"businessDays":{"default":false,"type":"boolean"},"when":{"$ref":"#/components/schemas/When2"},"window":{"$ref":"#/components/schemas/Window3"}},"required":["type","action","waitDays","businessDays"],"additionalProperties":false},"StepsItemVariant18":{"type":"object","properties":{"type":{"type":"string","enum":["whatsapp"]},"templateId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"versionId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"waitDays":{"default":0,"type":"integer","minimum":0,"maximum":365},"businessDays":{"default":false,"type":"boolean"},"when":{"$ref":"#/components/schemas/When2"},"window":{"$ref":"#/components/schemas/Window3"}},"required":["type","templateId","waitDays","businessDays"],"additionalProperties":false},"StepsItemVariant19":{"type":"object","properties":{"type":{"type":"string","enum":["voice"]},"clipId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"via":{"type":"string","enum":["linkedin","voicemail"]},"message":{"type":"string","maxLength":4000},"title":{"type":"string","maxLength":200},"waitDays":{"default":0,"type":"integer","minimum":0,"maximum":365},"businessDays":{"default":false,"type":"boolean"},"when":{"$ref":"#/components/schemas/When2"},"window":{"$ref":"#/components/schemas/Window3"}},"required":["type","clipId","via","waitDays","businessDays"],"additionalProperties":false},"StepsItemVariant20":{"type":"object","properties":{"type":{"type":"string","enum":["branch"]},"waitDays":{"default":0,"type":"integer","minimum":0,"maximum":365},"businessDays":{"default":false,"type":"boolean"},"branches":{"$ref":"#/components/schemas/Branches8"},"otherwise":{"$ref":"#/components/schemas/Steps4"}},"required":["type","waitDays","businessDays","branches","otherwise"],"additionalProperties":false},"Branches8":{"minItems":1,"maxItems":8,"type":"array","items":{"$ref":"#/components/schemas/BranchesItem8"}},"BranchesItem8":{"type":"object","properties":{"key":{"type":"string","pattern":"^[a-z0-9]{1,8}$"},"label":{"type":"string","maxLength":80},"when":{"$ref":"#/components/schemas/When2"},"steps":{"$ref":"#/components/schemas/Steps4"}},"required":["key","when","steps"],"additionalProperties":false},"Steps4":{"default":[],"maxItems":20,"type":"array","items":{"$ref":"#/components/schemas/StepsItem4"}},"StepsItem4":{"oneOf":[{"$ref":"#/components/schemas/StepsItemVariant11"},{"$ref":"#/components/schemas/StepsItemVariant12"},{"$ref":"#/components/schemas/StepsItemVariant13"},{"$ref":"#/components/schemas/StepsItemVariant14"},{"$ref":"#/components/schemas/StepsItemVariant15"},{"$ref":"#/components/schemas/StepsItemVariant16"},{"$ref":"#/components/schemas/StepsItemVariant17"},{"$ref":"#/components/schemas/StepsItemVariant18"},{"$ref":"#/components/schemas/StepsItemVariant19"}]},"Schedule4":{"default":{"weekdays":[1,2,3,4,5],"startMin":540,"endMin":1020,"timezoneSource":"prospect","timezone":"UTC"},"type":"object","properties":{"weekdays":{"default":[1,2,3,4,5],"minItems":1,"type":"array","items":{"type":"integer","minimum":1,"maximum":7}},"startMin":{"default":540,"type":"integer","minimum":0,"maximum":1440},"endMin":{"default":1020,"type":"integer","minimum":0,"maximum":1440},"timezoneSource":{"default":"prospect","type":"string","enum":["prospect","sequence"]},"timezone":{"default":"UTC","type":"string"}},"required":["weekdays","startMin","endMin","timezoneSource","timezone"],"additionalProperties":false},"Mailbox2":{"default":{"sticky":true,"onUnavailable":"pause"},"type":"object","properties":{"poolId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"connectionId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"sticky":{"default":true,"type":"boolean"},"onUnavailable":{"default":"pause","type":"string","enum":["pause","reassign"]}},"required":["sticky","onUnavailable"],"additionalProperties":false},"Blocklist2":{"type":"object","properties":{"emails":{"default":[],"maxItems":2000,"type":"array","items":{}},"domains":{"default":[],"maxItems":500,"type":"array","items":{"type":"string","pattern":"^[a-z0-9.-]+\\.[a-z]{2,}$"}}},"required":["emails","domains"],"additionalProperties":false},"Stop2":{"default":{"onReply":"human","onAutoReply":"continue","onOoo":"pause_until_return","onCompanyReply":"none"},"type":"object","properties":{"onReply":{"default":"human","type":"string","enum":["human","any"]},"onAutoReply":{"default":"continue","type":"string","enum":["continue","pause"]},"onOoo":{"default":"pause_until_return","type":"string","enum":["pause_until_return","continue","stop"]},"onCompanyReply":{"default":"none","type":"string","enum":["none","stop","pause"]}},"required":["onReply","onAutoReply","onOoo","onCompanyReply"],"additionalProperties":false},"OnCategory2":{"maxItems":10,"type":"array","items":{"$ref":"#/components/schemas/OnCategoryItem2"}},"OnCategoryItem2":{"type":"object","properties":{"category":{"type":"string","enum":["positive","negative","neutral","ooo","auto_reply","bounce","unsubscribe","meeting","wrong_person"]},"sequenceId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"stopCurrent":{"default":true,"type":"boolean"}},"required":["category","sequenceId","stopCurrent"],"additionalProperties":false},"Dedupe2":{"default":{"crossSequence":"skip","contactedWithinDays":0,"domain":false},"type":"object","properties":{"crossSequence":{"default":"skip","type":"string","enum":["skip","allow"]},"contactedWithinDays":{"default":0,"type":"integer","minimum":0,"maximum":3650},"domain":{"default":false,"type":"boolean"}},"required":["crossSequence","contactedWithinDays","domain"],"additionalProperties":false},"Abm2":{"type":"object","properties":{"maxPerAccount":{"default":5,"type":"integer","minimum":1,"maximum":100},"onAccountReply":{"default":"stop","type":"string","enum":["none","stop","pause"]}},"required":["maxPerAccount","onAccountReply"],"additionalProperties":false},"Definition4":{"type":"object","properties":{"graph":{"$ref":"#/components/schemas/Graph"},"triggers":{"$ref":"#/components/schemas/Triggers"},"settings":{"$ref":"#/components/schemas/Settings4"}},"required":["graph","triggers","settings"]},"GetV1WorkflowsByIdValidateResponse":{"type":"object","properties":{"ok":{"type":"boolean"},"errors":{"$ref":"#/components/schemas/Errors"},"warnings":{"$ref":"#/components/schemas/Errors"}},"required":["ok","errors","warnings"],"additionalProperties":false},"Errors":{"type":"array","items":{"$ref":"#/components/schemas/ErrorsItem"}},"ErrorsItem":{"type":"object","properties":{"severity":{"type":"string","enum":["error","warning"]},"code":{"type":"string"},"message":{"type":"string"},"nodeId":{"type":"string"},"fix":{"type":"string"}},"required":["severity","code","message"],"additionalProperties":false},"PostV1WorkflowsByIdPublishBody":{"type":"object","properties":{"inFlight":{"default":"stay","type":"string","enum":["stay","migrate","exit"]},"nodeMap":{"default":{},"type":"object","additionalProperties":{"type":"string"}}}},"PostV1WorkflowsByIdPublishResponse":{"type":"object","properties":{"workflow":{"$ref":"#/components/schemas/ItemsItem62"},"version":{"$ref":"#/components/schemas/Version2"},"moved":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"exited":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["workflow","version","moved","exited"],"additionalProperties":false},"Version2":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"workflowId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"n":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"graph":{},"trigger":{},"settings":{},"checksum":{"type":"string"},"publishedAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"publishedBy":{"type":"string"}},"required":["id","workflowId","n","graph","trigger","settings","checksum","publishedAt","publishedBy"],"additionalProperties":false},"PostV1WorkflowsByIdSimulateBody":{"type":"object","properties":{"profiles":{"$ref":"#/components/schemas/Profiles"},"events":{"$ref":"#/components/schemas/Events4"},"start":{"type":"string","format":"date-time"},"until":{"type":"string","format":"date-time"},"definition":{"$ref":"#/components/schemas/Definition4"},"matchDefinitions":{"default":false,"type":"boolean"},"triggerEvent":{"type":"object","additionalProperties":{}},"waitOutcomes":{"default":{},"type":"object","additionalProperties":{"type":"string","enum":["happens","never"]}}},"required":["profiles","start"]},"Profiles":{"minItems":1,"maxItems":100,"type":"array","items":{"$ref":"#/components/schemas/ProfilesItem"}},"ProfilesItem":{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":64},"fields":{"default":{},"type":"object","additionalProperties":{}},"tags":{"default":[],"type":"array","items":{"type":"string"}},"listIds":{"default":[],"type":"array","items":{"type":"string"}},"segmentIds":{"default":[],"type":"array","items":{"type":"string"}},"timezone":{"default":"UTC","type":"string"},"consents":{"default":[],"type":"array","items":{"type":"string"}}},"required":["id"]},"Events4":{"default":[],"maxItems":1000,"type":"array","items":{"$ref":"#/components/schemas/EventsItem4"}},"EventsItem4":{"type":"object","properties":{"profileId":{"type":"string"},"name":{"type":"string"},"at":{"type":"string","format":"date-time"},"properties":{"default":{},"type":"object","additionalProperties":{}}},"required":["profileId","name","at"]},"PostV1WorkflowsByIdSimulateResponse":{"type":"object","properties":{"traces":{"$ref":"#/components/schemas/Traces"},"nodeCounts":{"type":"object","additionalProperties":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"pathCounts":{"type":"object","additionalProperties":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"warnings":{"$ref":"#/components/schemas/Errors"}},"required":["traces","nodeCounts","pathCounts","warnings"],"additionalProperties":false},"Traces":{"type":"object","additionalProperties":{"$ref":"#/components/schemas/Traces2"}},"Traces2":{"type":"array","items":{"$ref":"#/components/schemas/TracesItem"}},"TracesItem":{"type":"object","properties":{"at":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"nodeId":{"type":"string"},"kind":{"type":"string"},"handle":{"type":"string"},"note":{"type":"string"}},"required":["at","nodeId","kind"],"additionalProperties":false},"GetV1WorkflowsByIdEnrollmentsResponse":{"type":"object","properties":{"items":{"$ref":"#/components/schemas/Items20"},"nextCursor":{"nullable":true,"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},"required":["items","nextCursor"],"additionalProperties":false},"Items20":{"type":"array","items":{"$ref":"#/components/schemas/ItemsItem63"}},"ItemsItem63":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"stuckReason":{"nullable":true,"type":"string","enum":["schedule_lost","overdue","failed","paused","awaiting_signal"]},"profileEmail":{"nullable":true,"type":"string"},"lastError":{"nullable":true,"type":"string"}},"required":["id"],"additionalProperties":{}},"PostV1WorkflowsByIdEnrollResponse":{"type":"object","properties":{"enrolled":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"skipped":{"$ref":"#/components/schemas/Skipped"},"queued":{"type":"boolean"}},"required":["enrolled","skipped"],"additionalProperties":false},"Skipped":{"type":"array","items":{"$ref":"#/components/schemas/SkippedItem"}},"SkippedItem":{"type":"object","properties":{"profileId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"reason":{"type":"string"}},"required":["profileId","reason"],"additionalProperties":false},"ItemsItem64":{"type":"object","properties":{"nodeId":{"type":"string"},"type":{"type":"string"},"config":{},"status":{"type":"string","enum":["live","paused"]},"pauseMode":{"nullable":true,"type":"string","enum":["wait","skip","review"]},"entered":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"completed":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"errors":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"queued":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["nodeId","type","config","status","pauseMode","entered","completed","errors","queued"],"additionalProperties":false},"DeleteV1WorkflowsByIdNodesByNodeIdResponse":{"type":"object","properties":{"version":{"$ref":"#/components/schemas/Version2"},"moved":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"exited":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["version","moved","exited"],"additionalProperties":false},"ItemsItem65":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"name":{"type":"string"},"key":{"type":"string"},"status":{"type":"string","enum":["draft","active","inactive"]},"draft":{"$ref":"#/components/schemas/Draft"},"published":{"$ref":"#/components/schemas/Published"},"publishedAt":{"nullable":true,"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"createdAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"updatedAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"}},"required":["id","name","key","status","draft","published","publishedAt","createdAt","updatedAt"],"additionalProperties":false},"Draft":{"type":"object","properties":{"rules":{"$ref":"#/components/schemas/Rules5"},"actions":{"$ref":"#/components/schemas/Actions"},"decay":{"$ref":"#/components/schemas/Decay"},"floor":{"default":0,"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"ceiling":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"groups":{"$ref":"#/components/schemas/Groups"},"tiers":{"$ref":"#/components/schemas/Tiers"}},"required":["rules","actions","floor","groups","tiers"],"additionalProperties":false},"Rules5":{"default":[],"maxItems":50,"type":"array","items":{"$ref":"#/components/schemas/RulesItem3"}},"RulesItem3":{"oneOf":[{"$ref":"#/components/schemas/RulesItemVariant"},{"$ref":"#/components/schemas/RulesItemVariant2"},{"$ref":"#/components/schemas/RulesItemVariant3"}]},"RulesItemVariant":{"type":"object","properties":{"activeFrom":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"activeUntil":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"group":{"type":"string","minLength":1,"maxLength":32},"id":{"type":"string","minLength":1,"maxLength":32},"on":{"type":"string","enum":["event"]},"event":{"type":"string","minLength":1,"maxLength":128},"conditions":{"$ref":"#/components/schemas/Conditions3"},"points":{"type":"integer","minimum":-1000,"maximum":1000},"cap":{"description":"Most points this rule can give one contact in total (not a hit count): points 5 with cap 15 stops after three hits","type":"integer","minimum":1,"maximum":100000}},"required":["id","on","event","conditions","points"],"additionalProperties":false},"Conditions3":{"default":[],"maxItems":10,"type":"array","items":{"$ref":"#/components/schemas/ConditionsItem2"}},"RulesItemVariant2":{"type":"object","properties":{"activeFrom":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"activeUntil":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"group":{"type":"string","minLength":1,"maxLength":32},"id":{"type":"string","minLength":1,"maxLength":32},"on":{"type":"string","enum":["engagement"]},"kind":{"type":"string","enum":["open","click","reply","delivered"]},"points":{"type":"integer","minimum":-1000,"maximum":1000},"cap":{"description":"Most points this rule can give one contact in total (not a hit count): points 5 with cap 15 stops after three hits","type":"integer","minimum":1,"maximum":100000}},"required":["id","on","kind","points"],"additionalProperties":false},"RulesItemVariant3":{"type":"object","properties":{"activeFrom":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"activeUntil":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"group":{"type":"string","minLength":1,"maxLength":32},"id":{"type":"string","minLength":1,"maxLength":32},"on":{"type":"string","enum":["attribute"]},"field":{"type":"string","minLength":1,"maxLength":128},"op":{"type":"string","enum":["eq","ne","gt","gte","lt","lte","contains","exists","not_exists"]},"value":{},"points":{"type":"integer","minimum":-1000,"maximum":1000}},"required":["id","on","field","op","points"],"additionalProperties":false},"Actions":{"default":[],"maxItems":20,"type":"array","items":{"$ref":"#/components/schemas/ActionsItem"}},"ActionsItem":{"oneOf":[{"$ref":"#/components/schemas/ActionsItemVariant"},{"$ref":"#/components/schemas/ActionsItemVariant2"},{"$ref":"#/components/schemas/ActionsItemVariant3"},{"$ref":"#/components/schemas/ActionsItemVariant4"}]},"ActionsItemVariant":{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":32},"reaches":{"type":"integer","minimum":1,"maximum":1000000},"once":{"default":true,"type":"boolean"},"do":{"type":"string","enum":["add_tag"]},"name":{"type":"string","minLength":1,"maxLength":64}},"required":["id","reaches","once","do","name"],"additionalProperties":false},"ActionsItemVariant2":{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":32},"reaches":{"type":"integer","minimum":1,"maximum":1000000},"once":{"default":true,"type":"boolean"},"do":{"type":"string","enum":["set_stage"]},"stage":{"type":"string","minLength":1,"maxLength":64}},"required":["id","reaches","once","do","stage"],"additionalProperties":false},"ActionsItemVariant3":{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":32},"reaches":{"type":"integer","minimum":1,"maximum":1000000},"once":{"default":true,"type":"boolean"},"do":{"type":"string","enum":["start_journey"]},"workflowId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},"required":["id","reaches","once","do","workflowId"],"additionalProperties":false},"ActionsItemVariant4":{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":32},"reaches":{"type":"integer","minimum":1,"maximum":1000000},"once":{"default":true,"type":"boolean"},"do":{"type":"string","enum":["add_note"]},"body":{"type":"string","minLength":1,"maxLength":500}},"required":["id","reaches","once","do","body"],"additionalProperties":false},"Decay":{"type":"object","properties":{"points":{"type":"integer","minimum":1,"maximum":1000},"everyDays":{"type":"integer","minimum":1,"maximum":365}},"required":["points","everyDays"],"additionalProperties":false},"Groups":{"default":[],"maxItems":20,"type":"array","items":{"$ref":"#/components/schemas/GroupsItem"}},"GroupsItem":{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":32},"name":{"type":"string","minLength":1,"maxLength":80},"limit":{"type":"integer","minimum":1,"maximum":100000}},"required":["id","name"],"additionalProperties":false},"Tiers":{"default":[],"maxItems":10,"type":"array","items":{"$ref":"#/components/schemas/TiersItem"}},"TiersItem":{"type":"object","properties":{"label":{"type":"string","minLength":1,"maxLength":40},"min":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["label","min"],"additionalProperties":false},"Published":{"nullable":true,"type":"object","properties":{"rules":{"$ref":"#/components/schemas/Rules5"},"actions":{"$ref":"#/components/schemas/Actions"},"decay":{"$ref":"#/components/schemas/Decay"},"floor":{"default":0,"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"ceiling":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"groups":{"$ref":"#/components/schemas/Groups"},"tiers":{"$ref":"#/components/schemas/Tiers"}},"required":["rules","actions","floor","groups","tiers"],"additionalProperties":false},"Definition5":{"type":"object","properties":{"rules":{"$ref":"#/components/schemas/Rules6"},"actions":{"$ref":"#/components/schemas/Actions2"},"decay":{"type":"object","properties":{"points":{"type":"integer","minimum":1,"maximum":1000},"everyDays":{"type":"integer","minimum":1,"maximum":365}},"required":["points","everyDays"]},"floor":{"default":0,"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"ceiling":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"groups":{"$ref":"#/components/schemas/Groups2"},"tiers":{"$ref":"#/components/schemas/Tiers2"}}},"Rules6":{"default":[],"maxItems":50,"type":"array","items":{"$ref":"#/components/schemas/RulesItem4"}},"RulesItem4":{"oneOf":[{"$ref":"#/components/schemas/RulesItemVariant4"},{"$ref":"#/components/schemas/RulesItemVariant5"},{"$ref":"#/components/schemas/RulesItemVariant6"}]},"RulesItemVariant4":{"type":"object","properties":{"activeFrom":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"activeUntil":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"group":{"type":"string","minLength":1,"maxLength":32},"id":{"type":"string","minLength":1,"maxLength":32},"on":{"type":"string","enum":["event"]},"event":{"type":"string","minLength":1,"maxLength":128},"conditions":{"$ref":"#/components/schemas/Conditions4"},"points":{"type":"integer","minimum":-1000,"maximum":1000},"cap":{"description":"Most points this rule can give one contact in total (not a hit count): points 5 with cap 15 stops after three hits","type":"integer","minimum":1,"maximum":100000}},"required":["id","on","event","points"]},"Conditions4":{"default":[],"maxItems":10,"type":"array","items":{"$ref":"#/components/schemas/ConditionsItem"}},"RulesItemVariant5":{"type":"object","properties":{"activeFrom":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"activeUntil":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"group":{"type":"string","minLength":1,"maxLength":32},"id":{"type":"string","minLength":1,"maxLength":32},"on":{"type":"string","enum":["engagement"]},"kind":{"type":"string","enum":["open","click","reply","delivered"]},"points":{"type":"integer","minimum":-1000,"maximum":1000},"cap":{"description":"Most points this rule can give one contact in total (not a hit count): points 5 with cap 15 stops after three hits","type":"integer","minimum":1,"maximum":100000}},"required":["id","on","kind","points"]},"RulesItemVariant6":{"type":"object","properties":{"activeFrom":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"activeUntil":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"group":{"type":"string","minLength":1,"maxLength":32},"id":{"type":"string","minLength":1,"maxLength":32},"on":{"type":"string","enum":["attribute"]},"field":{"type":"string","minLength":1,"maxLength":128},"op":{"type":"string","enum":["eq","ne","gt","gte","lt","lte","contains","exists","not_exists"]},"value":{},"points":{"type":"integer","minimum":-1000,"maximum":1000}},"required":["id","on","field","op","points"]},"Actions2":{"default":[],"maxItems":20,"type":"array","items":{"$ref":"#/components/schemas/ActionsItem2"}},"ActionsItem2":{"oneOf":[{"$ref":"#/components/schemas/ActionsItemVariant5"},{"$ref":"#/components/schemas/ActionsItemVariant6"},{"$ref":"#/components/schemas/ActionsItemVariant7"},{"$ref":"#/components/schemas/ActionsItemVariant8"}]},"ActionsItemVariant5":{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":32},"reaches":{"type":"integer","minimum":1,"maximum":1000000},"once":{"default":true,"type":"boolean"},"do":{"type":"string","enum":["add_tag"]},"name":{"type":"string","minLength":1,"maxLength":64}},"required":["id","reaches","do","name"]},"ActionsItemVariant6":{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":32},"reaches":{"type":"integer","minimum":1,"maximum":1000000},"once":{"default":true,"type":"boolean"},"do":{"type":"string","enum":["set_stage"]},"stage":{"type":"string","minLength":1,"maxLength":64}},"required":["id","reaches","do","stage"]},"ActionsItemVariant7":{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":32},"reaches":{"type":"integer","minimum":1,"maximum":1000000},"once":{"default":true,"type":"boolean"},"do":{"type":"string","enum":["start_journey"]},"workflowId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},"required":["id","reaches","do","workflowId"]},"ActionsItemVariant8":{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":32},"reaches":{"type":"integer","minimum":1,"maximum":1000000},"once":{"default":true,"type":"boolean"},"do":{"type":"string","enum":["add_note"]},"body":{"type":"string","minLength":1,"maxLength":500}},"required":["id","reaches","do","body"]},"Groups2":{"default":[],"maxItems":20,"type":"array","items":{"$ref":"#/components/schemas/GroupsItem2"}},"GroupsItem2":{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":32},"name":{"type":"string","minLength":1,"maxLength":80},"limit":{"type":"integer","minimum":1,"maximum":100000}},"required":["id","name"]},"Tiers2":{"default":[],"maxItems":10,"type":"array","items":{"$ref":"#/components/schemas/TiersItem2"}},"TiersItem2":{"type":"object","properties":{"label":{"type":"string","minLength":1,"maxLength":40},"min":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["label","min"]},"GetV1WorkflowsByIdGoalsResponse":{"type":"object","properties":{"flowGoal":{"$ref":"#/components/schemas/FlowGoal"},"nodes":{"$ref":"#/components/schemas/Nodes3"},"conversions":{"$ref":"#/components/schemas/Conversions"}},"required":["flowGoal","nodes","conversions"],"additionalProperties":false},"FlowGoal":{"nullable":true,"type":"object","properties":{"kind":{"type":"string","enum":["event","segment"]},"eventName":{"type":"string","maxLength":128},"filter":{"type":"object","additionalProperties":{}},"definition":{"$ref":"#/components/schemas/Definition"},"windowDays":{"default":30,"type":"integer","minimum":1,"maximum":365},"onReach":{"default":"exit","type":"string","enum":["exit","continue","jump"]}},"required":["kind","windowDays","onReach"],"additionalProperties":false},"Nodes3":{"type":"array","items":{"$ref":"#/components/schemas/NodesItem3"}},"NodesItem3":{"type":"object","properties":{"nodeId":{"type":"string","minLength":1,"maxLength":64},"name":{"type":"string"},"skipAhead":{"type":"boolean"},"match":{"$ref":"#/components/schemas/Match3"}},"required":["nodeId","name","skipAhead","match"],"additionalProperties":false},"Match3":{"nullable":true,"type":"object","properties":{"kind":{"type":"string","enum":["event","segment"]},"eventName":{"type":"string","maxLength":128},"filter":{"type":"object","additionalProperties":{}},"definition":{"$ref":"#/components/schemas/Definition"}},"required":["kind"],"additionalProperties":false},"Conversions":{"type":"object","properties":{"enrolled":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"converted":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"rate":{"type":"number"}},"required":["enrolled","converted","rate"],"additionalProperties":false},"Revenue":{"type":"array","items":{"$ref":"#/components/schemas/RevenueItem"}},"RevenueItem":{"type":"object","properties":{"currency":{"nullable":true,"type":"string"},"conversions":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"revenueMinor":{"type":"number"}},"required":["currency","conversions","revenueMinor"],"additionalProperties":false},"TemplateDoc":{"nullable":true,"type":"object","properties":{"version":{"default":1,"type":"number","enum":[1]},"width":{"default":600,"type":"integer","minimum":320,"maximum":800},"background":{"type":"string","maxLength":32,"pattern":"^(#[0-9a-fA-F]{3,8}|[a-zA-Z]+|transparent)$"},"blocks":{"maxItems":100,"type":"array","items":{"$ref":"#/components/schemas/schema0"}},"translations":{"$ref":"#/components/schemas/Translations3"}},"required":["version","width","blocks"],"additionalProperties":false},"ItemsItem66":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"url":{"type":"string"},"topics":{"type":"array","items":{"type":"string"}},"description":{"nullable":true,"type":"string"},"filters":{"$ref":"#/components/schemas/Filters"},"listIds":{"maxItems":100,"type":"array","items":{"type":"string","minLength":1,"maxLength":128}},"sources":{"maxItems":100,"type":"array","items":{"type":"string","minLength":1,"maxLength":128}},"sequenceIds":{"maxItems":100,"type":"array","items":{"type":"string","minLength":1,"maxLength":128}},"bodyTemplate":{"nullable":true,"type":"string"},"authHeaders":{"$ref":"#/components/schemas/AuthHeaders2"},"throttleSeconds":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"throttleTopics":{"type":"array","items":{"type":"string"}},"status":{"type":"string","enum":["active","disabled"]},"consecutiveFailures":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"createdAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"updatedAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"}},"required":["id","url","topics","description","filters","listIds","sources","sequenceIds","bodyTemplate","authHeaders","throttleSeconds","throttleTopics","status","consecutiveFailures","createdAt","updatedAt"],"additionalProperties":false},"Filters":{"maxItems":20,"type":"array","items":{"$ref":"#/components/schemas/FiltersItem"}},"FiltersItem":{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":40},"path":{"type":"string","maxLength":120,"pattern":"^[A-Za-z_][A-Za-z0-9_]*(\\.[A-Za-z_][A-Za-z0-9_]*)*$"},"op":{"type":"string","enum":["eq","neq","in","contains","exists","gt","lt"]},"value":{}},"required":["path","op"],"additionalProperties":false},"Filters2":{"maxItems":20,"type":"array","items":{"$ref":"#/components/schemas/FiltersItem2"}},"FiltersItem2":{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":40},"path":{"type":"string","maxLength":120,"pattern":"^[A-Za-z_][A-Za-z0-9_]*(\\.[A-Za-z_][A-Za-z0-9_]*)*$"},"op":{"type":"string","enum":["eq","neq","in","contains","exists","gt","lt"]},"value":{}},"required":["path","op"]},"PostV1WebhooksEndpointsResponse":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"url":{"type":"string"},"topics":{"type":"array","items":{"type":"string"}},"description":{"nullable":true,"type":"string"},"filters":{"$ref":"#/components/schemas/Filters"},"listIds":{"maxItems":100,"type":"array","items":{"type":"string","minLength":1,"maxLength":128}},"sources":{"maxItems":100,"type":"array","items":{"type":"string","minLength":1,"maxLength":128}},"sequenceIds":{"maxItems":100,"type":"array","items":{"type":"string","minLength":1,"maxLength":128}},"bodyTemplate":{"nullable":true,"type":"string"},"authHeaders":{"$ref":"#/components/schemas/AuthHeaders2"},"throttleSeconds":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"throttleTopics":{"type":"array","items":{"type":"string"}},"status":{"type":"string","enum":["active","disabled"]},"consecutiveFailures":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"createdAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"updatedAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"secret":{"type":"string"}},"required":["id","url","topics","description","filters","listIds","sources","sequenceIds","bodyTemplate","authHeaders","throttleSeconds","throttleTopics","status","consecutiveFailures","createdAt","updatedAt","secret"],"additionalProperties":false},"PostV1WebhooksEndpointsByIdTestResponse":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"endpointId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"outboxId":{"nullable":true,"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"topic":{"type":"string"},"attempt":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"status":{"type":"string","enum":["pending","succeeded","failed"]},"responseCode":{"nullable":true,"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"latencyMs":{"nullable":true,"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"error":{"nullable":true,"type":"string"},"nextAttemptAt":{"nullable":true,"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"createdAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"}},"required":["id","endpointId","outboxId","topic","attempt","status","responseCode","latencyMs","error","nextAttemptAt","createdAt"],"additionalProperties":false},"ItemsItem67":{"type":"object","properties":{"topic":{"type":"string"},"category":{"type":"string"},"description":{"type":"string"},"schema":{"type":"object","additionalProperties":{}},"example":{"type":"object","additionalProperties":{}}},"required":["topic","category","description","schema","example"],"additionalProperties":false},"ItemsItem68":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"name":{"type":"string"},"description":{"nullable":true,"type":"string"},"createdAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"updatedAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"}},"required":["id","name","description","createdAt","updatedAt"],"additionalProperties":false},"Items21":{"type":"array","items":{"$ref":"#/components/schemas/ItemsItem69"}},"ItemsItem69":{"type":"object","properties":{"offset":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"topic":{"type":"string"},"createdAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"data":{}},"required":["offset","id","topic","createdAt","data"],"additionalProperties":false},"ProfileIds5":{"maxItems":1000,"type":"array","items":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},"GetV1WebhooksJournalEarliestByCountResponse":{"type":"object","properties":{"items":{"$ref":"#/components/schemas/Items21"},"nextCursor":{"nullable":true,"type":"string"}},"required":["items","nextCursor"],"additionalProperties":false},"ItemsItem70":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"name":{"type":"string","minLength":1,"maxLength":100},"url":{"default":"","anyOf":[{"type":"string","maxLength":2000,"format":"uri"},{"type":"string","enum":[""]}]},"method":{"default":"POST","type":"string","enum":["POST","PUT","PATCH","DELETE","GET","HEAD","OPTIONS"]},"headers":{"default":{},"type":"object","additionalProperties":{"type":"string","maxLength":500}},"body":{"default":null,"nullable":true,"type":"object","additionalProperties":{}},"authHeaders":{"$ref":"#/components/schemas/AuthHeaders3"},"description":{"default":"","type":"string","maxLength":300},"inputs":{"$ref":"#/components/schemas/Inputs"},"outputs":{"$ref":"#/components/schemas/Outputs"},"kind":{"default":"webhook","type":"string","enum":["webhook","code"]},"status":{"default":"published","type":"string","enum":["draft","published","archived"]},"labels":{"default":{},"type":"object","additionalProperties":{"type":"string","maxLength":100}},"executionRules":{"$ref":"#/components/schemas/ExecutionRules"},"code":{"default":null,"nullable":true,"type":"string","maxLength":100000},"preActionCode":{"default":null,"nullable":true,"type":"string","maxLength":50000},"allowedHosts":{"default":[],"maxItems":20,"type":"array","items":{"type":"string","pattern":"^(\\*\\.)?[a-z0-9-]+(\\.[a-z0-9-]+)+$"}},"secretNames":{"default":[],"maxItems":10,"type":"array","items":{"type":"string","minLength":1,"maxLength":100}},"timeoutMs":{"default":5000,"type":"integer","minimum":100,"maximum":30000},"memoryMb":{"default":64,"type":"integer","minimum":16,"maximum":256},"createdAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"updatedAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"}},"required":["id","name","url","method","headers","body","authHeaders","description","inputs","outputs","kind","status","labels","executionRules","code","preActionCode","allowedHosts","secretNames","timeoutMs","memoryMb","createdAt","updatedAt"],"additionalProperties":false},"AuthHeaders3":{"default":[],"maxItems":10,"type":"array","items":{"$ref":"#/components/schemas/AuthHeadersItem2"}},"Inputs":{"default":[],"maxItems":20,"type":"array","items":{"$ref":"#/components/schemas/InputsItem"}},"InputsItem":{"type":"object","properties":{"key":{"type":"string","pattern":"^[a-z][a-z0-9_]{0,39}$"},"label":{"type":"string","minLength":1,"maxLength":80},"required":{"default":false,"type":"boolean"},"type":{"default":"string","type":"string","enum":["string","number","boolean","date","enum"]},"options":{"maxItems":100,"type":"array","items":{"type":"string","maxLength":100}},"optionsUrl":{"type":"string","maxLength":2000,"format":"uri"},"property":{"type":"string","minLength":1,"maxLength":128},"labels":{"type":"object","additionalProperties":{"type":"string","maxLength":100}}},"required":["key","label","required","type"],"additionalProperties":false},"Outputs":{"default":[],"maxItems":20,"type":"array","items":{"$ref":"#/components/schemas/OutputsItem"}},"OutputsItem":{"type":"object","properties":{"path":{"type":"string","minLength":1,"maxLength":200},"field":{"type":"string","minLength":1,"maxLength":128},"label":{"type":"string","maxLength":80},"type":{"type":"string","enum":["string","number","boolean","date"]},"labels":{"type":"object","additionalProperties":{"type":"string","maxLength":100}}},"required":["path","field"],"additionalProperties":false},"ExecutionRules":{"default":[],"maxItems":20,"type":"array","items":{"$ref":"#/components/schemas/ExecutionRulesItem"}},"ExecutionRulesItem":{"type":"object","properties":{"path":{"type":"string","minLength":1,"maxLength":200},"op":{"type":"string","enum":["eq","neq","exists","gt","lt"]},"value":{},"state":{"type":"string","enum":["SUCCESS","FAIL_CONTINUE","BLOCK"]},"message":{"type":"string","maxLength":300}},"required":["path","op","state","message"],"additionalProperties":false},"AuthHeaders4":{"default":[],"maxItems":10,"type":"array","items":{"$ref":"#/components/schemas/AuthHeadersItem"}},"InputsItem2":{"type":"object","properties":{"key":{"type":"string","pattern":"^[a-z][a-z0-9_]{0,39}$"},"label":{"type":"string","minLength":1,"maxLength":80},"required":{"default":false,"type":"boolean"},"type":{"default":"string","type":"string","enum":["string","number","boolean","date","enum"]},"options":{"maxItems":100,"type":"array","items":{"type":"string","maxLength":100}},"optionsUrl":{"type":"string","maxLength":2000,"format":"uri"},"property":{"type":"string","minLength":1,"maxLength":128},"labels":{"type":"object","additionalProperties":{"type":"string","maxLength":100}}},"required":["key","label"]},"OutputsItem2":{"type":"object","properties":{"path":{"type":"string","minLength":1,"maxLength":200},"field":{"type":"string","minLength":1,"maxLength":128},"label":{"type":"string","maxLength":80},"type":{"type":"string","enum":["string","number","boolean","date"]},"labels":{"type":"object","additionalProperties":{"type":"string","maxLength":100}}},"required":["path","field"]},"ExecutionRulesItem2":{"type":"object","properties":{"path":{"type":"string","minLength":1,"maxLength":200},"op":{"type":"string","enum":["eq","neq","exists","gt","lt"]},"value":{},"state":{"type":"string","enum":["SUCCESS","FAIL_CONTINUE","BLOCK"]},"message":{"type":"string","maxLength":300}},"required":["path","op","state","message"]},"ItemsItem71":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"key":{"type":"string"},"name":{"type":"string"},"fields":{"type":"object","additionalProperties":{"type":"string","enum":["string","number","boolean","date"]}}},"required":["id","key","name","fields"],"additionalProperties":false},"GetV1ObjectsByTypeResponse":{"type":"object","properties":{"items":{"$ref":"#/components/schemas/Items22"},"nextCursor":{"nullable":true,"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},"required":["items","nextCursor"],"additionalProperties":false},"Items22":{"type":"array","items":{"$ref":"#/components/schemas/ItemsItem72"}},"ItemsItem72":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"typeId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"externalId":{"nullable":true,"type":"string"},"name":{"type":"string"},"attributes":{"type":"object","additionalProperties":{}},"createdAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"updatedAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"}},"required":["id","typeId","externalId","name","attributes","createdAt","updatedAt"],"additionalProperties":false},"GetV1ObjectsByTypeExternalByExternalIdResponse":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"typeId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"externalId":{"nullable":true,"type":"string"},"name":{"type":"string"},"attributes":{"type":"object","additionalProperties":{}},"createdAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"updatedAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"links":{"$ref":"#/components/schemas/Links2"}},"required":["id","typeId","externalId","name","attributes","createdAt","updatedAt","links"],"additionalProperties":false},"Links2":{"type":"array","items":{"$ref":"#/components/schemas/LinksItem2"}},"LinksItem2":{"type":"object","properties":{"profileId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"role":{"nullable":true,"type":"string"},"labels":{"type":"array","items":{"type":"string"}}},"required":["profileId","role","labels"],"additionalProperties":false},"PostV1ImportsResponse":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"filename":{"type":"string"},"status":{"type":"string","enum":["uploaded","queued","running","completed","failed","rolled_back","cancelled"]},"mapping":{"$ref":"#/components/schemas/Mapping"},"listId":{"nullable":true,"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"tags":{"type":"array","items":{"type":"string"}},"consentAssertion":{"$ref":"#/components/schemas/ConsentAssertion2"},"verifyEmail":{"type":"boolean"},"listIds":{"$ref":"#/components/schemas/ListIds2"},"updateExisting":{"default":true,"type":"boolean"},"topicId":{"default":null,"nullable":true,"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"stats":{"$ref":"#/components/schemas/Stats2"},"progress":{"$ref":"#/components/schemas/Progress2"},"error":{"nullable":true,"type":"string"},"errorsUrl":{"nullable":true,"type":"string"},"createdAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"finishedAt":{"nullable":true,"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"}},"required":["id","filename","status","mapping","listId","tags","consentAssertion","verifyEmail","listIds","updateExisting","topicId","stats","progress","error","createdAt","finishedAt"],"additionalProperties":false},"ConsentAssertion2":{"nullable":true,"type":"object","properties":{"channel":{"type":"string","enum":["email","sms","whatsapp","push","postcard"]},"purpose":{"type":"string","enum":["marketing","prospecting","transactional","operational"]},"sourceText":{"type":"string","minLength":1,"maxLength":4000},"attestedBy":{"type":"string","minLength":1,"maxLength":256}},"required":["channel","purpose","sourceText","attestedBy"],"additionalProperties":false},"Stats2":{"nullable":true,"type":"object","properties":{"total":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"created":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"updated":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"errors":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"suppressed":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"consentSkipped":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"consentGranted":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"skipped":{"default":0,"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"blocked":{"default":0,"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"topicSubscribed":{"default":0,"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"topicUnsubscribed":{"default":0,"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["total","created","updated","errors","suppressed","consentSkipped","consentGranted","skipped","blocked","topicSubscribed","topicUnsubscribed"],"additionalProperties":false},"Progress2":{"nullable":true,"type":"object","properties":{"rowsRead":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"processed":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"errors":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["rowsRead","processed","errors"],"additionalProperties":false},"ItemsItem73":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"name":{"type":"string"},"kind":{"type":"string","enum":["embed","popup","flyout","full_page","preference_center","bar"]},"status":{"type":"string","enum":["draft","published","archived"]}},"required":["id","name","kind","status"],"additionalProperties":{}},"Definition6":{"type":"object","properties":{"captcha":{"$ref":"#/components/schemas/Captcha"},"actions":{"$ref":"#/components/schemas/Actions3"},"redirects":{"$ref":"#/components/schemas/Redirects2"},"progressive":{"default":"off","type":"string","enum":["off","hide","prefill"]},"kiosk":{"default":false,"type":"boolean"},"theme":{"$ref":"#/components/schemas/Theme"},"teaser":{"$ref":"#/components/schemas/Teaser"},"countdown":{"$ref":"#/components/schemas/Countdown"},"spin":{"$ref":"#/components/schemas/Spin"},"bar":{"type":"object","properties":{"position":{"default":"bottom","type":"string","enum":["top","bottom"]},"text":{"default":"","type":"string","maxLength":200}}},"steps":{"$ref":"#/components/schemas/Steps5"},"saveEachStep":{"type":"boolean"},"success":{"$ref":"#/components/schemas/Success"},"doubleOptIn":{"$ref":"#/components/schemas/DoubleOptIn"},"topicId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"tags":{"default":[],"maxItems":20,"type":"array","items":{"type":"string","minLength":1,"maxLength":64}},"listIds":{"$ref":"#/components/schemas/ListIds4"},"progressiveLimit":{"type":"integer","minimum":1,"maximum":20},"submissionLimit":{"$ref":"#/components/schemas/SubmissionLimit"},"maxPerIpPerDay":{"type":"integer","minimum":1,"maximum":1000},"maxPerVisitorPerDay":{"type":"integer","minimum":1,"maximum":1000},"locale":{"type":"string","pattern":"^[a-zA-Z]{2,3}(-[a-zA-Z0-9]{2,8})*$"},"minFillMs":{"default":1500,"type":"integer","minimum":0,"maximum":60000},"welcomeEmail":{"$ref":"#/components/schemas/WelcomeEmail"},"alreadySubscribedEmail":{"$ref":"#/components/schemas/WelcomeEmail"},"blockFreeEmail":{"default":false,"type":"boolean"},"submitLabel":{"type":"string","minLength":1,"maxLength":60},"failureText":{"type":"string","minLength":1,"maxLength":300}},"required":["steps"]},"Captcha":{"type":"object","properties":{"provider":{"type":"string","enum":["turnstile","hcaptcha","recaptcha","friendlycaptcha"]},"siteKey":{"type":"string","minLength":1,"maxLength":200}},"required":["provider","siteKey"]},"Actions3":{"default":[],"maxItems":10,"type":"array","items":{"$ref":"#/components/schemas/ActionsItem3"}},"ActionsItem3":{"oneOf":[{"$ref":"#/components/schemas/ActionsItemVariant9"},{"$ref":"#/components/schemas/ActionsItemVariant10"},{"$ref":"#/components/schemas/ActionsItemVariant11"},{"$ref":"#/components/schemas/ActionsItemVariant12"},{"$ref":"#/components/schemas/ActionsItemVariant13"},{"$ref":"#/components/schemas/ActionsItemVariant14"}]},"ActionsItemVariant9":{"type":"object","properties":{"type":{"type":"string","enum":["add_tag"]},"tags":{"minItems":1,"maxItems":20,"type":"array","items":{"type":"string","minLength":1,"maxLength":64}},"when":{"$ref":"#/components/schemas/When3"}},"required":["type","tags"]},"When3":{"maxItems":5,"type":"array","items":{"$ref":"#/components/schemas/WhenItem"}},"WhenItem":{"type":"object","properties":{"field":{"type":"string","minLength":1,"maxLength":64,"pattern":"^[a-zA-Z][a-zA-Z0-9_]*$"},"op":{"default":"eq","type":"string","enum":["eq","neq","contains","filled","empty"]},"value":{"default":"","type":"string","maxLength":200}},"required":["field"]},"ActionsItemVariant10":{"type":"object","properties":{"type":{"type":"string","enum":["add_to_list"]},"listId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"when":{"$ref":"#/components/schemas/When3"}},"required":["type","listId"]},"ActionsItemVariant11":{"type":"object","properties":{"type":{"type":"string","enum":["start_workflow"]},"workflowId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"when":{"$ref":"#/components/schemas/When3"}},"required":["type","workflowId"]},"ActionsItemVariant12":{"type":"object","properties":{"type":{"type":"string","enum":["push_integration"]},"integrationId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"when":{"$ref":"#/components/schemas/When3"}},"required":["type","integrationId"]},"ActionsItemVariant13":{"type":"object","properties":{"type":{"type":"string","enum":["notify_email"]},"to":{"$ref":"#/components/schemas/To4"},"subject":{"default":"","type":"string","maxLength":200},"connectionId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"when":{"$ref":"#/components/schemas/When3"}},"required":["type","to"]},"To4":{"minItems":1,"maxItems":5,"type":"array","items":{"type":"string","format":"email","pattern":"^(?:[A-Za-z0-9_'+\\-]+\\.)*[A-Za-z0-9_'+\\-]*[A-Za-z0-9_+-]@(?:[A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$"}},"ActionsItemVariant14":{"type":"object","properties":{"type":{"type":"string","enum":["webhook"]},"url":{"type":"string","maxLength":2048,"format":"uri"},"when":{"$ref":"#/components/schemas/When3"}},"required":["type","url"]},"Redirects2":{"type":"object","properties":{"alreadySubscribed":{"type":"string","maxLength":2048,"format":"uri"},"error":{"type":"string","maxLength":2048,"format":"uri"},"pending":{"type":"string","maxLength":2048,"format":"uri"},"confirmed":{"type":"string","maxLength":2048,"format":"uri"}}},"Theme":{"type":"object","properties":{"primary":{"default":"#1f6feb","type":"string","pattern":"^#[0-9a-fA-F]{3,8}$"},"background":{"default":"#ffffff","type":"string","pattern":"^#[0-9a-fA-F]{3,8}$"},"text":{"default":"#111111","type":"string","pattern":"^#[0-9a-fA-F]{3,8}$"},"font":{"default":"system","type":"string","enum":["system","serif","mono"]},"radius":{"default":8,"type":"integer","minimum":0,"maximum":32},"buttonStyle":{"default":"solid","type":"string","enum":["solid","outline"]},"logoUrl":{"type":"string","maxLength":2048,"format":"uri"}}},"Teaser":{"type":"object","properties":{"text":{"type":"string","minLength":1,"maxLength":40},"side":{"default":"right","type":"string","enum":["left","right","bottom","top_left","top_right","bottom_left","bottom_right"]},"show":{"default":"instead","type":"string","enum":["instead","after_close","before_trigger"]}},"required":["text"]},"Countdown":{"type":"object","properties":{"to":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"label":{"default":"","type":"string","maxLength":100},"expiredText":{"default":"","type":"string","maxLength":200}},"required":["to"]},"Spin":{"type":"object","properties":{"segments":{"$ref":"#/components/schemas/Segments"}},"required":["segments"]},"Segments":{"minItems":2,"maxItems":12,"type":"array","items":{"$ref":"#/components/schemas/SegmentsItem"}},"SegmentsItem":{"type":"object","properties":{"label":{"type":"string","minLength":1,"maxLength":40},"weight":{"type":"integer","minimum":0,"maximum":100},"poolId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},"required":["label","weight"]},"Steps5":{"minItems":1,"maxItems":10,"type":"array","items":{"$ref":"#/components/schemas/StepsItem5"}},"StepsItem5":{"type":"object","properties":{"title":{"type":"string","maxLength":200},"fields":{"$ref":"#/components/schemas/Fields"},"submitLabel":{"type":"string","minLength":1,"maxLength":60},"optional":{"type":"boolean"}},"required":["fields"]},"Fields":{"minItems":1,"maxItems":40,"type":"array","items":{"$ref":"#/components/schemas/FieldsItem"}},"FieldsItem":{"oneOf":[{"$ref":"#/components/schemas/FieldsItemVariant"},{"$ref":"#/components/schemas/FieldsItemVariant2"},{"$ref":"#/components/schemas/FieldsItemVariant3"},{"$ref":"#/components/schemas/FieldsItemVariant4"},{"$ref":"#/components/schemas/FieldsItemVariant5"},{"$ref":"#/components/schemas/FieldsItemVariant6"},{"$ref":"#/components/schemas/FieldsItemVariant7"},{"$ref":"#/components/schemas/FieldsItemVariant8"},{"$ref":"#/components/schemas/FieldsItemVariant9"},{"$ref":"#/components/schemas/FieldsItemVariant10"},{"$ref":"#/components/schemas/FieldsItemVariant11"},{"$ref":"#/components/schemas/FieldsItemVariant12"},{"$ref":"#/components/schemas/FieldsItemVariant13"},{"$ref":"#/components/schemas/FieldsItemVariant14"},{"$ref":"#/components/schemas/FieldsItemVariant15"},{"$ref":"#/components/schemas/FieldsItemVariant16"},{"$ref":"#/components/schemas/FieldsItemVariant17"},{"$ref":"#/components/schemas/FieldsItemVariant18"},{"$ref":"#/components/schemas/FieldsItemVariant19"},{"$ref":"#/components/schemas/FieldsItemVariant20"},{"$ref":"#/components/schemas/FieldsItemVariant21"},{"$ref":"#/components/schemas/FieldsItemVariant22"},{"$ref":"#/components/schemas/FieldsItemVariant23"}]},"FieldsItemVariant":{"type":"object","properties":{"type":{"type":"string","enum":["email"]},"key":{"type":"string","minLength":1,"maxLength":64,"pattern":"^[a-zA-Z][a-zA-Z0-9_]*$"},"label":{"default":"","type":"string","maxLength":200},"required":{"default":false,"type":"boolean"},"when":{"$ref":"#/components/schemas/When3"},"placeholder":{"type":"string","maxLength":200},"helpText":{"type":"string","maxLength":300},"className":{"type":"string","maxLength":100,"pattern":"^[\\w -]*$"},"saveTo":{"type":"string","pattern":"^[A-Za-z][A-Za-z0-9_]{0,63}$"},"attributes":{"type":"object","additionalProperties":{"type":"string","maxLength":200,"pattern":"^[^\\r\\n]*$"}},"pattern":{"type":"string","maxLength":200},"validationMessage":{"type":"string","maxLength":200},"requiredMessage":{"type":"string","maxLength":200},"minLength":{"type":"integer","minimum":0,"maximum":2000},"maxLength":{"type":"integer","minimum":1,"maximum":2000},"always":{"type":"boolean"},"readOnly":{"type":"boolean"},"group":{"type":"string","maxLength":100},"groupCollapsed":{"type":"boolean"}},"required":["type","key"]},"FieldsItemVariant2":{"type":"object","properties":{"type":{"type":"string","enum":["phone"]},"key":{"type":"string","minLength":1,"maxLength":64,"pattern":"^[a-zA-Z][a-zA-Z0-9_]*$"},"label":{"default":"","type":"string","maxLength":200},"required":{"default":false,"type":"boolean"},"when":{"$ref":"#/components/schemas/When3"},"placeholder":{"type":"string","maxLength":200},"helpText":{"type":"string","maxLength":300},"className":{"type":"string","maxLength":100,"pattern":"^[\\w -]*$"},"saveTo":{"type":"string","pattern":"^[A-Za-z][A-Za-z0-9_]{0,63}$"},"attributes":{"type":"object","additionalProperties":{"type":"string","maxLength":200,"pattern":"^[^\\r\\n]*$"}},"pattern":{"type":"string","maxLength":200},"validationMessage":{"type":"string","maxLength":200},"requiredMessage":{"type":"string","maxLength":200},"minLength":{"type":"integer","minimum":0,"maximum":2000},"maxLength":{"type":"integer","minimum":1,"maximum":2000},"always":{"type":"boolean"},"readOnly":{"type":"boolean"},"group":{"type":"string","maxLength":100},"groupCollapsed":{"type":"boolean"}},"required":["type","key"]},"FieldsItemVariant3":{"type":"object","properties":{"type":{"type":"string","enum":["text"]},"key":{"type":"string","minLength":1,"maxLength":64,"pattern":"^[a-zA-Z][a-zA-Z0-9_]*$"},"label":{"default":"","type":"string","maxLength":200},"required":{"default":false,"type":"boolean"},"when":{"$ref":"#/components/schemas/When3"},"placeholder":{"type":"string","maxLength":200},"helpText":{"type":"string","maxLength":300},"className":{"type":"string","maxLength":100,"pattern":"^[\\w -]*$"},"saveTo":{"type":"string","pattern":"^[A-Za-z][A-Za-z0-9_]{0,63}$"},"attributes":{"type":"object","additionalProperties":{"type":"string","maxLength":200,"pattern":"^[^\\r\\n]*$"}},"pattern":{"type":"string","maxLength":200},"validationMessage":{"type":"string","maxLength":200},"requiredMessage":{"type":"string","maxLength":200},"minLength":{"type":"integer","minimum":0,"maximum":2000},"maxLength":{"type":"integer","minimum":1,"maximum":2000},"always":{"type":"boolean"},"readOnly":{"type":"boolean"},"group":{"type":"string","maxLength":100},"groupCollapsed":{"type":"boolean"}},"required":["type","key"]},"FieldsItemVariant4":{"type":"object","properties":{"type":{"type":"string","enum":["date"]},"key":{"type":"string","minLength":1,"maxLength":64,"pattern":"^[a-zA-Z][a-zA-Z0-9_]*$"},"label":{"default":"","type":"string","maxLength":200},"required":{"default":false,"type":"boolean"},"when":{"$ref":"#/components/schemas/When3"},"placeholder":{"type":"string","maxLength":200},"helpText":{"type":"string","maxLength":300},"className":{"type":"string","maxLength":100,"pattern":"^[\\w -]*$"},"saveTo":{"type":"string","pattern":"^[A-Za-z][A-Za-z0-9_]{0,63}$"},"attributes":{"type":"object","additionalProperties":{"type":"string","maxLength":200,"pattern":"^[^\\r\\n]*$"}},"pattern":{"type":"string","maxLength":200},"validationMessage":{"type":"string","maxLength":200},"requiredMessage":{"type":"string","maxLength":200},"minLength":{"type":"integer","minimum":0,"maximum":2000},"maxLength":{"type":"integer","minimum":1,"maximum":2000},"always":{"type":"boolean"},"readOnly":{"type":"boolean"},"group":{"type":"string","maxLength":100},"groupCollapsed":{"type":"boolean"}},"required":["type","key"]},"FieldsItemVariant5":{"type":"object","properties":{"type":{"type":"string","enum":["number"]},"key":{"type":"string","minLength":1,"maxLength":64,"pattern":"^[a-zA-Z][a-zA-Z0-9_]*$"},"label":{"default":"","type":"string","maxLength":200},"required":{"default":false,"type":"boolean"},"when":{"$ref":"#/components/schemas/When3"},"placeholder":{"type":"string","maxLength":200},"helpText":{"type":"string","maxLength":300},"className":{"type":"string","maxLength":100,"pattern":"^[\\w -]*$"},"saveTo":{"type":"string","pattern":"^[A-Za-z][A-Za-z0-9_]{0,63}$"},"attributes":{"type":"object","additionalProperties":{"type":"string","maxLength":200,"pattern":"^[^\\r\\n]*$"}},"pattern":{"type":"string","maxLength":200},"validationMessage":{"type":"string","maxLength":200},"requiredMessage":{"type":"string","maxLength":200},"minLength":{"type":"integer","minimum":0,"maximum":2000},"maxLength":{"type":"integer","minimum":1,"maximum":2000},"always":{"type":"boolean"},"readOnly":{"type":"boolean"},"group":{"type":"string","maxLength":100},"groupCollapsed":{"type":"boolean"},"min":{"type":"number"},"max":{"type":"number"}},"required":["type","key"]},"FieldsItemVariant6":{"type":"object","properties":{"type":{"type":"string","enum":["textarea"]},"key":{"type":"string","minLength":1,"maxLength":64,"pattern":"^[a-zA-Z][a-zA-Z0-9_]*$"},"label":{"default":"","type":"string","maxLength":200},"required":{"default":false,"type":"boolean"},"when":{"$ref":"#/components/schemas/When3"},"placeholder":{"type":"string","maxLength":200},"helpText":{"type":"string","maxLength":300},"className":{"type":"string","maxLength":100,"pattern":"^[\\w -]*$"},"saveTo":{"type":"string","pattern":"^[A-Za-z][A-Za-z0-9_]{0,63}$"},"attributes":{"type":"object","additionalProperties":{"type":"string","maxLength":200,"pattern":"^[^\\r\\n]*$"}},"pattern":{"type":"string","maxLength":200},"validationMessage":{"type":"string","maxLength":200},"requiredMessage":{"type":"string","maxLength":200},"minLength":{"type":"integer","minimum":0,"maximum":2000},"maxLength":{"type":"integer","minimum":1,"maximum":2000},"always":{"type":"boolean"},"readOnly":{"type":"boolean"},"group":{"type":"string","maxLength":100},"groupCollapsed":{"type":"boolean"}},"required":["type","key"]},"FieldsItemVariant7":{"type":"object","properties":{"type":{"type":"string","enum":["url"]},"key":{"type":"string","minLength":1,"maxLength":64,"pattern":"^[a-zA-Z][a-zA-Z0-9_]*$"},"label":{"default":"","type":"string","maxLength":200},"required":{"default":false,"type":"boolean"},"when":{"$ref":"#/components/schemas/When3"},"placeholder":{"type":"string","maxLength":200},"helpText":{"type":"string","maxLength":300},"className":{"type":"string","maxLength":100,"pattern":"^[\\w -]*$"},"saveTo":{"type":"string","pattern":"^[A-Za-z][A-Za-z0-9_]{0,63}$"},"attributes":{"type":"object","additionalProperties":{"type":"string","maxLength":200,"pattern":"^[^\\r\\n]*$"}},"pattern":{"type":"string","maxLength":200},"validationMessage":{"type":"string","maxLength":200},"requiredMessage":{"type":"string","maxLength":200},"minLength":{"type":"integer","minimum":0,"maximum":2000},"maxLength":{"type":"integer","minimum":1,"maximum":2000},"always":{"type":"boolean"},"readOnly":{"type":"boolean"},"group":{"type":"string","maxLength":100},"groupCollapsed":{"type":"boolean"}},"required":["type","key"]},"FieldsItemVariant8":{"type":"object","properties":{"type":{"type":"string","enum":["file"]},"key":{"type":"string","minLength":1,"maxLength":64,"pattern":"^[a-zA-Z][a-zA-Z0-9_]*$"},"label":{"default":"","type":"string","maxLength":200},"required":{"default":false,"type":"boolean"},"when":{"$ref":"#/components/schemas/When3"},"placeholder":{"type":"string","maxLength":200},"helpText":{"type":"string","maxLength":300},"className":{"type":"string","maxLength":100,"pattern":"^[\\w -]*$"},"saveTo":{"type":"string","pattern":"^[A-Za-z][A-Za-z0-9_]{0,63}$"},"attributes":{"type":"object","additionalProperties":{"type":"string","maxLength":200,"pattern":"^[^\\r\\n]*$"}},"pattern":{"type":"string","maxLength":200},"validationMessage":{"type":"string","maxLength":200},"requiredMessage":{"type":"string","maxLength":200},"minLength":{"type":"integer","minimum":0,"maximum":2000},"maxLength":{"type":"integer","minimum":1,"maximum":2000},"always":{"type":"boolean"},"readOnly":{"type":"boolean"},"group":{"type":"string","maxLength":100},"groupCollapsed":{"type":"boolean"},"accept":{"default":["image","pdf"],"minItems":1,"type":"array","items":{"type":"string","enum":["image","pdf","video"]}},"maxMb":{"default":5,"type":"integer","minimum":1,"maximum":25}},"required":["type","key"]},"FieldsItemVariant9":{"type":"object","properties":{"type":{"type":"string","enum":["datetime"]},"key":{"type":"string","minLength":1,"maxLength":64,"pattern":"^[a-zA-Z][a-zA-Z0-9_]*$"},"label":{"default":"","type":"string","maxLength":200},"required":{"default":false,"type":"boolean"},"when":{"$ref":"#/components/schemas/When3"},"placeholder":{"type":"string","maxLength":200},"helpText":{"type":"string","maxLength":300},"className":{"type":"string","maxLength":100,"pattern":"^[\\w -]*$"},"saveTo":{"type":"string","pattern":"^[A-Za-z][A-Za-z0-9_]{0,63}$"},"attributes":{"type":"object","additionalProperties":{"type":"string","maxLength":200,"pattern":"^[^\\r\\n]*$"}},"pattern":{"type":"string","maxLength":200},"validationMessage":{"type":"string","maxLength":200},"requiredMessage":{"type":"string","maxLength":200},"minLength":{"type":"integer","minimum":0,"maximum":2000},"maxLength":{"type":"integer","minimum":1,"maximum":2000},"always":{"type":"boolean"},"readOnly":{"type":"boolean"},"group":{"type":"string","maxLength":100},"groupCollapsed":{"type":"boolean"}},"required":["type","key"]},"FieldsItemVariant10":{"type":"object","properties":{"type":{"type":"string","enum":["country"]},"key":{"type":"string","minLength":1,"maxLength":64,"pattern":"^[a-zA-Z][a-zA-Z0-9_]*$"},"label":{"default":"","type":"string","maxLength":200},"required":{"default":false,"type":"boolean"},"when":{"$ref":"#/components/schemas/When3"},"placeholder":{"type":"string","maxLength":200},"helpText":{"type":"string","maxLength":300},"className":{"type":"string","maxLength":100,"pattern":"^[\\w -]*$"},"saveTo":{"type":"string","pattern":"^[A-Za-z][A-Za-z0-9_]{0,63}$"},"attributes":{"type":"object","additionalProperties":{"type":"string","maxLength":200,"pattern":"^[^\\r\\n]*$"}},"pattern":{"type":"string","maxLength":200},"validationMessage":{"type":"string","maxLength":200},"requiredMessage":{"type":"string","maxLength":200},"minLength":{"type":"integer","minimum":0,"maximum":2000},"maxLength":{"type":"integer","minimum":1,"maximum":2000},"always":{"type":"boolean"},"readOnly":{"type":"boolean"},"group":{"type":"string","maxLength":100},"groupCollapsed":{"type":"boolean"}},"required":["type","key"]},"FieldsItemVariant11":{"type":"object","properties":{"type":{"type":"string","enum":["region"]},"key":{"type":"string","minLength":1,"maxLength":64,"pattern":"^[a-zA-Z][a-zA-Z0-9_]*$"},"label":{"default":"","type":"string","maxLength":200},"required":{"default":false,"type":"boolean"},"when":{"$ref":"#/components/schemas/When3"},"placeholder":{"type":"string","maxLength":200},"helpText":{"type":"string","maxLength":300},"className":{"type":"string","maxLength":100,"pattern":"^[\\w -]*$"},"saveTo":{"type":"string","pattern":"^[A-Za-z][A-Za-z0-9_]{0,63}$"},"attributes":{"type":"object","additionalProperties":{"type":"string","maxLength":200,"pattern":"^[^\\r\\n]*$"}},"pattern":{"type":"string","maxLength":200},"validationMessage":{"type":"string","maxLength":200},"requiredMessage":{"type":"string","maxLength":200},"minLength":{"type":"integer","minimum":0,"maximum":2000},"maxLength":{"type":"integer","minimum":1,"maximum":2000},"always":{"type":"boolean"},"readOnly":{"type":"boolean"},"group":{"type":"string","maxLength":100},"groupCollapsed":{"type":"boolean"},"countryKey":{"type":"string","minLength":1,"maxLength":64,"pattern":"^[a-zA-Z][a-zA-Z0-9_]*$"}},"required":["type","key"]},"FieldsItemVariant12":{"type":"object","properties":{"type":{"type":"string","enum":["slider"]},"key":{"type":"string","minLength":1,"maxLength":64,"pattern":"^[a-zA-Z][a-zA-Z0-9_]*$"},"label":{"default":"","type":"string","maxLength":200},"required":{"default":false,"type":"boolean"},"when":{"$ref":"#/components/schemas/When3"},"placeholder":{"type":"string","maxLength":200},"helpText":{"type":"string","maxLength":300},"className":{"type":"string","maxLength":100,"pattern":"^[\\w -]*$"},"saveTo":{"type":"string","pattern":"^[A-Za-z][A-Za-z0-9_]{0,63}$"},"attributes":{"type":"object","additionalProperties":{"type":"string","maxLength":200,"pattern":"^[^\\r\\n]*$"}},"pattern":{"type":"string","maxLength":200},"validationMessage":{"type":"string","maxLength":200},"requiredMessage":{"type":"string","maxLength":200},"minLength":{"type":"integer","minimum":0,"maximum":2000},"maxLength":{"type":"integer","minimum":1,"maximum":2000},"always":{"type":"boolean"},"readOnly":{"type":"boolean"},"group":{"type":"string","maxLength":100},"groupCollapsed":{"type":"boolean"},"min":{"default":0,"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"max":{"default":10,"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"step":{"default":1,"type":"integer","minimum":1,"maximum":9007199254740991}},"required":["type","key"]},"FieldsItemVariant13":{"type":"object","properties":{"type":{"type":"string","enum":["rating"]},"key":{"type":"string","minLength":1,"maxLength":64,"pattern":"^[a-zA-Z][a-zA-Z0-9_]*$"},"label":{"default":"","type":"string","maxLength":200},"required":{"default":false,"type":"boolean"},"when":{"$ref":"#/components/schemas/When3"},"placeholder":{"type":"string","maxLength":200},"helpText":{"type":"string","maxLength":300},"className":{"type":"string","maxLength":100,"pattern":"^[\\w -]*$"},"saveTo":{"type":"string","pattern":"^[A-Za-z][A-Za-z0-9_]{0,63}$"},"attributes":{"type":"object","additionalProperties":{"type":"string","maxLength":200,"pattern":"^[^\\r\\n]*$"}},"pattern":{"type":"string","maxLength":200},"validationMessage":{"type":"string","maxLength":200},"requiredMessage":{"type":"string","maxLength":200},"minLength":{"type":"integer","minimum":0,"maximum":2000},"maxLength":{"type":"integer","minimum":1,"maximum":2000},"always":{"type":"boolean"},"readOnly":{"type":"boolean"},"group":{"type":"string","maxLength":100},"groupCollapsed":{"type":"boolean"},"max":{"default":5,"type":"integer","minimum":2,"maximum":10}},"required":["type","key"]},"FieldsItemVariant14":{"type":"object","properties":{"type":{"type":"string","enum":["freetext"]},"key":{"type":"string","minLength":1,"maxLength":64,"pattern":"^[a-zA-Z][a-zA-Z0-9_]*$"},"label":{"default":"","type":"string","maxLength":200},"required":{"default":false,"type":"boolean"},"when":{"$ref":"#/components/schemas/When3"},"placeholder":{"type":"string","maxLength":200},"helpText":{"type":"string","maxLength":300},"className":{"type":"string","maxLength":100,"pattern":"^[\\w -]*$"},"saveTo":{"type":"string","pattern":"^[A-Za-z][A-Za-z0-9_]{0,63}$"},"attributes":{"type":"object","additionalProperties":{"type":"string","maxLength":200,"pattern":"^[^\\r\\n]*$"}},"pattern":{"type":"string","maxLength":200},"validationMessage":{"type":"string","maxLength":200},"requiredMessage":{"type":"string","maxLength":200},"minLength":{"type":"integer","minimum":0,"maximum":2000},"maxLength":{"type":"integer","minimum":1,"maximum":2000},"always":{"type":"boolean"},"readOnly":{"type":"boolean"},"group":{"type":"string","maxLength":100},"groupCollapsed":{"type":"boolean"},"text":{"default":"","type":"string","maxLength":2000},"style":{"default":"text","type":"string","enum":["text","heading","rich"]}},"required":["type","key"]},"FieldsItemVariant15":{"type":"object","properties":{"type":{"type":"string","enum":["radio"]},"key":{"type":"string","minLength":1,"maxLength":64,"pattern":"^[a-zA-Z][a-zA-Z0-9_]*$"},"label":{"default":"","type":"string","maxLength":200},"required":{"default":false,"type":"boolean"},"when":{"$ref":"#/components/schemas/When3"},"placeholder":{"type":"string","maxLength":200},"helpText":{"type":"string","maxLength":300},"className":{"type":"string","maxLength":100,"pattern":"^[\\w -]*$"},"saveTo":{"type":"string","pattern":"^[A-Za-z][A-Za-z0-9_]{0,63}$"},"attributes":{"type":"object","additionalProperties":{"type":"string","maxLength":200,"pattern":"^[^\\r\\n]*$"}},"pattern":{"type":"string","maxLength":200},"validationMessage":{"type":"string","maxLength":200},"requiredMessage":{"type":"string","maxLength":200},"minLength":{"type":"integer","minimum":0,"maximum":2000},"maxLength":{"type":"integer","minimum":1,"maximum":2000},"always":{"type":"boolean"},"readOnly":{"type":"boolean"},"group":{"type":"string","maxLength":100},"groupCollapsed":{"type":"boolean"},"options":{"minItems":1,"maxItems":100,"type":"array","items":{"type":"string","maxLength":200}}},"required":["type","key","options"]},"FieldsItemVariant16":{"type":"object","properties":{"type":{"type":"string","enum":["checkbox_group"]},"key":{"type":"string","minLength":1,"maxLength":64,"pattern":"^[a-zA-Z][a-zA-Z0-9_]*$"},"label":{"default":"","type":"string","maxLength":200},"required":{"default":false,"type":"boolean"},"when":{"$ref":"#/components/schemas/When3"},"placeholder":{"type":"string","maxLength":200},"helpText":{"type":"string","maxLength":300},"className":{"type":"string","maxLength":100,"pattern":"^[\\w -]*$"},"saveTo":{"type":"string","pattern":"^[A-Za-z][A-Za-z0-9_]{0,63}$"},"attributes":{"type":"object","additionalProperties":{"type":"string","maxLength":200,"pattern":"^[^\\r\\n]*$"}},"pattern":{"type":"string","maxLength":200},"validationMessage":{"type":"string","maxLength":200},"requiredMessage":{"type":"string","maxLength":200},"minLength":{"type":"integer","minimum":0,"maximum":2000},"maxLength":{"type":"integer","minimum":1,"maximum":2000},"always":{"type":"boolean"},"readOnly":{"type":"boolean"},"group":{"type":"string","maxLength":100},"groupCollapsed":{"type":"boolean"},"options":{"minItems":1,"maxItems":100,"type":"array","items":{"type":"string","maxLength":200}}},"required":["type","key","options"]},"FieldsItemVariant17":{"type":"object","properties":{"type":{"type":"string","enum":["checkbox"]},"key":{"type":"string","minLength":1,"maxLength":64,"pattern":"^[a-zA-Z][a-zA-Z0-9_]*$"},"label":{"default":"","type":"string","maxLength":200},"required":{"default":false,"type":"boolean"},"when":{"$ref":"#/components/schemas/When3"},"placeholder":{"type":"string","maxLength":200},"helpText":{"type":"string","maxLength":300},"className":{"type":"string","maxLength":100,"pattern":"^[\\w -]*$"},"saveTo":{"type":"string","pattern":"^[A-Za-z][A-Za-z0-9_]{0,63}$"},"attributes":{"type":"object","additionalProperties":{"type":"string","maxLength":200,"pattern":"^[^\\r\\n]*$"}},"pattern":{"type":"string","maxLength":200},"validationMessage":{"type":"string","maxLength":200},"requiredMessage":{"type":"string","maxLength":200},"minLength":{"type":"integer","minimum":0,"maximum":2000},"maxLength":{"type":"integer","minimum":1,"maximum":2000},"always":{"type":"boolean"},"readOnly":{"type":"boolean"},"group":{"type":"string","maxLength":100},"groupCollapsed":{"type":"boolean"}},"required":["type","key"]},"FieldsItemVariant18":{"type":"object","properties":{"type":{"type":"string","enum":["select"]},"key":{"type":"string","minLength":1,"maxLength":64,"pattern":"^[a-zA-Z][a-zA-Z0-9_]*$"},"label":{"default":"","type":"string","maxLength":200},"required":{"default":false,"type":"boolean"},"when":{"$ref":"#/components/schemas/When3"},"placeholder":{"type":"string","maxLength":200},"helpText":{"type":"string","maxLength":300},"className":{"type":"string","maxLength":100,"pattern":"^[\\w -]*$"},"saveTo":{"type":"string","pattern":"^[A-Za-z][A-Za-z0-9_]{0,63}$"},"attributes":{"type":"object","additionalProperties":{"type":"string","maxLength":200,"pattern":"^[^\\r\\n]*$"}},"pattern":{"type":"string","maxLength":200},"validationMessage":{"type":"string","maxLength":200},"requiredMessage":{"type":"string","maxLength":200},"minLength":{"type":"integer","minimum":0,"maximum":2000},"maxLength":{"type":"integer","minimum":1,"maximum":2000},"always":{"type":"boolean"},"readOnly":{"type":"boolean"},"group":{"type":"string","maxLength":100},"groupCollapsed":{"type":"boolean"},"options":{"minItems":1,"maxItems":100,"type":"array","items":{"type":"string","maxLength":200}}},"required":["type","key","options"]},"FieldsItemVariant19":{"type":"object","properties":{"type":{"type":"string","enum":["hidden"]},"key":{"type":"string","minLength":1,"maxLength":64,"pattern":"^[a-zA-Z][a-zA-Z0-9_]*$"},"value":{"default":"","type":"string","maxLength":500}},"required":["type","key"]},"FieldsItemVariant20":{"type":"object","properties":{"type":{"type":"string","enum":["password"]},"key":{"type":"string","minLength":1,"maxLength":64,"pattern":"^[a-zA-Z][a-zA-Z0-9_]*$"},"label":{"default":"","type":"string","maxLength":200},"required":{"default":false,"type":"boolean"},"when":{"$ref":"#/components/schemas/When3"},"placeholder":{"type":"string","maxLength":200},"helpText":{"type":"string","maxLength":300},"className":{"type":"string","maxLength":100,"pattern":"^[\\w -]*$"},"saveTo":{"type":"string","pattern":"^[A-Za-z][A-Za-z0-9_]{0,63}$"},"attributes":{"type":"object","additionalProperties":{"type":"string","maxLength":200,"pattern":"^[^\\r\\n]*$"}},"pattern":{"type":"string","maxLength":200},"validationMessage":{"type":"string","maxLength":200},"requiredMessage":{"type":"string","maxLength":200},"minLength":{"type":"integer","minimum":0,"maximum":2000},"maxLength":{"type":"integer","minimum":1,"maximum":2000},"always":{"type":"boolean"},"readOnly":{"type":"boolean"},"group":{"type":"string","maxLength":100},"groupCollapsed":{"type":"boolean"}},"required":["type","key"]},"FieldsItemVariant21":{"type":"object","properties":{"type":{"type":"string","enum":["company"]},"key":{"type":"string","minLength":1,"maxLength":64,"pattern":"^[a-zA-Z][a-zA-Z0-9_]*$"},"label":{"default":"","type":"string","maxLength":200},"required":{"default":false,"type":"boolean"},"when":{"$ref":"#/components/schemas/When3"},"placeholder":{"type":"string","maxLength":200},"helpText":{"type":"string","maxLength":300},"className":{"type":"string","maxLength":100,"pattern":"^[\\w -]*$"},"saveTo":{"type":"string","pattern":"^[A-Za-z][A-Za-z0-9_]{0,63}$"},"attributes":{"type":"object","additionalProperties":{"type":"string","maxLength":200,"pattern":"^[^\\r\\n]*$"}},"pattern":{"type":"string","maxLength":200},"validationMessage":{"type":"string","maxLength":200},"requiredMessage":{"type":"string","maxLength":200},"minLength":{"type":"integer","minimum":0,"maximum":2000},"maxLength":{"type":"integer","minimum":1,"maximum":2000},"always":{"type":"boolean"},"readOnly":{"type":"boolean"},"group":{"type":"string","maxLength":100},"groupCollapsed":{"type":"boolean"}},"required":["type","key"]},"FieldsItemVariant22":{"type":"object","properties":{"type":{"type":"string","enum":["consent_email"]},"key":{"type":"string","minLength":1,"maxLength":64,"pattern":"^[a-zA-Z][a-zA-Z0-9_]*$"},"label":{"default":"","type":"string","maxLength":200},"required":{"default":false,"type":"boolean"},"when":{"$ref":"#/components/schemas/When3"},"disclosureText":{"type":"string","minLength":10,"maxLength":4000},"disclosureVersion":{"type":"string","minLength":1,"maxLength":64},"privacyUrl":{"type":"string","maxLength":2000,"format":"uri"}},"required":["type","key","disclosureText","disclosureVersion"]},"FieldsItemVariant23":{"type":"object","properties":{"type":{"type":"string","enum":["consent_sms"]},"key":{"type":"string","minLength":1,"maxLength":64,"pattern":"^[a-zA-Z][a-zA-Z0-9_]*$"},"label":{"default":"","type":"string","maxLength":200},"required":{"default":false,"type":"boolean"},"when":{"$ref":"#/components/schemas/When3"},"disclosureText":{"type":"string","minLength":10,"maxLength":4000},"disclosureVersion":{"type":"string","minLength":1,"maxLength":64},"privacyUrl":{"type":"string","maxLength":2000,"format":"uri"}},"required":["type","key","disclosureText","disclosureVersion"]},"Success":{"default":{"type":"message","text":"Thanks!"},"oneOf":[{"$ref":"#/components/schemas/SuccessVariant"},{"type":"object","properties":{"type":{"type":"string","enum":["redirect"]},"url":{"type":"string","pattern":"^https?:\\/\\/"}},"required":["type","url"]},{"$ref":"#/components/schemas/SuccessVariant2"},{"$ref":"#/components/schemas/SuccessVariant3"}]},"SuccessVariant":{"type":"object","properties":{"type":{"type":"string","enum":["message"]},"text":{"type":"string","maxLength":1000},"title":{"type":"string","maxLength":200}},"required":["type","text"]},"SuccessVariant2":{"type":"object","properties":{"type":{"type":"string","enum":["download"]},"url":{"type":"string","maxLength":2048,"pattern":"^https?:\\/\\/"},"assetId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"text":{"type":"string","maxLength":1000}},"required":["type"]},"SuccessVariant3":{"type":"object","properties":{"type":{"type":"string","enum":["coupon"]},"code":{"default":"","type":"string","maxLength":64},"poolId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"text":{"type":"string","maxLength":1000}},"required":["type"]},"DoubleOptIn":{"type":"object","properties":{"connectionId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"subject":{"default":"Please confirm your subscription","type":"string","maxLength":200},"ttlHours":{"default":72,"type":"integer","minimum":1,"maximum":720},"body":{"type":"string","maxLength":2000},"templateId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},"required":["connectionId"]},"SubmissionLimit":{"type":"object","properties":{"max":{"type":"integer","minimum":1,"maximum":10000000},"message":{"default":"This form is no longer accepting responses.","type":"string","maxLength":300}},"required":["max"]},"WelcomeEmail":{"type":"object","properties":{"connectionId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"subject":{"type":"string","minLength":1,"maxLength":200},"text":{"type":"string","minLength":1,"maxLength":5000}},"required":["connectionId","subject","text"]},"Targeting":{"default":{},"type":"object","properties":{"urlInclude":{"maxItems":50,"type":"array","items":{"type":"string","maxLength":500}},"urlExclude":{"maxItems":50,"type":"array","items":{"type":"string","maxLength":500}},"delaySeconds":{"type":"number","minimum":0,"maximum":3600},"scrollPercent":{"type":"number","minimum":0,"maximum":100},"exitIntent":{"type":"boolean"},"mobileBackExit":{"type":"boolean"},"inactivitySeconds":{"type":"number","minimum":1,"maximum":3600},"device":{"type":"string","enum":["all","desktop","mobile"]},"visitor":{"type":"string","enum":["all","new","returning"]},"minPageViews":{"type":"integer","minimum":1,"maximum":100},"frequencyDays":{"type":"number","minimum":0,"maximum":365},"audience":{"$ref":"#/components/schemas/Audience5"},"hideKnownSubscribers":{"type":"boolean"},"countries":{"maxItems":250,"type":"array","items":{"type":"string","pattern":"^[A-Z]{2}$"}},"countriesExclude":{"maxItems":250,"type":"array","items":{"type":"string","pattern":"^[A-Z]{2}$"}},"utm":{"type":"object","properties":{"source":{"type":"string","maxLength":100},"medium":{"type":"string","maxLength":100},"campaign":{"type":"string","maxLength":100}}},"referrerInclude":{"maxItems":20,"type":"array","items":{"type":"string","maxLength":255}},"cart":{"type":"object","properties":{"minValue":{"type":"number","minimum":0},"minItems":{"type":"integer","minimum":0,"maximum":9007199254740991},"empty":{"type":"boolean"}}},"productPage":{"type":"string","enum":["only","never"]}},"additionalProperties":{}},"Audience5":{"type":"object","properties":{"mode":{"default":"show","type":"string","enum":["show","hide"]},"listIds":{"$ref":"#/components/schemas/ListIds4"},"segmentIds":{"$ref":"#/components/schemas/ListIds4"}}},"Targeting2":{"type":"object","properties":{"urlInclude":{"maxItems":50,"type":"array","items":{"type":"string","maxLength":500}},"urlExclude":{"maxItems":50,"type":"array","items":{"type":"string","maxLength":500}},"delaySeconds":{"type":"number","minimum":0,"maximum":3600},"scrollPercent":{"type":"number","minimum":0,"maximum":100},"exitIntent":{"type":"boolean"},"mobileBackExit":{"type":"boolean"},"inactivitySeconds":{"type":"number","minimum":1,"maximum":3600},"device":{"type":"string","enum":["all","desktop","mobile"]},"visitor":{"type":"string","enum":["all","new","returning"]},"minPageViews":{"type":"integer","minimum":1,"maximum":100},"frequencyDays":{"type":"number","minimum":0,"maximum":365},"audience":{"$ref":"#/components/schemas/Audience5"},"hideKnownSubscribers":{"type":"boolean"},"countries":{"maxItems":250,"type":"array","items":{"type":"string","pattern":"^[A-Z]{2}$"}},"countriesExclude":{"maxItems":250,"type":"array","items":{"type":"string","pattern":"^[A-Z]{2}$"}},"utm":{"type":"object","properties":{"source":{"type":"string","maxLength":100},"medium":{"type":"string","maxLength":100},"campaign":{"type":"string","maxLength":100}}},"referrerInclude":{"maxItems":20,"type":"array","items":{"type":"string","maxLength":255}},"cart":{"type":"object","properties":{"minValue":{"type":"number","minimum":0},"minItems":{"type":"integer","minimum":0,"maximum":9007199254740991},"empty":{"type":"boolean"}}},"productPage":{"type":"string","enum":["only","never"]}},"additionalProperties":{}},"GetV1FormsByIdSubmissionsResponse":{"type":"object","properties":{"items":{"$ref":"#/components/schemas/Items23"},"nextCursor":{"nullable":true,"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},"required":["items","nextCursor"],"additionalProperties":false},"Items23":{"type":"array","items":{"$ref":"#/components/schemas/ItemsItem74"}},"ItemsItem74":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"formId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"profileId":{"nullable":true,"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"createdAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"}},"required":["id","formId","profileId","createdAt"],"additionalProperties":{}},"PostPFByRefUploadResponse":{"type":"object","properties":{"url":{"type":"string"},"filename":{"type":"string"},"bytes":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["url","filename","bytes"],"additionalProperties":false},"PostIngestV1FormsByIdSubmitBody":{"type":"object","properties":{"data":{"type":"object","additionalProperties":{}},"startedAt":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"website":{"type":"string","maxLength":500},"anonymousId":{"type":"string","minLength":1,"maxLength":128},"pageUrl":{"type":"string","maxLength":2048},"turnstileToken":{"type":"string","maxLength":4096},"captchaToken":{"type":"string","maxLength":4096},"prefillToken":{"type":"string","maxLength":2048},"step":{"type":"integer","minimum":0,"maximum":9},"stepToken":{"type":"string","maxLength":2048}},"required":["data"]},"PostIngestV1FormsByIdSubmitResponse":{"type":"object","properties":{"ok":{"type":"boolean","enum":[true]},"success":{"$ref":"#/components/schemas/Success2"},"pendingConfirmation":{"type":"boolean"},"outcome":{"type":"string","enum":["success","already_subscribed"]},"spin":{"type":"object","properties":{"index":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["index"],"additionalProperties":false},"stepToken":{"type":"string"}},"required":["ok","success","pendingConfirmation"],"additionalProperties":false},"Success2":{"oneOf":[{"$ref":"#/components/schemas/SuccessVariant4"},{"$ref":"#/components/schemas/SuccessVariant5"},{"$ref":"#/components/schemas/SuccessVariant6"},{"$ref":"#/components/schemas/SuccessVariant7"}]},"SuccessVariant4":{"type":"object","properties":{"type":{"type":"string","enum":["message"]},"text":{"type":"string","maxLength":1000},"title":{"type":"string","maxLength":200}},"required":["type","text"],"additionalProperties":false},"SuccessVariant5":{"type":"object","properties":{"type":{"type":"string","enum":["redirect"]},"url":{"type":"string","pattern":"^https?:\\/\\/"}},"required":["type","url"],"additionalProperties":false},"SuccessVariant6":{"type":"object","properties":{"type":{"type":"string","enum":["download"]},"url":{"type":"string","maxLength":2048,"pattern":"^https?:\\/\\/"},"assetId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"text":{"type":"string","maxLength":1000}},"required":["type"],"additionalProperties":false},"SuccessVariant7":{"type":"object","properties":{"type":{"type":"string","enum":["coupon"]},"code":{"default":"","type":"string","maxLength":64},"poolId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"text":{"type":"string","maxLength":1000}},"required":["type","code"],"additionalProperties":false},"Items24":{"type":"array","items":{"$ref":"#/components/schemas/ItemsItem75"}},"ItemsItem75":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"name":{"type":"string"},"slug":{"type":"string","pattern":"^[a-z0-9][a-z0-9-]{0,62}$"},"status":{"type":"string","enum":["draft","published"]},"publishedAt":{"nullable":true,"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"}},"required":["id","name","slug","status","publishedAt"],"additionalProperties":{}},"Redirect":{"nullable":true,"type":"object","properties":{"url":{"type":"string","maxLength":2048,"format":"uri"},"status":{"default":302,"anyOf":[{"type":"number","enum":[301]},{"type":"number","enum":[302]}]}},"required":["url"]},"PatchV1LandingPagesByIdBody":{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":200},"slug":{"type":"string","pattern":"^[a-z0-9][a-z0-9-]{0,62}$"},"seoTitle":{"type":"string","maxLength":120},"seoDescription":{"type":"string","maxLength":320},"doc":{"$ref":"#/components/schemas/Doc"},"formId":{"nullable":true,"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"folderId":{"nullable":true,"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"locale":{"nullable":true,"type":"string","pattern":"^[a-z]{2,3}(-[A-Za-z0-9]{2,8})?$"},"noindex":{"type":"boolean"},"headScripts":{"nullable":true,"type":"string","maxLength":10000},"redirect":{"$ref":"#/components/schemas/Redirect"},"unpublishAt":{"nullable":true,"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"}}},"Devices":{"type":"array","items":{"$ref":"#/components/schemas/DevicesItem"}},"DevicesItem":{"type":"object","properties":{"key":{"type":"string"},"visits":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["key","visits"],"additionalProperties":false},"ItemsItem76":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"pageId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"kind":{"type":"string","enum":["draft","published"]},"createdAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"}},"required":["id","pageId","kind","createdAt"],"additionalProperties":{}},"ItemsItem77":{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":120},"parentId":{"nullable":true,"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},"required":["name"]},"Patch2":{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":120},"parentId":{"nullable":true,"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}},"Items25":{"type":"array","items":{"$ref":"#/components/schemas/ItemsItem78"}},"ItemsItem78":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"name":{"type":"string"},"parentId":{"nullable":true,"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"itemCount":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["id","name","parentId","itemCount"],"additionalProperties":false},"ItemsItem79":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"folderId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"name":{"type":"string"},"parentId":{"nullable":true,"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"createdAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"}},"required":["id","folderId","name","parentId","createdAt"],"additionalProperties":false},"GetIngestV1ReviewValuesReportsResponse":{"type":"object","properties":{"items":{"$ref":"#/components/schemas/Items26"},"nextCursor":{"nullable":true,"type":"string"}},"required":["items","nextCursor"],"additionalProperties":false},"Items26":{"type":"array","items":{"$ref":"#/components/schemas/ItemsItem80"}},"ItemsItem80":{"type":"object","properties":{"productId":{"type":"string"},"count":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"average":{"type":"number"},"histogram":{"type":"object","additionalProperties":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}}},"required":["productId","count","average","histogram"],"additionalProperties":false},"Errors2":{"type":"array","items":{"$ref":"#/components/schemas/ErrorsItem2"}},"ErrorsItem2":{"type":"object","properties":{"row":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"error":{"type":"string"}},"required":["row","error"],"additionalProperties":false},"ItemsItem81":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"profileId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"status":{"type":"string","enum":["new","contacted","replied","interested","meeting_booked","won","lost","not_interested","bounced","unsubscribed","do_not_contact"]},"ownerUserId":{"nullable":true,"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"companyObjectId":{"nullable":true,"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"domain":{"nullable":true,"type":"string"},"title":{"nullable":true,"type":"string"},"linkedinUrl":{"nullable":true,"type":"string"},"website":{"nullable":true,"type":"string"},"lastContactedAt":{"nullable":true,"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"lastSequenceId":{"nullable":true,"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"enrichment":{"type":"object","additionalProperties":{}},"dealValueCents":{"nullable":true,"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"createdAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"updatedAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"profile":{"$ref":"#/components/schemas/Profile2"}},"required":["id","profileId","status","ownerUserId","companyObjectId","domain","title","linkedinUrl","website","lastContactedAt","lastSequenceId","enrichment","createdAt","updatedAt","profile"],"additionalProperties":false},"Profile2":{"nullable":true,"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"name":{"nullable":true,"type":"string"},"email":{"nullable":true,"type":"string"}},"required":["id","name","email"],"additionalProperties":false},"ItemsItem82":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"name":{"type":"string"},"purpose":{"type":"string","enum":["marketing","prospecting","transactional","operational"]},"mode":{"type":"string","enum":["sequence"]},"status":{"type":"string","enum":["draft","live","paused","archived"]},"publishedVersionId":{"nullable":true,"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"folder":{"nullable":true,"type":"string"},"tags":{"type":"array","items":{"type":"string"}},"sequence":{"$ref":"#/components/schemas/Sequence2"},"createdAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"updatedAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"}},"required":["id","name","purpose","mode","status","publishedVersionId","folder","tags","sequence","createdAt","updatedAt"],"additionalProperties":false},"ProfileIds6":{"default":[],"maxItems":1000,"type":"array","items":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},"PostV1OutboundSequencesByIdEnrollResponse":{"type":"object","properties":{"enrolled":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"skipped":{"$ref":"#/components/schemas/Skipped"},"warnings":{"$ref":"#/components/schemas/Warnings"}},"required":["enrolled","skipped","warnings"],"additionalProperties":false},"Warnings":{"type":"array","items":{"$ref":"#/components/schemas/WarningsItem"}},"WarningsItem":{"type":"object","properties":{"profileId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"warning":{"type":"string"}},"required":["profileId","warning"],"additionalProperties":false},"GetV1OutboundInboxResponse":{"type":"object","properties":{"items":{"$ref":"#/components/schemas/Items27"},"nextCursor":{"nullable":true,"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},"required":["items","nextCursor"],"additionalProperties":false},"Items27":{"type":"array","items":{"$ref":"#/components/schemas/ItemsItem83"}},"ItemsItem83":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"connectionId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"fromAddr":{"type":"string"},"toAddr":{"type":"string"},"subject":{"nullable":true,"type":"string"},"text":{"nullable":true,"type":"string"},"receivedAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"profileId":{"nullable":true,"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"classification":{"nullable":true,"type":"string"},"classificationSource":{"nullable":true,"type":"string"},"oooUntil":{"nullable":true,"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"readAt":{"nullable":true,"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"assignedUserId":{"nullable":true,"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"archived":{"type":"boolean"},"sourceKind":{"nullable":true,"type":"string"},"sourceId":{"nullable":true,"type":"string"},"stepKey":{"nullable":true,"type":"string"},"meta":{"$ref":"#/components/schemas/Meta"},"profile":{"$ref":"#/components/schemas/Profile2"}},"required":["id","connectionId","fromAddr","toAddr","subject","text","receivedAt","profileId","classification","classificationSource","oooUntil","readAt","assignedUserId","archived","sourceKind","sourceId","stepKey","meta","profile"],"additionalProperties":false},"Meta":{"nullable":true,"type":"object","properties":{"category":{"type":"string","enum":["positive","negative","neutral","ooo","auto_reply","bounce","unsubscribe","meeting","wrong_person"]},"confidence":{"type":"number"},"source":{"type":"string","enum":["rule","llm","manual"]},"labels":{"type":"array","items":{"type":"string"}},"snoozedUntil":{"nullable":true,"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"oooUntil":{"nullable":true,"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"referral":{"nullable":true,"type":"object","properties":{"name":{"type":"string"},"email":{"type":"string"}},"required":["email"],"additionalProperties":false},"machineCategory":{"nullable":true,"type":"string","enum":["positive","negative","neutral","ooo","auto_reply","bounce","unsubscribe","meeting","wrong_person"]},"important":{"type":"boolean"},"ignored":{"type":"boolean"},"remindAt":{"nullable":true,"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"latencySec":{"nullable":true,"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["category","confidence","source","labels","snoozedUntil","oooUntil","referral","machineCategory"],"additionalProperties":false},"GetV1OutboundInboxByIdThreadResponse":{"type":"object","properties":{"profileId":{"nullable":true,"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"items":{"$ref":"#/components/schemas/Items28"}},"required":["profileId","items"],"additionalProperties":false},"Items28":{"type":"array","items":{"$ref":"#/components/schemas/ItemsItem84"}},"ItemsItem84":{"type":"object","properties":{"kind":{"type":"string","enum":["sent","received"]},"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"at":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"subject":{"nullable":true,"type":"string"},"text":{"nullable":true,"type":"string"},"status":{"nullable":true,"type":"string"},"connectionId":{"nullable":true,"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"stepKey":{"nullable":true,"type":"string"},"classification":{"nullable":true,"type":"string"}},"required":["kind","id","at","subject","text","status","connectionId","stepKey","classification"],"additionalProperties":false},"PostV1OutboundInboxByIdAssignBody":{"type":"object","properties":{"assigneeUserId":{"nullable":true,"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},"required":["assigneeUserId"]},"Enroll":{"nullable":true,"type":"object","properties":{"enrolled":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"skipped":{"$ref":"#/components/schemas/Skipped"},"warnings":{"$ref":"#/components/schemas/Warnings"}},"required":["enrolled","skipped","warnings"],"additionalProperties":false},"GetV1OutboundTasksResponse":{"type":"object","properties":{"items":{"$ref":"#/components/schemas/Items29"},"nextCursor":{"nullable":true,"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},"required":["items","nextCursor"],"additionalProperties":false},"Items29":{"type":"array","items":{"$ref":"#/components/schemas/ItemsItem85"}},"ItemsItem85":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"kind":{"type":"string","enum":["call","linkedin_visit","linkedin_connect","linkedin_message","sms","whatsapp","manual_email","reply_received","custom"]},"profileId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"enrollmentId":{"nullable":true,"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"nodeId":{"nullable":true,"type":"string"},"assigneeUserId":{"nullable":true,"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"title":{"type":"string"},"notes":{"nullable":true,"type":"string"},"outcome":{"nullable":true,"type":"string"},"durationSec":{"nullable":true,"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"recordingUrl":{"nullable":true,"type":"string"},"transcript":{"nullable":true,"type":"string"},"externalId":{"nullable":true,"type":"string"},"dueAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"status":{"type":"string","enum":["open","done","skipped"]},"completedAt":{"nullable":true,"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"typeId":{"nullable":true,"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"companyId":{"nullable":true,"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"contactIds":{"$ref":"#/components/schemas/Conflicts"},"plannedMin":{"nullable":true,"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"remindBeforeMin":{"nullable":true,"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"voicemailClipId":{"nullable":true,"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"createdAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"updatedAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"profile":{"$ref":"#/components/schemas/Profile2"}},"required":["id","kind","profileId","enrollmentId","nodeId","assigneeUserId","title","notes","outcome","dueAt","status","completedAt","createdAt","updatedAt","profile"],"additionalProperties":false},"PostV1OutboundTasksByIdCompleteBody":{"type":"object","properties":{"notes":{"type":"string","maxLength":5000},"outcome":{"type":"string","minLength":1,"maxLength":40},"durationSec":{"type":"integer","minimum":0,"maximum":86400},"recordingUrl":{"type":"string","maxLength":1000,"format":"uri"},"externalId":{"type":"string","maxLength":200}}},"PostV1OutboundMeetingsResponse":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"profileId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"source":{"type":"string","enum":["calendar_link","reply_detected","manual"]},"at":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"ref":{"nullable":true,"type":"string"},"sequenceId":{"nullable":true,"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"createdAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"completedAt":{"nullable":true,"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"outcome":{"nullable":true,"type":"string"}},"required":["id","profileId","source","at","ref","sequenceId","createdAt"],"additionalProperties":false},"ItemsItem86":{"type":"object","properties":{"connectionId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"name":{"type":"string"},"status":{"type":"string"},"health":{"type":"string"},"dailyCap":{"nullable":true,"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"hourlyCap":{"nullable":true,"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"ramp":{"$ref":"#/components/schemas/Ramp"},"timezone":{"nullable":true,"type":"string"},"sendingWindow":{"$ref":"#/components/schemas/SendingWindow"},"pacing":{"$ref":"#/components/schemas/Pacing"},"sentToday":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"bounceRate7d":{"type":"number"},"replyRate7d":{"type":"number"},"totals":{"$ref":"#/components/schemas/Totals"},"factors":{"$ref":"#/components/schemas/Factors"},"pause":{"nullable":true,"type":"string"},"history":{"$ref":"#/components/schemas/History"}},"required":["connectionId","name","status","health","dailyCap","hourlyCap","ramp","timezone","sendingWindow","pacing","sentToday","bounceRate7d","replyRate7d","totals","factors","pause","history"],"additionalProperties":false},"Ramp":{"nullable":true,"type":"object","properties":{"startDaily":{"type":"integer","minimum":1,"maximum":100000},"targetDaily":{"type":"integer","minimum":1,"maximum":100000},"incrementPerDay":{"type":"integer","minimum":1,"maximum":10000},"startedOn":{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"}},"required":["startDaily","targetDaily","incrementPerDay","startedOn"],"additionalProperties":false},"SendingWindow":{"nullable":true,"type":"object","properties":{"startMin":{"type":"integer","minimum":0,"maximum":1440},"endMin":{"type":"integer","minimum":0,"maximum":1440},"weekdays":{"type":"array","items":{"type":"integer","minimum":1,"maximum":7}}},"required":["startMin","endMin"],"additionalProperties":false},"Pacing":{"nullable":true,"type":"object","properties":{"minGapSec":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"jitterSec":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["minGapSec","jitterSec"],"additionalProperties":false},"Totals":{"type":"object","properties":{"sent":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"bounced":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"complaints":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"replied":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["sent","bounced","complaints","replied"],"additionalProperties":false},"Factors":{"type":"array","items":{"$ref":"#/components/schemas/FactorsItem"}},"FactorsItem":{"type":"object","properties":{"key":{"type":"string"},"ok":{"type":"boolean"},"value":{"nullable":true,"anyOf":[{"type":"number"},{"type":"string"}]},"limit":{"anyOf":[{"type":"number"},{"type":"string"}]}},"required":["key","ok","value"],"additionalProperties":false},"History":{"type":"array","items":{"$ref":"#/components/schemas/HistoryItem"}},"HistoryItem":{"type":"object","properties":{"day":{"type":"string"},"sent":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"bounced":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"replied":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"complaints":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"opens":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"clicks":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["day","sent","bounced","replied","complaints","opens","clicks"],"additionalProperties":false},"PatchV1OutboundMailboxesByIdBody":{"type":"object","properties":{"dailyCap":{"nullable":true,"type":"integer","minimum":1,"maximum":100000},"hourlyCap":{"nullable":true,"type":"integer","minimum":1,"maximum":10000},"ramp":{"$ref":"#/components/schemas/Ramp2"},"timezone":{"nullable":true,"type":"string","maxLength":64},"sendingWindow":{"$ref":"#/components/schemas/SendingWindow2"},"pacing":{"$ref":"#/components/schemas/Pacing2"}}},"Ramp2":{"nullable":true,"type":"object","properties":{"startDaily":{"type":"integer","minimum":1,"maximum":100000},"targetDaily":{"type":"integer","minimum":1,"maximum":100000},"incrementPerDay":{"type":"integer","minimum":1,"maximum":10000},"startedOn":{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"}},"required":["startDaily","targetDaily","incrementPerDay","startedOn"]},"SendingWindow2":{"nullable":true,"type":"object","properties":{"startMin":{"type":"integer","minimum":0,"maximum":1440},"endMin":{"type":"integer","minimum":0,"maximum":1440},"weekdays":{"type":"array","items":{"type":"integer","minimum":1,"maximum":7}}},"required":["startMin","endMin"]},"Pacing2":{"nullable":true,"type":"object","properties":{"minGapSec":{"type":"integer","minimum":0,"maximum":3600},"jitterSec":{"type":"integer","minimum":0,"maximum":3600}},"required":["minGapSec","jitterSec"]},"GetV1AnalyticsAttributionSettingsResponse":{"type":"object","properties":{"conversionEvent":{"type":"string","minLength":1,"maxLength":128},"conversions":{"$ref":"#/components/schemas/Conversions2"},"touchBasis":{"type":"string","enum":["delivery","open","click"]},"viewThrough":{"type":"boolean"},"windowDeliveryHours":{"type":"integer","minimum":1,"maximum":2160},"windowClickHours":{"type":"integer","minimum":1,"maximum":2160},"windowOpenHours":{"type":"integer","minimum":1,"maximum":2160},"windowSmsClickHours":{"type":"integer","minimum":1,"maximum":2160},"model":{"type":"string","enum":["first_touch","last_touch","linear","u_shaped","w_shaped","full_path","time_decay","j_shaped","inverse_j"]}},"required":["conversionEvent","conversions","touchBasis","viewThrough","windowDeliveryHours","windowClickHours","windowOpenHours","windowSmsClickHours","model"],"additionalProperties":false},"Conversions2":{"maxItems":20,"type":"array","items":{"$ref":"#/components/schemas/ConversionsItem"}},"ConversionsItem":{"type":"object","properties":{"label":{"type":"string","minLength":1,"maxLength":64},"event":{"type":"string","minLength":1,"maxLength":128},"valueProperty":{"nullable":true,"type":"string","minLength":1,"maxLength":128},"targetMinor":{"nullable":true,"type":"integer","minimum":0,"maximum":9007199254740991},"folder":{"nullable":true,"type":"string","minLength":1,"maxLength":64}},"required":["label","event"],"additionalProperties":false},"ConversionsItem2":{"type":"object","properties":{"label":{"type":"string","minLength":1,"maxLength":64},"event":{"type":"string","minLength":1,"maxLength":128},"valueProperty":{"nullable":true,"type":"string","minLength":1,"maxLength":128},"targetMinor":{"nullable":true,"type":"integer","minimum":0,"maximum":9007199254740991},"folder":{"nullable":true,"type":"string","minLength":1,"maxLength":64}},"required":["label","event"]},"Items30":{"type":"array","items":{"$ref":"#/components/schemas/ItemsItem87"}},"ItemsItem87":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"profileId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"ref":{"type":"string"},"eventId":{"nullable":true,"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"goalKey":{"type":"string"},"attributedKind":{"nullable":true,"type":"string"},"attributedId":{"nullable":true,"type":"string"},"jobId":{"nullable":true,"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"channel":{"nullable":true,"type":"string"},"variantKey":{"nullable":true,"type":"string"},"stepKey":{"nullable":true,"type":"string"},"model":{"type":"string"},"windowHours":{"nullable":true,"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"valueMinor":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"currency":{"nullable":true,"type":"string"},"touchAt":{"nullable":true,"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"at":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"}},"required":["id","profileId","ref","eventId","goalKey","attributedKind","attributedId","jobId","channel","variantKey","stepKey","model","windowHours","valueMinor","currency","touchAt","at"],"additionalProperties":false},"GetV1AnalyticsConversionLabelsResponse":{"type":"object","properties":{"main":{"type":"string"},"items":{"$ref":"#/components/schemas/Items31"}},"required":["main","items"],"additionalProperties":false},"Items31":{"type":"array","items":{"$ref":"#/components/schemas/ConversionsItem"}},"ByDay":{"type":"array","items":{"$ref":"#/components/schemas/ByDayItem"}},"ByDayItem":{"type":"object","properties":{"day":{"type":"string"},"revenueMinor":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["day","revenueMinor"],"additionalProperties":false},"TopCampaigns":{"type":"array","items":{"$ref":"#/components/schemas/TopCampaignsItem"}},"TopCampaignsItem":{"type":"object","properties":{"id":{"type":"string"},"counts":{"$ref":"#/components/schemas/Counts"},"revenueMinor":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"conversions":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["id","counts","revenueMinor","conversions"],"additionalProperties":false},"Points":{"type":"array","items":{"$ref":"#/components/schemas/PointsItem"}},"PointsItem":{"type":"object","properties":{"day":{"type":"string"},"count":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["day","count"],"additionalProperties":false},"ItemsItem88":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"name":{"type":"string"},"query":{"$ref":"#/components/schemas/Query"},"createdAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"schedule":{"nullable":true,"type":"string","enum":["daily","weekly","monthly"]},"recipients":{"type":"array","items":{"type":"string"}},"rollingDays":{"nullable":true,"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"sheetId":{"nullable":true,"type":"string"},"lastSentAt":{"nullable":true,"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"ownerId":{"default":null,"nullable":true,"type":"string"},"visibility":{"default":"shared","type":"string","enum":["shared","private"]}},"required":["id","name","query","createdAt","schedule","recipients","rollingDays","sheetId","lastSentAt","ownerId","visibility"],"additionalProperties":false},"Query":{"oneOf":[{"$ref":"#/components/schemas/QueryVariant"},{"$ref":"#/components/schemas/QueryVariant2"},{"$ref":"#/components/schemas/QueryVariant3"},{"$ref":"#/components/schemas/QueryVariant4"},{"$ref":"#/components/schemas/QueryVariant5"},{"$ref":"#/components/schemas/QueryVariant6"}]},"QueryVariant":{"type":"object","properties":{"kind":{"type":"string","enum":["messages"]},"from":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},"to":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},"groupBy":{"default":"day","type":"string","enum":["day","channel","source","variant"]},"sourceKind":{"type":"string","maxLength":64},"sourceId":{"type":"string","maxLength":128},"channel":{"type":"string","enum":["email","sms","whatsapp","push","postcard"]},"includeMachineOpens":{"type":"boolean"}},"required":["kind","from","to","groupBy"],"additionalProperties":false},"QueryVariant2":{"type":"object","properties":{"kind":{"type":"string","enum":["revenue"]},"from":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},"to":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},"groupBy":{"default":"campaign","type":"string","enum":["campaign","flow","variant","node","channel","day","conversion"]},"channel":{"type":"string","enum":["email","sms","whatsapp","push","postcard"]},"goal":{"type":"string","maxLength":128}},"required":["kind","from","to","groupBy"],"additionalProperties":false},"QueryVariant3":{"type":"object","properties":{"kind":{"type":"string","enum":["engagement"]},"from":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},"to":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},"by":{"default":"client","type":"string","enum":["country","client","device"]},"metric":{"default":"open","type":"string","enum":["open","click"]},"sourceKind":{"type":"string","maxLength":64},"sourceId":{"type":"string","maxLength":128}},"required":["kind","from","to","by","metric"],"additionalProperties":false},"QueryVariant4":{"type":"object","properties":{"kind":{"type":"string","enum":["builder"]},"from":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},"to":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},"metrics":{"$ref":"#/components/schemas/Metrics"},"dimensions":{"default":[],"maxItems":3,"type":"array","items":{"type":"string","enum":["day","channel","source_kind","source","variant","connection"]}},"filters":{"$ref":"#/components/schemas/Filters3"},"includeMachineOpens":{"type":"boolean"}},"required":["kind","from","to","metrics","dimensions","filters"],"additionalProperties":false},"Metrics":{"minItems":1,"maxItems":12,"type":"array","items":{"type":"string","enum":["queued","sent","delivered","bounced","complained","failed","opened","opened_unique","clicked","clicked_unique","replied","unsubscribed"]}},"Filters3":{"default":[],"maxItems":10,"type":"array","items":{"$ref":"#/components/schemas/FiltersItem3"}},"FiltersItem3":{"type":"object","properties":{"dim":{"type":"string","enum":["day","channel","source_kind","source","variant","connection"]},"values":{"minItems":1,"maxItems":50,"type":"array","items":{"type":"string","maxLength":160}}},"required":["dim","values"],"additionalProperties":false},"QueryVariant5":{"type":"object","properties":{"kind":{"type":"string","enum":["records"]},"source":{"type":"string","enum":["contacts","companies","form_results","page_hits","asset_downloads","workflow_log","point_log","frequency_rules"]},"from":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},"to":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},"columns":{"minItems":1,"maxItems":20,"type":"array","items":{"type":"string","minLength":1,"maxLength":64}},"filters":{"$ref":"#/components/schemas/Filters4"},"orderBy":{"$ref":"#/components/schemas/OrderBy"},"limit":{"default":500,"type":"integer","minimum":1,"maximum":2000}},"required":["kind","source","from","to","columns","filters","limit"],"additionalProperties":false},"Filters4":{"default":[],"maxItems":10,"type":"array","items":{"$ref":"#/components/schemas/FiltersItem4"}},"FiltersItem4":{"type":"object","properties":{"column":{"type":"string","minLength":1,"maxLength":64},"op":{"type":"string","enum":["eq","neq","contains","gt","lt","empty","not_empty"]},"value":{"default":"","type":"string","maxLength":200}},"required":["column","op","value"],"additionalProperties":false},"OrderBy":{"type":"object","properties":{"column":{"type":"string","minLength":1,"maxLength":64},"dir":{"default":"desc","type":"string","enum":["asc","desc"]}},"required":["column","dir"],"additionalProperties":false},"QueryVariant6":{"type":"object","properties":{"kind":{"type":"string","enum":["reporting"]},"from":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},"to":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},"query":{"$ref":"#/components/schemas/Query2"}},"required":["kind","from","to","query"],"additionalProperties":false},"Query2":{"type":"object","properties":{"source":{"type":"string","enum":["campaign","workflow","form","segment"]},"ids":{"maxItems":20,"type":"array","items":{"type":"string","minLength":1,"maxLength":128}},"statistics":{"$ref":"#/components/schemas/Statistics"},"conversionMetric":{"type":"string","minLength":1,"maxLength":128},"groupBy":{"default":"source","type":"string","enum":["source","channel","variant","message","template","provider","tag","list","segment","version"]},"sendChannels":{"minItems":1,"maxItems":5,"type":"array","items":{"type":"string","enum":["email","sms","whatsapp","push","postcard"]}},"messageIds":{"minItems":1,"maxItems":50,"type":"array","items":{"type":"string","minLength":1,"maxLength":128}},"campaignFilter":{"$ref":"#/components/schemas/CampaignFilter"},"compareToPrevious":{"default":false,"type":"boolean"}},"required":["source","statistics","groupBy","compareToPrevious"],"additionalProperties":false},"Statistics":{"minItems":1,"maxItems":30,"type":"array","items":{"type":"string","enum":["queued","sent","delivered","bounced","complained","failed","opened","opened_unique","clicked","clicked_unique","replied","unsubscribed","delivery_rate","open_rate","click_rate","click_to_open_rate","bounce_rate","complaint_rate","unsubscribe_rate","conversions","conversion_value_minor","conversion_rate","revenue_per_recipient_minor","views","views_unique","qualified_views","qualified_views_unique","submissions","submissions_unique","submit_rate","qualified_submit_rate","closed","closed_unique","size","size_change","growth_rate","members_added","members_removed"]}},"CampaignFilter":{"type":"object","properties":{"tags":{"default":[],"maxItems":20,"type":"array","items":{"type":"string","minLength":1,"maxLength":64}},"listIds":{"default":[],"maxItems":20,"type":"array","items":{"type":"string","minLength":1,"maxLength":128}},"segmentIds":{"default":[],"maxItems":20,"type":"array","items":{"type":"string","minLength":1,"maxLength":128}}},"required":["tags","listIds","segmentIds"],"additionalProperties":false},"Query3":{"oneOf":[{"$ref":"#/components/schemas/QueryVariant7"},{"$ref":"#/components/schemas/QueryVariant8"},{"$ref":"#/components/schemas/QueryVariant9"},{"$ref":"#/components/schemas/QueryVariant10"},{"$ref":"#/components/schemas/QueryVariant11"},{"$ref":"#/components/schemas/QueryVariant12"}]},"QueryVariant7":{"type":"object","properties":{"kind":{"type":"string","enum":["messages"]},"from":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}(?:[T ]\\d{2}:\\d{2}(?::\\d{2}(?:\\.\\d+)?)?(?:Z|[+-]\\d{2}:?\\d{2})?)?$","format":"date"},"to":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}(?:[T ]\\d{2}:\\d{2}(?::\\d{2}(?:\\.\\d+)?)?(?:Z|[+-]\\d{2}:?\\d{2})?)?$","format":"date"},"groupBy":{"default":"day","type":"string","enum":["day","channel","source","variant"]},"sourceKind":{"type":"string","maxLength":64},"sourceId":{"type":"string","maxLength":128},"channel":{"type":"string","enum":["email","sms","whatsapp","push","postcard"]},"includeMachineOpens":{"type":"boolean"}},"required":["kind","from","to"]},"QueryVariant8":{"type":"object","properties":{"kind":{"type":"string","enum":["revenue"]},"from":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}(?:[T ]\\d{2}:\\d{2}(?::\\d{2}(?:\\.\\d+)?)?(?:Z|[+-]\\d{2}:?\\d{2})?)?$","format":"date"},"to":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}(?:[T ]\\d{2}:\\d{2}(?::\\d{2}(?:\\.\\d+)?)?(?:Z|[+-]\\d{2}:?\\d{2})?)?$","format":"date"},"groupBy":{"default":"campaign","type":"string","enum":["campaign","flow","variant","node","channel","day","conversion"]},"channel":{"type":"string","enum":["email","sms","whatsapp","push","postcard"]},"goal":{"type":"string","maxLength":128}},"required":["kind","from","to"]},"QueryVariant9":{"type":"object","properties":{"kind":{"type":"string","enum":["engagement"]},"from":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}(?:[T ]\\d{2}:\\d{2}(?::\\d{2}(?:\\.\\d+)?)?(?:Z|[+-]\\d{2}:?\\d{2})?)?$","format":"date"},"to":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}(?:[T ]\\d{2}:\\d{2}(?::\\d{2}(?:\\.\\d+)?)?(?:Z|[+-]\\d{2}:?\\d{2})?)?$","format":"date"},"by":{"default":"client","type":"string","enum":["country","client","device"]},"metric":{"default":"open","type":"string","enum":["open","click"]},"sourceKind":{"type":"string","maxLength":64},"sourceId":{"type":"string","maxLength":128}},"required":["kind","from","to"]},"QueryVariant10":{"type":"object","properties":{"kind":{"type":"string","enum":["builder"]},"from":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}(?:[T ]\\d{2}:\\d{2}(?::\\d{2}(?:\\.\\d+)?)?(?:Z|[+-]\\d{2}:?\\d{2})?)?$","format":"date"},"to":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}(?:[T ]\\d{2}:\\d{2}(?::\\d{2}(?:\\.\\d+)?)?(?:Z|[+-]\\d{2}:?\\d{2})?)?$","format":"date"},"metrics":{"$ref":"#/components/schemas/Metrics"},"dimensions":{"default":[],"maxItems":3,"type":"array","items":{"type":"string","enum":["day","channel","source_kind","source","variant","connection"]}},"filters":{"$ref":"#/components/schemas/Filters5"},"includeMachineOpens":{"type":"boolean"}},"required":["kind","from","to","metrics"]},"Filters5":{"default":[],"maxItems":10,"type":"array","items":{"$ref":"#/components/schemas/FiltersItem5"}},"FiltersItem5":{"type":"object","properties":{"dim":{"type":"string","enum":["day","channel","source_kind","source","variant","connection"]},"values":{"minItems":1,"maxItems":50,"type":"array","items":{"type":"string","maxLength":160}}},"required":["dim","values"]},"QueryVariant11":{"type":"object","properties":{"kind":{"type":"string","enum":["records"]},"source":{"type":"string","enum":["contacts","companies","form_results","page_hits","asset_downloads","workflow_log","point_log","frequency_rules"]},"from":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}(?:[T ]\\d{2}:\\d{2}(?::\\d{2}(?:\\.\\d+)?)?(?:Z|[+-]\\d{2}:?\\d{2})?)?$","format":"date"},"to":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}(?:[T ]\\d{2}:\\d{2}(?::\\d{2}(?:\\.\\d+)?)?(?:Z|[+-]\\d{2}:?\\d{2})?)?$","format":"date"},"columns":{"minItems":1,"maxItems":20,"type":"array","items":{"type":"string","minLength":1,"maxLength":64}},"filters":{"$ref":"#/components/schemas/Filters6"},"orderBy":{"type":"object","properties":{"column":{"type":"string","minLength":1,"maxLength":64},"dir":{"default":"desc","type":"string","enum":["asc","desc"]}},"required":["column"]},"limit":{"default":500,"type":"integer","minimum":1,"maximum":2000}},"required":["kind","source","from","to","columns"]},"Filters6":{"default":[],"maxItems":10,"type":"array","items":{"$ref":"#/components/schemas/FiltersItem6"}},"FiltersItem6":{"type":"object","properties":{"column":{"type":"string","minLength":1,"maxLength":64},"op":{"type":"string","enum":["eq","neq","contains","gt","lt","empty","not_empty"]},"value":{"default":"","type":"string","maxLength":200}},"required":["column","op"]},"QueryVariant12":{"type":"object","properties":{"kind":{"type":"string","enum":["reporting"]},"from":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}(?:[T ]\\d{2}:\\d{2}(?::\\d{2}(?:\\.\\d+)?)?(?:Z|[+-]\\d{2}:?\\d{2})?)?$","format":"date"},"to":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}(?:[T ]\\d{2}:\\d{2}(?::\\d{2}(?:\\.\\d+)?)?(?:Z|[+-]\\d{2}:?\\d{2})?)?$","format":"date"},"query":{"$ref":"#/components/schemas/Query4"}},"required":["kind","from","to","query"]},"Query4":{"type":"object","properties":{"source":{"type":"string","enum":["campaign","workflow","form","segment"]},"ids":{"maxItems":20,"type":"array","items":{"type":"string","minLength":1,"maxLength":128}},"statistics":{"$ref":"#/components/schemas/Statistics"},"conversionMetric":{"type":"string","minLength":1,"maxLength":128},"groupBy":{"default":"source","type":"string","enum":["source","channel","variant","message","template","provider","tag","list","segment","version"]},"sendChannels":{"minItems":1,"maxItems":5,"type":"array","items":{"type":"string","enum":["email","sms","whatsapp","push","postcard"]}},"messageIds":{"minItems":1,"maxItems":50,"type":"array","items":{"type":"string","minLength":1,"maxLength":128}},"campaignFilter":{"$ref":"#/components/schemas/CampaignFilter2"},"compareToPrevious":{"default":false,"type":"boolean"}},"required":["source","statistics"]},"CampaignFilter2":{"type":"object","properties":{"tags":{"default":[],"maxItems":20,"type":"array","items":{"type":"string","minLength":1,"maxLength":64}},"listIds":{"default":[],"maxItems":20,"type":"array","items":{"type":"string","minLength":1,"maxLength":128}},"segmentIds":{"default":[],"maxItems":20,"type":"array","items":{"type":"string","minLength":1,"maxLength":128}}}},"PostV1AnalyticsReportsOwnersBatchUpdateBody":{"type":"object","properties":{"ids":{"$ref":"#/components/schemas/ProfileIds"},"ownerId":{"nullable":true,"type":"string","minLength":1,"maxLength":64}},"required":["ids","ownerId"]},"PatchV1AnalyticsReportsByIdAccessBody":{"type":"object","properties":{"visibility":{"type":"string","enum":["shared","private"]},"sharedWith":{"maxItems":100,"type":"array","items":{"type":"string","minLength":1,"maxLength":100}}},"required":["visibility"]},"PatchV1AnalyticsReportsByIdAccessResponse":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"visibility":{"type":"string","enum":["shared","private"]},"ownerId":{"nullable":true,"type":"string"},"sharedWith":{"type":"array","items":{"type":"string"}}},"required":["id","visibility","ownerId","sharedWith"],"additionalProperties":false},"ItemsItem89":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"name":{"type":"string"},"url":{"type":"string"},"format":{"type":"string","enum":["json","csv","google_merchant"]},"refreshHours":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"lastSyncedAt":{"nullable":true,"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"lastError":{"nullable":true,"type":"string"},"itemCount":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["id","name","url","format","refreshHours","lastSyncedAt","lastError","itemCount"],"additionalProperties":false},"ItemsItem90":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"name":{"type":"string"},"kind":{"type":"string"},"lowStockThreshold":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"total":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"available":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"description":{"nullable":true,"type":"string"},"discountType":{"nullable":true,"type":"string"},"amount":{"nullable":true,"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"target":{"nullable":true,"type":"string"},"startsAt":{"nullable":true,"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"endsAt":{"nullable":true,"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"enabled":{"type":"boolean"},"redemptionUrl":{"nullable":true,"type":"string"},"maxUses":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["id","name","kind","lowStockThreshold","total","available","description","discountType","amount","target","startsAt","endsAt","enabled","redemptionUrl","maxUses"],"additionalProperties":false},"GetV1CouponPoolsByIdCodesResponse":{"type":"object","properties":{"items":{"$ref":"#/components/schemas/Items32"},"nextCursor":{"nullable":true,"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},"required":["items","nextCursor"],"additionalProperties":false},"Items32":{"type":"array","items":{"$ref":"#/components/schemas/ItemsItem91"}},"ItemsItem91":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"poolId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"code":{"type":"string"},"status":{"type":"string","enum":["active","disabled","redeemed"]},"expired":{"type":"boolean"},"expiresAt":{"nullable":true,"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"assignedProfileId":{"nullable":true,"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"assignedAt":{"nullable":true,"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"redeemedAt":{"nullable":true,"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"usageCount":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"redemptionUrl":{"nullable":true,"type":"string"}},"required":["id","poolId","code","status","expired","expiresAt","assignedProfileId","assignedAt","redeemedAt","usageCount","redemptionUrl"],"additionalProperties":false},"Items33":{"type":"array","items":{"$ref":"#/components/schemas/ItemsItem92"}},"ItemsItem92":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"feedId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"externalId":{"type":"string"},"title":{"type":"string"},"description":{"nullable":true,"type":"string"},"url":{"nullable":true,"type":"string"},"imageUrl":{"nullable":true,"type":"string"},"priceMinor":{"nullable":true,"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"currency":{"nullable":true,"type":"string"},"inventory":{"nullable":true,"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"published":{"type":"boolean"},"categories":{"type":"array","items":{"type":"string"}},"variants":{"$ref":"#/components/schemas/Variants3"},"updatedAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"customMetadata":{"nullable":true,"type":"object","additionalProperties":{}},"imageThumbnailUrl":{"nullable":true,"type":"string"},"handle":{"nullable":true,"type":"string"},"type":{"nullable":true,"type":"string"},"vendor":{"nullable":true,"type":"string"},"publishedAtForeign":{"nullable":true,"type":"string"}},"required":["id","feedId","externalId","title","description","url","imageUrl","priceMinor","currency","inventory","published","categories","variants","updatedAt","customMetadata","imageThumbnailUrl","handle","type","vendor","publishedAtForeign"],"additionalProperties":false},"Variants3":{"type":"array","items":{"$ref":"#/components/schemas/VariantsItem4"}},"VariantsItem4":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"itemId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"externalId":{"type":"string"},"sku":{"nullable":true,"type":"string"},"title":{"type":"string"},"priceMinor":{"nullable":true,"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"currency":{"nullable":true,"type":"string"},"inventory":{"nullable":true,"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"url":{"nullable":true,"type":"string"},"imageUrl":{"nullable":true,"type":"string"},"published":{"type":"boolean"},"inventoryPolicy":{"nullable":true,"type":"string","enum":["deny","continue"]},"backorders":{"nullable":true,"type":"string"},"visibility":{"nullable":true,"type":"string"},"imageThumbnailUrl":{"nullable":true,"type":"string"},"customMetadata":{"nullable":true,"type":"object","additionalProperties":{}}},"required":["id","itemId","externalId","sku","title","priceMinor","currency","inventory","url","imageUrl","published","inventoryPolicy","backorders","visibility","imageThumbnailUrl","customMetadata"],"additionalProperties":false},"Variants4":{"maxItems":100,"type":"array","items":{"$ref":"#/components/schemas/VariantsItem5"}},"VariantsItem5":{"type":"object","properties":{"externalId":{"type":"string","minLength":1,"maxLength":256},"sku":{"nullable":true,"type":"string","maxLength":256},"title":{"type":"string","minLength":1,"maxLength":500},"priceMinor":{"nullable":true,"type":"integer","minimum":0,"maximum":9007199254740991},"currency":{"nullable":true,"type":"string","minLength":3,"maxLength":3},"inventory":{"nullable":true,"type":"integer","minimum":0,"maximum":9007199254740991},"url":{"nullable":true,"type":"string","maxLength":2048,"format":"uri"},"imageUrl":{"nullable":true,"type":"string","maxLength":2048,"format":"uri"},"published":{"type":"boolean"},"inventoryPolicy":{"nullable":true,"type":"string","enum":["deny","continue"]},"backorders":{"nullable":true,"type":"string","maxLength":64},"visibility":{"nullable":true,"type":"string","maxLength":64},"imageThumbnailUrl":{"nullable":true,"type":"string","maxLength":2048,"format":"uri"},"customMetadata":{"nullable":true,"type":"object","additionalProperties":{}}},"required":["externalId","title"]},"PatchV1CatalogItemsByIdBody":{"type":"object","properties":{"title":{"type":"string","minLength":1,"maxLength":500},"description":{"nullable":true,"type":"string","maxLength":10000},"url":{"nullable":true,"type":"string","maxLength":2048,"format":"uri"},"imageUrl":{"nullable":true,"type":"string","maxLength":2048,"format":"uri"},"priceMinor":{"nullable":true,"type":"integer","minimum":0,"maximum":9007199254740991},"currency":{"nullable":true,"type":"string","minLength":3,"maxLength":3},"inventory":{"nullable":true,"type":"integer","minimum":0,"maximum":9007199254740991},"published":{"type":"boolean"},"categories":{"maxItems":50,"type":"array","items":{"type":"string","minLength":1,"maxLength":256}},"customMetadata":{"nullable":true,"type":"object","additionalProperties":{}},"imageThumbnailUrl":{"nullable":true,"type":"string","maxLength":2048,"format":"uri"},"handle":{"nullable":true,"type":"string","maxLength":256},"type":{"nullable":true,"type":"string","maxLength":256},"vendor":{"nullable":true,"type":"string","maxLength":256},"publishedAtForeign":{"nullable":true,"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"}}},"PutV1CatalogItemsByIdBody":{"type":"object","properties":{"title":{"type":"string","minLength":1,"maxLength":500},"description":{"nullable":true,"type":"string","maxLength":10000},"url":{"nullable":true,"type":"string","maxLength":2048,"format":"uri"},"imageUrl":{"nullable":true,"type":"string","maxLength":2048,"format":"uri"},"priceMinor":{"nullable":true,"type":"integer","minimum":0,"maximum":9007199254740991},"currency":{"nullable":true,"type":"string","minLength":3,"maxLength":3},"inventory":{"nullable":true,"type":"integer","minimum":0,"maximum":9007199254740991},"published":{"type":"boolean"},"categories":{"maxItems":50,"type":"array","items":{"type":"string","minLength":1,"maxLength":256}},"variants":{"$ref":"#/components/schemas/Variants4"},"customMetadata":{"nullable":true,"type":"object","additionalProperties":{}},"imageThumbnailUrl":{"nullable":true,"type":"string","maxLength":2048,"format":"uri"},"handle":{"nullable":true,"type":"string","maxLength":256},"type":{"nullable":true,"type":"string","maxLength":256},"vendor":{"nullable":true,"type":"string","maxLength":256},"publishedAtForeign":{"nullable":true,"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"}},"required":["title"]},"GetV1CatalogItemsByIdVariantsResponse":{"type":"object","properties":{"items":{"$ref":"#/components/schemas/Variants3"},"nextCursor":{"nullable":true,"type":"string"}},"required":["items","nextCursor"],"additionalProperties":false},"PutV1CatalogItemsByIdVariantsByVariantIdBody":{"type":"object","properties":{"sku":{"nullable":true,"type":"string","maxLength":256},"title":{"type":"string","minLength":1,"maxLength":500},"priceMinor":{"nullable":true,"type":"integer","minimum":0,"maximum":9007199254740991},"currency":{"nullable":true,"type":"string","minLength":3,"maxLength":3},"inventory":{"nullable":true,"type":"integer","minimum":0,"maximum":9007199254740991},"url":{"nullable":true,"type":"string","maxLength":2048,"format":"uri"},"imageUrl":{"nullable":true,"type":"string","maxLength":2048,"format":"uri"},"published":{"type":"boolean"},"inventoryPolicy":{"nullable":true,"type":"string","enum":["deny","continue"]},"backorders":{"nullable":true,"type":"string","maxLength":64},"visibility":{"nullable":true,"type":"string","maxLength":64},"imageThumbnailUrl":{"nullable":true,"type":"string","maxLength":2048,"format":"uri"},"customMetadata":{"nullable":true,"type":"object","additionalProperties":{}}},"required":["title"]},"ItemsItem93":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"itemId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"url":{"type":"string"},"position":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"variantIds":{"$ref":"#/components/schemas/Conflicts"}},"required":["id","itemId","url","position","variantIds"],"additionalProperties":false},"VariantIds":{"maxItems":100,"type":"array","items":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},"PatchV1CatalogVariantsByIdBody":{"type":"object","properties":{"sku":{"nullable":true,"type":"string","maxLength":256},"title":{"type":"string","minLength":1,"maxLength":500},"priceMinor":{"nullable":true,"type":"integer","minimum":0,"maximum":9007199254740991},"currency":{"nullable":true,"type":"string","minLength":3,"maxLength":3},"inventory":{"nullable":true,"type":"integer","minimum":0,"maximum":9007199254740991},"url":{"nullable":true,"type":"string","maxLength":2048,"format":"uri"},"imageUrl":{"nullable":true,"type":"string","maxLength":2048,"format":"uri"},"published":{"type":"boolean"},"inventoryPolicy":{"nullable":true,"type":"string","enum":["deny","continue"]},"backorders":{"nullable":true,"type":"string","maxLength":64},"visibility":{"nullable":true,"type":"string","maxLength":64},"imageThumbnailUrl":{"nullable":true,"type":"string","maxLength":2048,"format":"uri"},"customMetadata":{"nullable":true,"type":"object","additionalProperties":{}}}},"GetV1CatalogCategoriesResponse":{"type":"object","properties":{"items":{"$ref":"#/components/schemas/Items34"},"nextCursor":{"nullable":true,"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},"required":["items"],"additionalProperties":false},"Items34":{"type":"array","items":{"$ref":"#/components/schemas/ItemsItem94"}},"ItemsItem94":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"externalId":{"type":"string"},"name":{"type":"string"},"itemCount":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["id","externalId","name","itemCount"],"additionalProperties":false},"PostV1CatalogBulkJobsResponse":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"resource":{"type":"string","enum":["items","variants","categories","coupon_codes"]},"op":{"type":"string","enum":["create","update","delete"]},"status":{"type":"string","enum":["queued","processing","complete","failed"]},"total":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"succeeded":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"failed":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"errors":{"$ref":"#/components/schemas/Errors3"},"createdAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"completedAt":{"nullable":true,"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"}},"required":["id","resource","op","status","total","succeeded","failed","errors","createdAt","completedAt"],"additionalProperties":false},"Errors3":{"type":"array","items":{"$ref":"#/components/schemas/ErrorsItem3"}},"ErrorsItem3":{"type":"object","properties":{"index":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"message":{"type":"string"}},"required":["index","message"],"additionalProperties":false},"ItemsItem95":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"name":{"type":"string"},"url":{"type":"string"},"format":{"type":"string","enum":["json","rss","xml"]},"refreshHours":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"method":{"type":"string","enum":["GET","POST"]},"requestBody":{"nullable":true,"type":"string"},"lastFetchedAt":{"nullable":true,"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"lastError":{"nullable":true,"type":"string"},"cached":{"type":"boolean"}},"required":["id","name","url","format","refreshHours","method","requestBody","lastFetchedAt","lastError","cached"],"additionalProperties":false},"ItemsItem96":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"productId":{"type":"string"},"profileId":{"nullable":true,"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"authorName":{"nullable":true,"type":"string"},"rating":{"nullable":true,"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"title":{"nullable":true,"type":"string"},"body":{"nullable":true,"type":"string"},"status":{"type":"string","enum":["pending","published","featured","unpublished","rejected"]},"verified":{"type":"boolean"},"source":{"type":"string"},"reviewType":{"type":"string","enum":["review","question","rating","store"]},"images":{"type":"array","items":{"type":"string"}},"publicReply":{"nullable":true,"type":"string"},"publicReplyAt":{"nullable":true,"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"rejectionReason":{"nullable":true,"type":"string"},"reviewerEmail":{"nullable":true,"type":"string"},"orderId":{"nullable":true,"type":"string"},"rewardCode":{"nullable":true,"type":"string"},"createdAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"updatedAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"}},"required":["id","productId","profileId","authorName","rating","title","body","status","verified","source","reviewType","images","publicReply","publicReplyAt","rejectionReason","reviewerEmail","orderId","rewardCode","createdAt","updatedAt"],"additionalProperties":false},"GetV1ReviewSettingsResponse":{"type":"object","properties":{"rewardPoolId":{"nullable":true,"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"rewardMinRating":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"rewardRequiresMedia":{"type":"boolean"}},"required":["rewardPoolId","rewardMinRating","rewardRequiresMedia"],"additionalProperties":false},"GetV1AiSettingsResponse":{"type":"object","properties":{"enabled":{"type":"boolean"},"model":{"nullable":true,"type":"string"},"enabledAt":{"nullable":true,"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"configured":{"type":"boolean"},"brandVoice":{"nullable":true,"type":"string"}},"required":["enabled","model","enabledAt","configured","brandVoice"],"additionalProperties":false},"PostV1AiSubjectSuggestionsBody":{"type":"object","properties":{"body":{"type":"string","minLength":1,"maxLength":20000},"count":{"default":5,"type":"integer","minimum":1,"maximum":10},"tone":{"type":"string","maxLength":100}},"required":["body"]},"PostV1AiSubjectSuggestionsResponse":{"type":"object","properties":{"suggestions":{"type":"array","items":{"type":"string"}},"draft":{"type":"boolean","enum":[true]},"model":{"type":"string"}},"required":["suggestions","draft","model"],"additionalProperties":false},"PostV1AiRewriteToneResponse":{"type":"object","properties":{"text":{"type":"string"},"draft":{"type":"boolean","enum":[true]},"model":{"type":"string"}},"required":["text","draft","model"],"additionalProperties":false},"PostV1AiTranslateBody":{"type":"object","properties":{"text":{"type":"string","minLength":1,"maxLength":20000},"targetLanguage":{"type":"string","minLength":2,"maxLength":50}},"required":["text","targetLanguage"]},"PostV1AiBodyFromBriefBody":{"type":"object","properties":{"brief":{"type":"string","minLength":1,"maxLength":4000},"tone":{"type":"string","maxLength":100},"channel":{"default":"email","type":"string","enum":["email","sms"]}},"required":["brief"]},"PostV1AiFlowFromTextResponse":{"type":"object","properties":{"definition":{"$ref":"#/components/schemas/Definition3"},"validation":{"$ref":"#/components/schemas/GetV1WorkflowsByIdValidateResponse"},"draft":{"type":"boolean","enum":[true]},"model":{"type":"string"}},"required":["definition","validation","draft","model"],"additionalProperties":false},"Metric2":{"default":{"primary":"clicks","guardrails":[]},"type":"object","properties":{"primary":{"default":"clicks","type":"string","enum":["clicks","replies","conversions","revenue","opens"]},"guardrails":{"$ref":"#/components/schemas/Guardrails"}}},"Guardrails":{"default":[],"maxItems":3,"type":"array","items":{"$ref":"#/components/schemas/GuardrailsItem"}},"GuardrailsItem":{"type":"object","properties":{"metric":{"type":"string","enum":["unsubscribe","complaint","bounce"]},"threshold":{"type":"number","minimum":0,"maximum":1}},"required":["metric","threshold"]},"ItemsItem97":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":{"type":"string"},"definition":{},"errors":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"warnings":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"model":{"type":"string"},"createdBy":{"type":"string"},"workflowId":{"nullable":true,"type":"string"},"createdAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"}},"required":["id","description","definition","errors","warnings","model","createdBy","workflowId","createdAt"],"additionalProperties":false},"GetV1ExperimentsResponse":{"type":"object","properties":{"items":{"$ref":"#/components/schemas/Items35"},"nextCursor":{"nullable":true,"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},"required":["items","nextCursor"],"additionalProperties":false},"Items35":{"type":"array","items":{"$ref":"#/components/schemas/ItemsItem98"}},"ItemsItem98":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},"required":["id"],"additionalProperties":{}},"GetV1ExperimentsByIdReportResponse":{"type":"object","properties":{"arms":{"$ref":"#/components/schemas/Arms"},"recommendation":{"$ref":"#/components/schemas/Recommendation"},"reason":{"type":"string"},"method":{"type":"string","enum":["bayesian_beta","frequentist_ztest"]},"metric":{"type":"string","enum":["clicks","replies","conversions","revenue","opens"]},"significant":{"type":"boolean"},"sampleSufficient":{"type":"boolean"},"caveat":{"nullable":true,"type":"string"}},"required":["arms","recommendation","reason","method","metric","significant","sampleSufficient","caveat"],"additionalProperties":false},"Arms":{"type":"array","items":{"$ref":"#/components/schemas/ArmsItem"}},"ArmsItem":{"type":"object","properties":{"key":{"type":"string"},"n":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"conversions":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"rate":{"type":"number"},"ci":{"type":"array","items":{"anyOf":[{"type":"number"},{"type":"number"}]},"minItems":2,"maxItems":2},"pBest":{"type":"number"},"expectedLoss":{"type":"number"},"pValue":{"nullable":true,"type":"number"},"guardrails":{"$ref":"#/components/schemas/Guardrails2"},"orders":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"revenueMinor":{"type":"number"}},"required":["key","n","conversions","rate","ci","pBest","expectedLoss","pValue","guardrails"],"additionalProperties":false},"Guardrails2":{"type":"array","items":{"$ref":"#/components/schemas/GuardrailsItem2"}},"GuardrailsItem2":{"type":"object","properties":{"metric":{"type":"string","enum":["unsubscribe","complaint","bounce"]},"rate":{"type":"number"},"pWorse":{"nullable":true,"type":"number"},"failed":{"type":"boolean"}},"required":["metric","rate","pWorse","failed"],"additionalProperties":false},"Recommendation":{"type":"object","properties":{"kind":{"type":"string","enum":["winner","keep_running","no_winner"]},"key":{"nullable":true,"type":"string"}},"required":["kind","key"],"additionalProperties":false},"ItemsItem99":{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":80},"baseRole":{"type":"string","enum":["admin","marketer","sales","analyst","viewer"]},"grant":{"default":[],"maxItems":100,"type":"array","items":{"type":"string"}},"deny":{"default":[],"maxItems":100,"type":"array","items":{"type":"string"}},"restrictions":{"default":{},"type":"object","additionalProperties":{"type":"array","items":{"type":"string"}}},"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"scopes":{"type":"array","items":{"type":"string"}}},"required":["name","baseRole","grant","deny","restrictions","id","scopes"],"additionalProperties":false},"PostV1RolesBody":{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":80},"baseRole":{"type":"string","enum":["admin","marketer","sales","analyst","viewer"]},"grant":{"default":[],"maxItems":100,"type":"array","items":{"type":"string"}},"deny":{"default":[],"maxItems":100,"type":"array","items":{"type":"string"}},"restrictions":{"default":{},"type":"object","additionalProperties":{"type":"array","items":{"type":"string"}}}},"required":["name","baseRole"]},"Items36":{"type":"array","items":{"$ref":"#/components/schemas/ItemsItem100"}},"ItemsItem100":{"type":"object","properties":{"dataClass":{"type":"string"},"retainDays":{"nullable":true,"type":"number"},"isDefault":{"type":"boolean"}},"required":["dataClass","retainDays","isDefault"],"additionalProperties":false},"GetV1ComplianceUnsubscribePurgeResponse":{"type":"object","properties":{"days":{"nullable":true,"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"seconds":{"nullable":true,"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["days"],"additionalProperties":false},"ItemsItem101":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"limits":{"$ref":"#/components/schemas/Limits"}},"required":["id","name","limits"],"additionalProperties":false},"Limits":{"type":"object","properties":{"sends_email":{"nullable":true,"type":"integer","minimum":0,"maximum":9007199254740991},"sends_sms":{"nullable":true,"type":"integer","minimum":0,"maximum":9007199254740991},"sends_whatsapp":{"nullable":true,"type":"integer","minimum":0,"maximum":9007199254740991},"sends_push":{"nullable":true,"type":"integer","minimum":0,"maximum":9007199254740991},"sends_postcard":{"nullable":true,"type":"integer","minimum":0,"maximum":9007199254740991},"ai_tokens":{"nullable":true,"type":"integer","minimum":0,"maximum":9007199254740991},"seats":{"nullable":true,"type":"integer","minimum":0,"maximum":9007199254740991}},"required":["sends_email","sends_sms","sends_whatsapp","sends_push","sends_postcard","ai_tokens","seats"],"additionalProperties":false},"GetV1BillingResponse":{"type":"object","properties":{"plan":{"$ref":"#/components/schemas/ItemsItem101"},"status":{"type":"string"},"period":{"type":"string"},"currentPeriodEnd":{"nullable":true,"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"limits":{"$ref":"#/components/schemas/Limits"},"usage":{"$ref":"#/components/schemas/Usage"},"managedByProvider":{"type":"boolean"}},"required":["plan","status","period","currentPeriodEnd","limits","usage","managedByProvider"],"additionalProperties":false},"Usage":{"type":"array","items":{"$ref":"#/components/schemas/UsageItem"}},"UsageItem":{"type":"object","properties":{"metric":{"type":"string","enum":["sends_email","sends_sms","sends_whatsapp","sends_push","sends_postcard","ai_tokens"]},"used":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"limit":{"nullable":true,"type":"integer","minimum":0,"maximum":9007199254740991},"softLimit":{"nullable":true,"type":"integer","minimum":0,"maximum":9007199254740991}},"required":["metric","used","limit","softLimit"],"additionalProperties":false},"ItemsItem102":{"type":"object","properties":{"period":{"type":"string","pattern":"^\\d{4}-\\d{2}$"},"sends_email":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"sends_sms":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"sends_whatsapp":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"sends_push":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"sends_postcard":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"ai_tokens":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["period","sends_email","sends_sms","sends_whatsapp","sends_push","sends_postcard","ai_tokens"],"additionalProperties":false},"ItemsItem103":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"connectionId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"segmentId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"name":{"type":"string"},"externalListId":{"nullable":true,"type":"string"},"backfilled":{"type":"boolean"},"lastSyncedAt":{"nullable":true,"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"lastError":{"nullable":true,"type":"string"},"createdAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"}},"required":["id","connectionId","segmentId","name","externalListId","backfilled","lastSyncedAt","lastError","createdAt"],"additionalProperties":false},"ItemsItem104":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"kind":{"$ref":"#/components/schemas/Kind"},"name":{"type":"string"},"config":{"type":"object","additionalProperties":{}},"status":{"type":"string","enum":["active","error","disabled"]},"lastSyncAt":{"nullable":true,"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"lastError":{"nullable":true,"type":"string"},"createdAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"}},"required":["id","kind","name","config","status","lastSyncAt","lastError","createdAt"],"additionalProperties":false},"Kind":{"anyOf":[{"type":"string","enum":["hubspot","shopify","salesforce","pipedrive","dynamics","zendesk","segment","posthog","woocommerce","bigcommerce","stripe","s3","bigquery","snowflake"]},{"type":"string","pattern":"^x:[a-z0-9-]+$"}]},"Webhook":{"nullable":true,"type":"object","properties":{"url":{"type":"string"},"secret":{"nullable":true,"type":"string"},"verifyToken":{"nullable":true,"type":"string"},"signature":{"type":"string"},"setup":{"nullable":true,"type":"string"},"capturedCode":{"nullable":true,"type":"string"},"capturedAt":{"nullable":true,"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"}},"required":["url","secret","verifyToken","signature","setup","capturedCode","capturedAt"],"additionalProperties":false},"ItemsItem105":{"type":"object","properties":{"packageId":{"type":"string"},"version":{"type":"string"},"name":{"type":"string"},"publisher":{"type":"string"},"summary":{"type":"string"},"reviewStatus":{"type":"string"},"installedAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"updatedAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"}},"required":["packageId","version","name","publisher","summary","reviewStatus","installedAt","updatedAt"],"additionalProperties":false},"ItemsItem106":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"name":{"type":"string"},"domain":{"type":"string"},"enabled":{"type":"boolean"},"verifiedAt":{"nullable":true,"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"consentMode":{"type":"string"},"botFilter":{"type":"boolean"},"originAllowlist":{"type":"array","items":{"type":"string"}},"ipAllowlist":{"type":"array","items":{"type":"string"}},"createdAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"}},"required":["id","name","domain","enabled","verifiedAt","consentMode","botFilter","originAllowlist","ipAllowlist","createdAt"],"additionalProperties":false},"GetV1SitesByIdAllowlistResponse":{"type":"object","properties":{"origins":{"default":[],"maxItems":50,"type":"array","items":{"type":"string","maxLength":255}},"ips":{"default":[],"maxItems":100,"type":"array","items":{"type":"string","maxLength":64}}},"required":["origins","ips"],"additionalProperties":false},"Reputation":{"type":"array","items":{"$ref":"#/components/schemas/ReputationItem"}},"ReputationItem":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"source":{"type":"string"},"domain":{"type":"string"},"day":{"type":"string"},"metrics":{"$ref":"#/components/schemas/Metrics2"}},"required":["id","source","domain","day","metrics"],"additionalProperties":false},"Metrics2":{"type":"object","properties":{"spamRate":{"type":"number","minimum":0,"maximum":1},"domainReputation":{"type":"string","enum":["HIGH","MEDIUM","LOW","BAD"]},"ipReputation":{"type":"string","enum":["HIGH","MEDIUM","LOW","BAD"]},"authPassRate":{"type":"number","minimum":0,"maximum":1}},"additionalProperties":false},"ItemsItem107":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"kind":{"type":"string","enum":["google_postmaster","microsoft_snds"]},"name":{"type":"string"},"domains":{"type":"array","items":{"type":"string"}},"lastSyncAt":{"nullable":true,"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"lastError":{"nullable":true,"type":"string"}},"required":["id","kind","name","domains","lastSyncAt","lastError"],"additionalProperties":false},"ItemsItem108":{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":120},"metric":{"type":"string","enum":["dnsbl_listed","spam_rate","bounce_rate","domain_reputation"]},"threshold":{"default":0,"description":"A fraction, not a percent: spam_rate and bounce_rate fire at or above it (0.003 = 0.3%, the Gmail line; 0.05 = 5% bounces); domain_reputation fires at or below 0 BAD, 1 LOW, 2 MEDIUM; dnsbl_listed ignores it","type":"number","minimum":0,"maximum":3},"action":{"default":"notify","type":"string","enum":["notify","pause","throttle"]},"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"enabled":{"type":"boolean"}},"required":["name","metric","threshold","action","id","enabled"],"additionalProperties":false},"GetV1DeliverabilityAlertsResponse":{"type":"object","properties":{"items":{"$ref":"#/components/schemas/Items37"},"nextCursor":{"nullable":true,"type":"string"}},"required":["items","nextCursor"],"additionalProperties":false},"Items37":{"type":"array","items":{"$ref":"#/components/schemas/ItemsItem109"}},"ItemsItem109":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"ruleId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"domain":{"type":"string"},"metric":{"type":"string","enum":["dnsbl_listed","spam_rate","bounce_rate","domain_reputation"]},"value":{"type":"string"},"action":{"type":"string","enum":["notify","pause","throttle"]},"status":{"type":"string","enum":["open","resolved"]},"pausedConnections":{"$ref":"#/components/schemas/Conflicts"},"openedAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"resolvedAt":{"nullable":true,"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"}},"required":["id","ruleId","domain","metric","value","action","status","pausedConnections","openedAt","resolvedAt"],"additionalProperties":false},"GetV1DeliverabilityWarmupByConnectionIdResponse":{"type":"object","properties":{"connectionId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"status":{"type":"string","enum":["off","active","paused"]},"pausedReason":{"nullable":true,"type":"string"},"address":{"nullable":true,"type":"string"},"settings":{"$ref":"#/components/schemas/Settings6"},"lastError":{"nullable":true,"type":"string"},"lastErrorAt":{"nullable":true,"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"quotaToday":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"sentToday":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"poolSize":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"score":{"nullable":true,"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"totals":{"$ref":"#/components/schemas/Totals2"},"series":{"$ref":"#/components/schemas/Series"}},"required":["connectionId","status","pausedReason","address","settings","lastError","lastErrorAt","quotaToday","sentToday","poolSize","score","totals","series"],"additionalProperties":false},"Settings6":{"type":"object","properties":{"enabled":{"type":"boolean"},"startPerDay":{"default":2,"type":"integer","minimum":1,"maximum":50},"incrementPerDay":{"default":2,"type":"integer","minimum":0,"maximum":20},"maxPerDay":{"default":30,"type":"integer","minimum":1,"maximum":100}},"required":["enabled","startPerDay","incrementPerDay","maxPerDay"],"additionalProperties":false},"Totals2":{"type":"object","properties":{"sent":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"bounced":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"inbox":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"spam":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"replies":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["sent","bounced","inbox","spam","replies"],"additionalProperties":false},"Series":{"type":"array","items":{"$ref":"#/components/schemas/SeriesItem"}},"SeriesItem":{"type":"object","properties":{"day":{"type":"string"},"sent":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"inbox":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"spam":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["day","sent","inbox","spam"],"additionalProperties":false},"ItemsItem110":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"connectionId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"address":{"type":"string"}},"required":["id","connectionId","address"],"additionalProperties":false},"PostV1DeliverabilitySeedsBody":{"type":"object","properties":{"connectionId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},"required":["connectionId"]},"ItemsItem111":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"senderAddress":{"type":"string"},"status":{"type":"string","enum":["running","done","stopped"]},"createdAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"completedAt":{"nullable":true,"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"name":{"nullable":true,"type":"string"},"folder":{"nullable":true,"type":"string"},"recurEveryDays":{"nullable":true,"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"nextRunAt":{"nullable":true,"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"results":{"$ref":"#/components/schemas/Results2"}},"required":["id","senderAddress","status","createdAt","completedAt","results"],"additionalProperties":false},"Results2":{"type":"array","items":{"$ref":"#/components/schemas/ResultsItem2"}},"ResultsItem2":{"type":"object","properties":{"seedAddress":{"type":"string"},"folder":{"nullable":true,"type":"string","enum":["inbox","spam","missing"]}},"required":["seedAddress","folder"],"additionalProperties":false},"ItemsItem112":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"kind":{"type":"string","enum":["email","slack","discord","webhook"]},"name":{"type":"string"},"enabled":{"type":"boolean"}},"required":["id","kind","name","enabled"],"additionalProperties":false},"ByProvider":{"type":"array","items":{"$ref":"#/components/schemas/ByProviderItem"}},"ByProviderItem":{"type":"object","properties":{"provider":{"type":"string","enum":["google","microsoft","other"]},"inbox":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"spam":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"missing":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"total":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"inboxRate":{"nullable":true,"type":"number"}},"required":["provider","inbox","spam","missing","total","inboxRate"],"additionalProperties":false},"Content":{"type":"object","properties":{"score":{"type":"number"},"threshold":{"type":"number"},"verdict":{"type":"string","enum":["pass","warn","fail"]},"rules":{"$ref":"#/components/schemas/Rules7"}},"required":["score","threshold","verdict","rules"],"additionalProperties":false},"Rules7":{"type":"array","items":{"$ref":"#/components/schemas/RulesItem5"}},"RulesItem5":{"type":"object","properties":{"id":{"type":"string"},"points":{"type":"number"},"description":{"type":"string"}},"required":["id","points","description"],"additionalProperties":false},"Report":{"type":"object","properties":{"score":{"type":"number"},"threshold":{"type":"number"},"verdict":{"type":"string","enum":["pass","warn","fail"]},"engine":{"type":"string","enum":["spamassassin","hermetica_rules"]},"engineNote":{"type":"string"},"fallbackReason":{"nullable":true,"type":"string"},"sections":{"$ref":"#/components/schemas/Sections"}},"required":["score","threshold","verdict","engine","engineNote","fallbackReason","sections"],"additionalProperties":false},"Sections":{"type":"array","items":{"$ref":"#/components/schemas/SectionsItem"}},"SectionsItem":{"type":"object","properties":{"section":{"type":"string","enum":["subject","wording","links","formatting"]},"label":{"type":"string"},"score":{"type":"number"},"rules":{"$ref":"#/components/schemas/Rules8"}},"required":["section","label","score","rules"],"additionalProperties":false},"Rules8":{"type":"array","items":{"$ref":"#/components/schemas/RulesItem6"}},"RulesItem6":{"type":"object","properties":{"id":{"type":"string"},"points":{"type":"number"},"description":{"type":"string"},"fix":{"type":"string"}},"required":["id","points","description","fix"],"additionalProperties":false},"ResultsItem3":{"type":"object","properties":{"ip":{"type":"string"},"ptr":{"type":"array","items":{"type":"string"}},"forwardConfirmed":{"type":"boolean"},"ok":{"type":"boolean"},"detail":{"type":"string"}},"required":["ip","ptr","forwardConfirmed","ok"],"additionalProperties":false},"GetV1DeliverabilityAgentResponse":{"type":"object","properties":{"autoPause":{"type":"boolean"},"bounceRate":{"type":"number","minimum":0.001,"maximum":0.5},"complaintRate":{"type":"number","minimum":0.0001,"maximum":0.1},"minSample":{"type":"integer","minimum":1,"maximum":10000}},"required":["autoPause","bounceRate","complaintRate","minSample"],"additionalProperties":false},"ItemsItem113":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"alertId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"domain":{"type":"string"},"metric":{"type":"string"},"value":{"type":"string"},"title":{"type":"string"},"detail":{"type":"string"},"status":{"type":"string","enum":["open","actioned","completed","dismissed"]},"action":{"nullable":true,"type":"string","enum":["pause_mailboxes","pause_14d"]},"connectionIds":{"$ref":"#/components/schemas/Conflicts"},"actioned":{"$ref":"#/components/schemas/Conflicts"},"problemOpen":{"type":"boolean"},"createdAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"actionedAt":{"nullable":true,"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"resumeAt":{"nullable":true,"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"resumedAt":{"nullable":true,"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"completedAt":{"nullable":true,"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"}},"required":["id","alertId","domain","metric","value","title","detail","status","action","connectionIds","actioned","problemOpen","createdAt","actionedAt","resumeAt","resumedAt","completedAt"],"additionalProperties":false},"ItemsItem114":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"kind":{"type":"string","enum":["apollo","hunter","pdl","dropcontact","findymail","zerobounce","neverbounce","kickbox","millionverifier","smtp","twilio_lookup","telnyx_lookup"]},"role":{"type":"string","enum":["finder","verifier","phone"]},"name":{"type":"string"},"priority":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"enabled":{"type":"boolean"},"creditsUsed":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"creditLimit":{"nullable":true,"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"createdAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"keyVerified":{"nullable":true,"description":"false: the key is stored unchecked; a rejected key shows on first use as 502 provider_error. null: no key (smtp)","type":"boolean"}},"required":["id","kind","role","name","priority","enabled","creditsUsed","creditLimit","createdAt","keyVerified"],"additionalProperties":false},"Criteria":{"type":"object","properties":{"titles":{"default":[],"maxItems":20,"type":"array","items":{"type":"string","maxLength":100}},"seniorities":{"default":[],"maxItems":10,"type":"array","items":{"type":"string","maxLength":50}},"industries":{"default":[],"maxItems":20,"type":"array","items":{"type":"string","maxLength":100}},"companySizes":{"default":[],"maxItems":10,"type":"array","items":{"type":"string","maxLength":30}},"locations":{"default":[],"maxItems":20,"type":"array","items":{"type":"string","maxLength":100}},"technologies":{"default":[],"maxItems":20,"type":"array","items":{"type":"string","maxLength":100}},"domains":{"default":[],"maxItems":50,"type":"array","items":{"type":"string","maxLength":253}}},"required":["titles","seniorities","industries","companySizes","locations","technologies","domains"],"additionalProperties":false},"Criteria2":{"type":"object","properties":{"titles":{"default":[],"maxItems":20,"type":"array","items":{"type":"string","maxLength":100}},"seniorities":{"default":[],"maxItems":10,"type":"array","items":{"type":"string","maxLength":50}},"industries":{"default":[],"maxItems":20,"type":"array","items":{"type":"string","maxLength":100}},"companySizes":{"default":[],"maxItems":10,"type":"array","items":{"type":"string","maxLength":30}},"locations":{"default":[],"maxItems":20,"type":"array","items":{"type":"string","maxLength":100}},"technologies":{"default":[],"maxItems":20,"type":"array","items":{"type":"string","maxLength":100}},"domains":{"default":[],"maxItems":50,"type":"array","items":{"type":"string","maxLength":253}}}},"PostV1LeadsSearchResponse":{"type":"object","properties":{"items":{"$ref":"#/components/schemas/Items38"},"cached":{"type":"boolean"}},"required":["items","cached"],"additionalProperties":false},"Items38":{"type":"array","items":{"$ref":"#/components/schemas/ItemsItem115"}},"ItemsItem115":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"providerKind":{"type":"string"},"firstName":{"nullable":true,"type":"string"},"lastName":{"nullable":true,"type":"string"},"title":{"nullable":true,"type":"string"},"company":{"nullable":true,"type":"string"},"domain":{"nullable":true,"type":"string"},"email":{"nullable":true,"type":"string"},"phone":{"nullable":true,"type":"string"},"linkedinUrl":{"nullable":true,"type":"string"},"country":{"nullable":true,"type":"string"},"hasEmail":{"type":"boolean"},"emailStatus":{"nullable":true,"type":"string","enum":["valid","invalid","risky","catch_all","unknown","disposable"]},"status":{"type":"string","enum":["preview","revealed","pushed"]},"profileId":{"nullable":true,"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"provenance":{"$ref":"#/components/schemas/Provenance"},"createdAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"}},"required":["id","providerKind","firstName","lastName","title","company","domain","email","phone","linkedinUrl","country","hasEmail","emailStatus","status","profileId","provenance","createdAt"],"additionalProperties":false},"Provenance":{"type":"object","additionalProperties":{"$ref":"#/components/schemas/Provenance2"}},"Provenance2":{"type":"object","properties":{"provider":{"type":"string"},"confidence":{"nullable":true,"type":"number"},"at":{"type":"string"}},"required":["provider","confidence","at"],"additionalProperties":false},"ItemsItem116":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"name":{"type":"string"},"providerId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"criteria":{"$ref":"#/components/schemas/Criteria"},"createdAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"runEvery":{"nullable":true,"type":"string","enum":["daily","weekly"]},"autoEnrich":{"type":"boolean"},"maxResults":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"lastRunAt":{"nullable":true,"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"lastRunCount":{"nullable":true,"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"lastError":{"nullable":true,"type":"string"}},"required":["id","name","providerId","criteria","createdAt","runEvery","autoEnrich","maxResults","lastRunAt","lastRunCount","lastError"],"additionalProperties":false},"Policy":{"default":{"skipInvalid":true,"skipRisky":true,"skipCatchAll":true,"skipUnknown":false,"skipRole":false},"type":"object","properties":{"skipInvalid":{"default":true,"type":"boolean"},"skipRisky":{"default":true,"type":"boolean"},"skipCatchAll":{"default":true,"type":"boolean"},"skipUnknown":{"default":false,"type":"boolean"},"skipRole":{"default":false,"type":"boolean"}}},"PostV1LeadsPushResponse":{"type":"object","properties":{"imported":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"skipped":{"type":"array","items":{"type":"object","properties":{"ref":{"type":"string"},"reason":{"type":"string"}},"required":["ref","reason"],"additionalProperties":false}},"enroll":{"$ref":"#/components/schemas/Enroll"}},"required":["imported","skipped","enroll"],"additionalProperties":false},"GetV1LeadsSettingsResponse":{"type":"object","properties":{"autoEnrichOnSearch":{"type":"boolean"},"maxAutoEnrichPerSearch":{"type":"integer","minimum":1,"maximum":200}},"required":["autoEnrichOnSearch","maxAutoEnrichPerSearch"],"additionalProperties":false},"PostV1LeadsVerifyResponse":{"type":"object","properties":{"email":{"type":"string"},"status":{"type":"string","enum":["valid","invalid","risky","catch_all","unknown","disposable"]},"risk":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"flags":{"type":"array","items":{"type":"string"}},"provider":{"type":"string"},"checkedAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"}},"required":["email","status","risk","flags","provider","checkedAt"],"additionalProperties":false},"GetV1LeadsCompaniesResponse":{"type":"object","properties":{"items":{"$ref":"#/components/schemas/Items39"},"nextCursor":{"nullable":true,"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},"required":["items","nextCursor"],"additionalProperties":false},"Items39":{"type":"array","items":{"$ref":"#/components/schemas/ItemsItem117"}},"ItemsItem117":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"domain":{"type":"string"},"name":{"type":"string"},"industry":{"nullable":true,"type":"string"},"sizeBand":{"nullable":true,"type":"string"},"country":{"nullable":true,"type":"string"},"suppressed":{"type":"boolean"},"suppressionReason":{"nullable":true,"type":"string"},"leadCount":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"contactCount":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"createdAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"stage":{"type":"string"},"ownerUserId":{"nullable":true,"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"customFields":{"type":"object","additionalProperties":{}},"score":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["id","domain","name","industry","sizeBand","country","suppressed","suppressionReason","leadCount","contactCount","createdAt"],"additionalProperties":false},"PostV1LeadsCompaniesBody":{"type":"object","properties":{"domain":{"type":"string","minLength":3,"maxLength":253},"name":{"type":"string","minLength":1,"maxLength":200},"industry":{"type":"string","maxLength":100},"sizeBand":{"type":"string","maxLength":30},"country":{"type":"string","minLength":2,"maxLength":2},"customFields":{"type":"object","additionalProperties":{}}},"required":["domain"]},"Skipped2":{"type":"array","items":{"$ref":"#/components/schemas/SkippedItem2"}},"SkippedItem2":{"type":"object","properties":{"row":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"domain":{"type":"string"},"reason":{"type":"string"}},"required":["row","domain","reason"],"additionalProperties":false},"GetV1LeadsCompaniesByIdResponse":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"domain":{"type":"string"},"name":{"type":"string"},"industry":{"nullable":true,"type":"string"},"sizeBand":{"nullable":true,"type":"string"},"country":{"nullable":true,"type":"string"},"suppressed":{"type":"boolean"},"suppressionReason":{"nullable":true,"type":"string"},"leadCount":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"contactCount":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"createdAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"stage":{"type":"string"},"ownerUserId":{"nullable":true,"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"customFields":{"type":"object","additionalProperties":{}},"score":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"leads":{"$ref":"#/components/schemas/Items38"},"profileIds":{"$ref":"#/components/schemas/Conflicts"},"contacts":{"$ref":"#/components/schemas/Contacts"}},"required":["id","domain","name","industry","sizeBand","country","suppressed","suppressionReason","leadCount","contactCount","createdAt","leads","profileIds"],"additionalProperties":false},"Contacts":{"type":"array","items":{"$ref":"#/components/schemas/ContactsItem"}},"ContactsItem":{"type":"object","properties":{"isPrimary":{"type":"boolean"},"jobTitle":{"nullable":true,"type":"string"},"role":{"nullable":true,"type":"string"},"profileId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},"required":["isPrimary","jobTitle","role","profileId"],"additionalProperties":false},"PostV1LeadsCompaniesByIdLinkBody":{"type":"object","properties":{"profileId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"primary":{"type":"boolean"},"jobTitle":{"nullable":true,"type":"string","maxLength":200},"role":{"nullable":true,"type":"string","maxLength":100}},"required":["profileId"]},"PostV1LeadsCleanResponse":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"kind":{"type":"string","enum":["clean","enrich"]},"status":{"type":"string","enum":["queued","running","done","failed"]},"total":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"processed":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"summary":{"type":"object","additionalProperties":{}},"error":{"nullable":true,"type":"string"},"createdAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"}},"required":["id","kind","status","total","processed","summary","error","createdAt"],"additionalProperties":false},"LeadIds":{"minItems":1,"maxItems":500,"type":"array","items":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},"ItemsItem118":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"name":{"type":"string"},"providerIds":{"$ref":"#/components/schemas/Conflicts"},"fields":{"type":"array","items":{"type":"string","enum":["email","phone","title","linkedinUrl"]}},"createdAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"}},"required":["id","name","providerIds","fields","createdAt"],"additionalProperties":false},"ProviderIds":{"minItems":1,"maxItems":20,"type":"array","items":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},"ItemsItem119":{"type":"object","properties":{"code":{"type":"string"},"title":{"type":"string"},"guidance":{"type":"string"},"retryable":{"type":"boolean"}},"required":["code","title","guidance","retryable"],"additionalProperties":false},"ItemsItem120":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"kind":{"type":"string","enum":["tendlc_brand","tendlc_campaign","toll_free","short_code"]},"connectionId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"status":{"type":"string","enum":["draft","submitted","in_review","approved","rejected","failed"]},"parentId":{"nullable":true,"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"externalId":{"nullable":true,"type":"string"},"payload":{"type":"object","additionalProperties":{}},"errorCode":{"nullable":true,"type":"string"},"errorMessage":{"nullable":true,"type":"string"},"guidance":{"nullable":true,"type":"string"},"submittedAt":{"nullable":true,"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"lastPolledAt":{"nullable":true,"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"history":{"$ref":"#/components/schemas/History2"},"createdAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"}},"required":["id","kind","connectionId","status","parentId","externalId","payload","errorCode","errorMessage","guidance","submittedAt","lastPolledAt","history","createdAt"],"additionalProperties":false},"History2":{"type":"array","items":{"$ref":"#/components/schemas/HistoryItem2"}},"HistoryItem2":{"type":"object","properties":{"at":{"type":"string"},"status":{"type":"string","enum":["draft","submitted","in_review","approved","rejected","failed"]},"note":{"type":"string"},"errorCode":{"type":"string"}},"required":["at","status"],"additionalProperties":false},"ItemsItem121":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"connectionId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"value":{"type":"string"},"type":{"type":"string","enum":["long_code","toll_free","short_code","alphanumeric"]},"registrationId":{"nullable":true,"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"registrationStatus":{"nullable":true,"type":"string"},"throughputPerSec":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"dailyCap":{"nullable":true,"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"canSend":{"type":"boolean"}},"required":["id","connectionId","value","type","registrationId","registrationStatus","throughputPerSec","dailyCap","canSend"],"additionalProperties":false},"GetV1SmsConfigurationResponse":{"type":"object","properties":{"defaultSenderId":{"nullable":true,"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"sendingStartMin":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"sendingEndMin":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"timezone":{"nullable":true,"type":"string"},"company":{"$ref":"#/components/schemas/Company"},"templates":{"$ref":"#/components/schemas/Templates"},"countryRules":{"$ref":"#/components/schemas/CountryRules"},"configured":{"type":"boolean"},"updatedAt":{"nullable":true,"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"}},"required":["defaultSenderId","sendingStartMin","sendingEndMin","timezone","company","templates","countryRules","configured","updatedAt"],"additionalProperties":false},"Company":{"type":"object","properties":{"name":{"type":"string","maxLength":200},"website":{"type":"string","maxLength":500,"format":"uri"},"address":{"type":"string","maxLength":500},"contactEmail":{"type":"string","maxLength":320,"format":"email","pattern":"^(?:[A-Za-z0-9_'+\\-]+\\.)*[A-Za-z0-9_'+\\-]*[A-Za-z0-9_+-]@(?:[A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$"},"phone":{"type":"string","maxLength":30}},"additionalProperties":false},"Templates":{"type":"object","properties":{"help":{"type":"string"},"stop":{"type":"string"},"start":{"type":"string"},"optIn":{"type":"string"}},"required":["help","stop","start","optIn"],"additionalProperties":false},"CountryRules":{"type":"array","items":{"$ref":"#/components/schemas/CountryRulesItem"}},"CountryRulesItem":{"type":"object","properties":{"country":{},"enabled":{"default":true,"type":"boolean"},"quietStartMin":{"type":"integer","minimum":0,"maximum":1439},"quietEndMin":{"type":"integer","minimum":0,"maximum":1439},"senderId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},"required":["country","enabled"],"additionalProperties":false},"ItemsItem122":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"code":{"type":"string"},"url":{"type":"string"},"shortUrl":{"type":"string"},"profileId":{"nullable":true,"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"expiresAt":{"nullable":true,"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"clickCount":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"createdAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"}},"required":["id","code","url","shortUrl","profileId","expiresAt","clickCount","createdAt"],"additionalProperties":false},"ItemsItem123":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"keyword":{"type":"string"},"replyText":{"nullable":true,"type":"string"},"action":{"type":"string","enum":["none","grant_consent","add_tag"]},"tag":{"nullable":true,"type":"string"},"active":{"type":"boolean"}},"required":["id","keyword","replyText","action","tag","active"],"additionalProperties":false},"PostV1SmsKeywordsBody":{"type":"object","properties":{"keyword":{"type":"string","minLength":2,"maxLength":20},"replyText":{"nullable":true,"type":"string","maxLength":1600},"action":{"default":"none","type":"string","enum":["none","grant_consent","add_tag"]},"tag":{"nullable":true,"type":"string","maxLength":100},"active":{"default":true,"type":"boolean"}},"required":["keyword"]},"ItemsItem124":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"title":{"type":"string"},"body":{"type":"string"}},"required":["id","title","body"],"additionalProperties":false},"ItemsItem125":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"name":{"type":"string"},"filters":{"$ref":"#/components/schemas/Filters7"},"ownerUserId":{"nullable":true,"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"shared":{"type":"boolean"},"position":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["id","name","filters","ownerUserId","shared","position"],"additionalProperties":false},"Filters7":{"type":"object","properties":{"category":{"type":"string","enum":["positive","negative","neutral","ooo","auto_reply","bounce","unsubscribe","meeting","wrong_person"]},"connectionId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"assigneeUserId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"sequenceId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"unread":{"type":"boolean"},"label":{"type":"string","maxLength":40},"leadStatus":{"type":"string","enum":["new","contacted","replied","interested","meeting_booked","won","lost","not_interested","bounced","unsubscribed","do_not_contact"]}},"additionalProperties":false},"PostV1OutboundInboxBulkResponse":{"type":"object","properties":{"done":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"failed":{"$ref":"#/components/schemas/Failed2"}},"required":["done","failed"],"additionalProperties":false},"Failed2":{"type":"array","items":{"$ref":"#/components/schemas/FailedItem2"}},"FailedItem2":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"error":{"type":"string"}},"required":["id","error"],"additionalProperties":false},"ItemsItem126":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"name":{"type":"string"},"body":{"type":"string"},"ownerUserId":{"nullable":true,"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},"required":["id","name","body","ownerUserId"],"additionalProperties":false},"Meta2":{"type":"object","properties":{"displayName":{"type":"string","maxLength":120},"tags":{"maxItems":20,"type":"array","items":{"type":"string","minLength":1,"maxLength":40}},"groupName":{"nullable":true,"type":"string","maxLength":60},"capJitterPct":{"type":"integer","minimum":0,"maximum":50},"signature":{"nullable":true,"type":"string","maxLength":2000},"bcc":{"nullable":true,"type":"string","format":"email","pattern":"^(?:[A-Za-z0-9_'+\\-]+\\.)*[A-Za-z0-9_'+\\-]*[A-Za-z0-9_+-]@(?:[A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$"},"trackingDomain":{"nullable":true,"type":"string","maxLength":253}}},"GetV1OutboundSequencesByIdSendersResponse":{"type":"object","properties":{"connectionIds":{"$ref":"#/components/schemas/Conflicts"},"poolId":{"nullable":true,"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"dedicated":{"type":"boolean"},"poolName":{"nullable":true,"type":"string"}},"required":["connectionIds","poolId","dedicated","poolName"],"additionalProperties":false},"ItemsItem127":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"domain":{"type":"string"},"name":{"type":"string"},"industry":{"nullable":true,"type":"string"},"sizeBand":{"nullable":true,"type":"string"},"country":{"nullable":true,"type":"string"},"website":{"nullable":true,"type":"string"},"ownerUserId":{"nullable":true,"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"status":{"type":"string","enum":["new","engaged","opportunity","customer","not_a_fit","do_not_contact"]},"notes":{"nullable":true,"type":"string"},"createdAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"updatedAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"contacts":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"replied":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"interested":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"activeInSequence":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["id","domain","name","industry","sizeBand","country","website","ownerUserId","status","notes","createdAt","updatedAt","contacts","replied","interested","activeInSequence"],"additionalProperties":false},"PostV1OutboundSequencesByIdProspectsByProfileIdPauseResponse":{"type":"object","properties":{"affected":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"skipped":{"$ref":"#/components/schemas/Skipped3"}},"required":["affected","skipped"],"additionalProperties":false},"Skipped3":{"default":[],"type":"array","items":{"$ref":"#/components/schemas/SkippedItem"}},"Reasons":{"type":"array","items":{"$ref":"#/components/schemas/ReasonsItem"}},"ReasonsItem":{"type":"object","properties":{"code":{"type":"string"},"severity":{"type":"string","enum":["blocker","warning","info"]},"message":{"type":"string"}},"required":["code","severity","message"],"additionalProperties":false},"ItemsItem128":{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":80},"weekdays":{"default":[1,2,3,4,5],"minItems":1,"type":"array","items":{"type":"integer","minimum":1,"maximum":7}},"startMin":{"default":540,"type":"integer","minimum":0,"maximum":1440},"endMin":{"default":1020,"type":"integer","minimum":0,"maximum":1440},"timezoneSource":{"default":"prospect","type":"string","enum":["prospect","sequence"]},"timezone":{"default":"UTC","type":"string","maxLength":64},"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"sequences":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"updatedAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"}},"required":["name","weekdays","startMin","endMin","timezoneSource","timezone","id","sequences","updatedAt"],"additionalProperties":false},"PostV1OutboundSchedulesBody":{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":80},"weekdays":{"default":[1,2,3,4,5],"minItems":1,"type":"array","items":{"type":"integer","minimum":1,"maximum":7}},"startMin":{"default":540,"type":"integer","minimum":0,"maximum":1440},"endMin":{"default":1020,"type":"integer","minimum":0,"maximum":1440},"timezoneSource":{"default":"prospect","type":"string","enum":["prospect","sequence"]},"timezone":{"default":"UTC","type":"string","maxLength":64}},"required":["name"]},"ItemsItem129":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"name":{"type":"string"},"color":{"type":"string"},"description":{"nullable":true,"type":"string"},"parentCategory":{"nullable":true,"type":"string","enum":["positive","negative","neutral","ooo","auto_reply","bounce","unsubscribe","meeting","wrong_person"]},"triggerSequenceId":{"nullable":true,"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"stopCurrent":{"type":"boolean"},"aiHint":{"nullable":true,"type":"string"},"uses":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"createdAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"}},"required":["id","name","color","description","parentCategory","triggerSequenceId","stopCurrent","aiHint","uses","createdAt"],"additionalProperties":false},"PostV1OutboundReplyLabelsBody":{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":40},"color":{"default":"#6b7280","type":"string","pattern":"^#[0-9a-fA-F]{6}$"},"description":{"nullable":true,"type":"string","maxLength":500},"parentCategory":{"nullable":true,"type":"string","enum":["positive","negative","neutral","ooo","auto_reply","bounce","unsubscribe","meeting","wrong_person"]},"triggerSequenceId":{"nullable":true,"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"stopCurrent":{"default":true,"type":"boolean"},"aiHint":{"nullable":true,"type":"string","maxLength":1000}},"required":["name"]},"ItemsItem130":{"type":"object","properties":{"key":{"type":"string","pattern":"^[a-z0-9_]{1,40}$"},"label":{"type":"string","minLength":1,"maxLength":80},"connected":{"default":false,"type":"boolean"},"position":{"default":0,"type":"integer","minimum":0,"maximum":1000},"id":{"nullable":true,"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"builtin":{"type":"boolean"}},"required":["key","label","connected","position","id","builtin"],"additionalProperties":false},"ItemsItem131":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"inboundId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"profileId":{"nullable":true,"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"authorUserId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"subject":{"nullable":true,"type":"string"},"body":{"type":"string"},"connectionId":{"nullable":true,"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"createdAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"updatedAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"}},"required":["id","inboundId","profileId","authorUserId","subject","body","connectionId","createdAt","updatedAt"],"additionalProperties":false},"PostV1OutboundInboxByIdDraftsBody":{"type":"object","properties":{"body":{"type":"string","minLength":1,"maxLength":20000},"subject":{"type":"string","maxLength":300},"connectionId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},"required":["body"]},"ItemsItem132":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"kind":{"type":"string","enum":["domain","email"]},"value":{"type":"string"},"reason":{"nullable":true,"type":"string"},"createdAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"}},"required":["id","kind","value","reason","createdAt"],"additionalProperties":false},"PostV1OutboundBlocklistBulkResponse":{"type":"object","properties":{"added":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"existing":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"removed":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"invalid":{"type":"array","items":{"type":"object","properties":{"value":{"type":"string"},"error":{"type":"string"}},"required":["value","error"],"additionalProperties":false}}},"required":["added","existing","removed","invalid"],"additionalProperties":false},"GetV1OutboundInboxMailSentResponse":{"type":"object","properties":{"items":{"$ref":"#/components/schemas/Items40"},"nextCursor":{"nullable":true,"type":"string"}},"required":["items","nextCursor"],"additionalProperties":false},"Items40":{"type":"array","items":{"$ref":"#/components/schemas/ItemsItem133"}},"ItemsItem133":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"kind":{"type":"string","enum":["reply","forward","one_off"]},"profileId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"to":{"nullable":true,"type":"string"},"subject":{"nullable":true,"type":"string"},"status":{"type":"string"},"connectionId":{"nullable":true,"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"scheduledFor":{"nullable":true,"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"sentAt":{"nullable":true,"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"createdAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"}},"required":["id","kind","profileId","to","subject","status","connectionId","scheduledFor","sentAt","createdAt"],"additionalProperties":false},"GetV1OutboundSequencesByIdShareResponse":{"type":"object","properties":{"url":{"type":"string"},"expiresAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"}},"required":["url","expiresAt"],"additionalProperties":false},"GetV1OutboundAiKeyResponse":{"type":"object","properties":{"configured":{"type":"boolean"},"last4":{"nullable":true,"type":"string"},"provider":{"nullable":true,"type":"string"},"verified":{"description":"PUT only: Anthropic accepted the key (false = Anthropic could not be reached, checked on first use)","type":"boolean"}},"required":["configured","last4","provider"],"additionalProperties":false},"PostV1OutboundPersonalizeResponse":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"status":{"type":"string","enum":["queued","running","done","failed"]},"total":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"processed":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"error":{"nullable":true,"type":"string"},"field":{"nullable":true,"type":"string"},"items":{"$ref":"#/components/schemas/Items41"}},"required":["id","status","total","processed","error","field","items"],"additionalProperties":false},"Items41":{"type":"array","items":{"$ref":"#/components/schemas/ItemsItem134"}},"ItemsItem134":{"type":"object","properties":{"profileId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"text":{"nullable":true,"type":"string"},"error":{"nullable":true,"type":"string"}},"required":["profileId","text","error"],"additionalProperties":false},"ProfileIds7":{"maxItems":500,"type":"array","items":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},"ItemsItem135":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"connectionId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"contentTemplateId":{"nullable":true,"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"name":{"type":"string"},"language":{"type":"string"},"category":{"type":"string","enum":["marketing","utility","authentication"]},"body":{"type":"string"},"variables":{"type":"array","items":{"type":"string"}},"status":{"type":"string","enum":["draft","pending","approved","rejected","paused","disabled"]},"providerTemplateId":{"nullable":true,"type":"string"},"header":{"$ref":"#/components/schemas/Header"},"footer":{"nullable":true,"type":"string"},"buttons":{"$ref":"#/components/schemas/Buttons"},"rejectionReason":{"nullable":true,"type":"string"},"lastSyncedAt":{"nullable":true,"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"createdAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"}},"required":["id","connectionId","contentTemplateId","name","language","category","body","variables","status","providerTemplateId","header","footer","buttons","rejectionReason","lastSyncedAt","createdAt"],"additionalProperties":false},"Header":{"nullable":true,"type":"object","properties":{"format":{"type":"string","enum":["text","image","video","document"]},"text":{"type":"string","maxLength":60},"url":{"type":"string","format":"uri"},"handle":{"type":"string","maxLength":1000}},"required":["format"],"additionalProperties":false},"Buttons":{"type":"array","items":{"$ref":"#/components/schemas/ButtonsItem"}},"ButtonsItem":{"oneOf":[{"$ref":"#/components/schemas/ButtonsItemVariant"},{"$ref":"#/components/schemas/ButtonsItemVariant2"},{"$ref":"#/components/schemas/ButtonsItemVariant3"}]},"ButtonsItemVariant":{"type":"object","properties":{"type":{"type":"string","enum":["quick_reply"]},"text":{"type":"string","minLength":1,"maxLength":25}},"required":["type","text"],"additionalProperties":false},"ButtonsItemVariant2":{"type":"object","properties":{"type":{"type":"string","enum":["url"]},"text":{"type":"string","minLength":1,"maxLength":25},"url":{"type":"string","format":"uri"}},"required":["type","text","url"],"additionalProperties":false},"ButtonsItemVariant3":{"type":"object","properties":{"type":{"type":"string","enum":["phone"]},"text":{"type":"string","minLength":1,"maxLength":25},"phone":{"type":"string","pattern":"^\\+[1-9]\\d{6,14}$"}},"required":["type","text","phone"],"additionalProperties":false},"ButtonsItem2":{"oneOf":[{"type":"object","properties":{"type":{"type":"string","enum":["quick_reply"]},"text":{"type":"string","minLength":1,"maxLength":25}},"required":["type","text"]},{"$ref":"#/components/schemas/ButtonsItemVariant4"},{"$ref":"#/components/schemas/ButtonsItemVariant5"}]},"ButtonsItemVariant4":{"type":"object","properties":{"type":{"type":"string","enum":["url"]},"text":{"type":"string","minLength":1,"maxLength":25},"url":{"type":"string","format":"uri"}},"required":["type","text","url"]},"ButtonsItemVariant5":{"type":"object","properties":{"type":{"type":"string","enum":["phone"]},"text":{"type":"string","minLength":1,"maxLength":25},"phone":{"type":"string","pattern":"^\\+[1-9]\\d{6,14}$"}},"required":["type","text","phone"]},"BlockReasons":{"type":"array","items":{"$ref":"#/components/schemas/BlockReasonsItem"}},"BlockReasonsItem":{"type":"object","properties":{"reason":{"type":"string"},"count":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["reason","count"],"additionalProperties":false},"ItemsItem136":{"type":"object","properties":{"connectionId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"name":{"type":"string","minLength":1,"maxLength":200},"categories":{"$ref":"#/components/schemas/Categories"},"flowJson":{"type":"object","additionalProperties":{}},"firstScreen":{"type":"string","minLength":1,"maxLength":100},"cta":{"type":"string","minLength":1,"maxLength":30},"body":{"type":"string","minLength":1,"maxLength":1024},"header":{"nullable":true,"type":"string"},"templateName":{"nullable":true,"type":"string"},"templateLanguage":{"nullable":true,"type":"string"},"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"externalId":{"nullable":true,"type":"string"},"status":{"type":"string","enum":["draft","published","deprecated","error"]},"validationErrors":{"type":"array","items":{"type":"string"}},"lastError":{"nullable":true,"type":"string"},"createdAt":{"type":"string"}},"required":["connectionId","name","categories","flowJson","firstScreen","cta","body","header","templateName","templateLanguage","id","externalId","status","validationErrors","lastError","createdAt"],"additionalProperties":false},"Categories":{"default":["OTHER"],"minItems":1,"maxItems":5,"type":"array","items":{"type":"string","enum":["SIGN_UP","SIGN_IN","APPOINTMENT_BOOKING","LEAD_GENERATION","CONTACT_US","CUSTOMER_SUPPORT","SURVEY","OTHER"]}},"PostV1WhatsappFlowsByIdRunResponse":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"flowId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"profileId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"enrollmentId":{"nullable":true,"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"mode":{"type":"string","enum":["interactive","template","none"]},"status":{"type":"string","enum":["sent","blocked","failed","completed"]},"reason":{"nullable":true,"type":"string"},"response":{"nullable":true,"type":"object","additionalProperties":{}},"completedAt":{"nullable":true,"type":"string"},"createdAt":{"type":"string"}},"required":["id","flowId","profileId","enrollmentId","mode","status","reason","response","completedAt","createdAt"],"additionalProperties":false},"Profile3":{"type":"object","properties":{"data":{"$ref":"#/components/schemas/Data"}},"required":["data"]},"Data":{"type":"object","properties":{"type":{"type":"string","enum":["profile"]},"attributes":{"$ref":"#/components/schemas/Attributes"}},"required":["attributes"]},"Attributes":{"type":"object","properties":{"email":{"type":"string","maxLength":320},"phone_number":{"type":"string","maxLength":40},"external_id":{"type":"string","maxLength":200},"anonymous_id":{"type":"string","maxLength":200}}},"Items42":{"type":"array","items":{"$ref":"#/components/schemas/ItemsItem137"}},"ItemsItem137":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"profileId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"token":{"type":"string"},"platform":{"type":"string","enum":["ios","android","web"]},"vendor":{"type":"string","enum":["apns","fcm","expo","web_push"]},"appId":{"nullable":true,"type":"string"},"environment":{"type":"string","enum":["sandbox","production"]},"enablementStatus":{"type":"string","enum":["AUTHORIZED","DENIED","UNAUTHORIZED","PROVISIONAL","NOT_DETERMINED"]},"background":{"type":"string","enum":["AVAILABLE","DENIED","RESTRICTED"]},"deviceMetadata":{"type":"object","additionalProperties":{}},"lastSeenAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"invalidatedAt":{"nullable":true,"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"invalidReason":{"nullable":true,"type":"string"},"createdAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"}},"required":["id","profileId","token","platform","vendor","appId","environment","enablementStatus","background","deviceMetadata","lastSeenAt","invalidatedAt","invalidReason","createdAt"],"additionalProperties":false},"GetV1PushStatsResponse":{"type":"object","properties":{"sent":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"delivered":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"failed":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"blocked":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"opened":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"invalidTokens":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"blockReasons":{"$ref":"#/components/schemas/BlockReasons"},"sdkDelivered":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"converted":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["sent","delivered","failed","blocked","opened","invalidTokens","blockReasons"],"additionalProperties":false},"GetV1CampaignsByIdPushResponse":{"type":"object","properties":{"templateId":{"nullable":true,"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"title":{"type":"string"},"body":{"type":"string"},"extras":{"$ref":"#/components/schemas/Push2"}},"required":["templateId","title","body","extras"],"additionalProperties":false},"Quota":{"type":"object","properties":{"sendsEmail":{"nullable":true,"type":"integer","minimum":0,"maximum":9007199254740991},"sendsSms":{"nullable":true,"type":"integer","minimum":0,"maximum":9007199254740991}},"required":["sendsEmail","sendsSms"],"additionalProperties":false},"GetV1AgencyClientsByWorkspaceIdModulesResponse":{"type":"object","properties":{"modules":{"type":"array","items":{"type":"object","properties":{"key":{"type":"string"},"label":{"type":"string"}},"required":["key","label"],"additionalProperties":false}},"disabled":{"type":"array","items":{"type":"string"}}},"required":["modules","disabled"],"additionalProperties":false},"ItemsItem138":{"type":"object","properties":{"userId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"email":{"type":"string"},"name":{"type":"string"},"role":{"type":"string"}},"required":["userId","email","name","role"],"additionalProperties":false},"PostV1AgencyCopyTemplateBody":{"type":"object","properties":{"targetWorkspaceId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"sourceId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},"required":["targetWorkspaceId","sourceId"]},"PostV1AgencyCopyTemplateResponse":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"name":{"type":"string"},"validation":{"$ref":"#/components/schemas/Validation"}},"required":["id","name","validation"],"additionalProperties":false},"Validation":{"nullable":true,"type":"object","properties":{"ok":{"type":"boolean"},"errors":{"$ref":"#/components/schemas/Errors"},"warnings":{"$ref":"#/components/schemas/Errors"}},"required":["ok","errors","warnings"],"additionalProperties":false},"GetV1WorkspaceIpAllowlistResponse":{"type":"object","properties":{"entries":{"type":"array","items":{"type":"string"}},"yourIp":{"nullable":true,"type":"string"}},"required":["entries","yourIp"],"additionalProperties":false},"ItemsItem139":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"name":{"type":"string"},"domain":{"nullable":true,"type":"string"},"currency":{"type":"string"},"connectionId":{"nullable":true,"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"createdAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"listId":{"nullable":true,"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"platform":{"nullable":true,"type":"string"},"email":{"nullable":true,"type":"string"},"phone":{"nullable":true,"type":"string"},"address":{"nullable":true,"type":"object","additionalProperties":{"type":"string"}},"timezone":{"nullable":true,"type":"string"},"primaryLocale":{"nullable":true,"type":"string"},"moneyFormat":{"nullable":true,"type":"string"},"isSyncing":{"type":"boolean"}},"required":["id","name","domain","currency","connectionId","createdAt","listId","platform","email","phone","address","timezone","primaryLocale","moneyFormat","isSyncing"],"additionalProperties":false},"Address":{"type":"object","properties":{"name":{"type":"string","maxLength":200},"address1":{"type":"string","maxLength":300},"address2":{"type":"string","maxLength":300},"city":{"type":"string","maxLength":120},"province":{"type":"string","maxLength":120},"provinceCode":{"type":"string","maxLength":16},"postalCode":{"type":"string","maxLength":32},"country":{"type":"string","maxLength":120},"countryCode":{"type":"string","maxLength":8},"phone":{"type":"string","maxLength":40},"company":{"type":"string","maxLength":200}}},"GetV1CommerceOrdersResponse":{"type":"object","properties":{"items":{"$ref":"#/components/schemas/Items43"},"nextCursor":{"nullable":true,"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},"required":["items","nextCursor"],"additionalProperties":false},"Items43":{"type":"array","items":{"$ref":"#/components/schemas/ItemsItem140"}},"ItemsItem140":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"storeId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"externalId":{"type":"string"},"profileId":{"nullable":true,"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"email":{"nullable":true,"type":"string"},"status":{"type":"string","enum":["pending","paid","shipped","cancelled","refunded"]},"currency":{"type":"string"},"totalMinor":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"discountMinor":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"taxMinor":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"shippingMinor":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"refundedMinor":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"promoCode":{"nullable":true,"type":"string"},"promoPoolId":{"nullable":true,"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"campaignId":{"nullable":true,"type":"string"},"conversionSource":{"nullable":true,"type":"string"},"trackingUrl":{"nullable":true,"type":"string"},"placedAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"landingPageId":{"nullable":true,"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"adRef":{"nullable":true,"type":"string"},"clickId":{"nullable":true,"type":"string"},"utm":{"nullable":true,"type":"object","additionalProperties":{"type":"string"}},"shippingAddress":{"nullable":true,"type":"object","additionalProperties":{"type":"string"}},"billingAddress":{"nullable":true,"type":"object","additionalProperties":{"type":"string"}},"orderUrl":{"nullable":true,"type":"string"},"financialStatus":{"nullable":true,"type":"string"},"fulfillmentStatus":{"nullable":true,"type":"string"},"shippedAt":{"nullable":true,"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"}},"required":["id","storeId","externalId","profileId","email","status","currency","totalMinor","discountMinor","taxMinor","shippingMinor","refundedMinor","promoCode","promoPoolId","campaignId","conversionSource","trackingUrl","placedAt","landingPageId","adRef","clickId","utm","shippingAddress","billingAddress","orderUrl","financialStatus","fulfillmentStatus","shippedAt"],"additionalProperties":false},"PostV1CommerceStoresByStoreIdOrdersBody":{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":128},"email":{"type":"string","format":"email","pattern":"^(?:[A-Za-z0-9_'+\\-]+\\.)*[A-Za-z0-9_'+\\-]*[A-Za-z0-9_+-]@(?:[A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$"},"profileId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"status":{"default":"paid","type":"string","enum":["pending","paid","shipped","cancelled","refunded"]},"currency":{"type":"string","minLength":3,"maxLength":3},"totalMinor":{"type":"integer","minimum":0,"maximum":9007199254740991},"discountMinor":{"default":0,"type":"integer","minimum":0,"maximum":9007199254740991},"taxMinor":{"default":0,"type":"integer","minimum":0,"maximum":9007199254740991},"shippingMinor":{"default":0,"type":"integer","minimum":0,"maximum":9007199254740991},"promoCode":{"type":"string","maxLength":128},"promoPoolId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"campaignId":{"type":"string","maxLength":128},"conversionSource":{"type":"string","pattern":"^[a-z][a-z0-9_]{0,31}$"},"trackingUrl":{"type":"string","format":"uri"},"placedAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"landingPageId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"adRef":{"type":"string","maxLength":200},"clickId":{"type":"string","maxLength":300},"utm":{"type":"object","additionalProperties":{"type":"string","maxLength":300}},"shippingAddress":{"$ref":"#/components/schemas/Address"},"billingAddress":{"$ref":"#/components/schemas/Address"},"orderUrl":{"type":"string","format":"uri"},"financialStatus":{"type":"string","maxLength":64},"fulfillmentStatus":{"type":"string","maxLength":64},"lines":{"$ref":"#/components/schemas/Lines"}},"required":["id","currency"]},"Lines":{"default":[],"maxItems":500,"type":"array","items":{"$ref":"#/components/schemas/LinesItem"}},"LinesItem":{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":128},"productId":{"type":"string","maxLength":128},"variantId":{"type":"string","maxLength":128},"title":{"type":"string","maxLength":300},"quantity":{"default":1,"type":"integer","minimum":1,"maximum":100000},"priceMinor":{"default":0,"type":"integer","minimum":0,"maximum":9007199254740991},"discountMinor":{"default":0,"type":"integer","minimum":0,"maximum":9007199254740991}},"required":["id"]},"PostV1CommerceStoresByStoreIdOrdersResponse":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"storeId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"externalId":{"type":"string"},"profileId":{"nullable":true,"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"email":{"nullable":true,"type":"string"},"status":{"type":"string","enum":["pending","paid","shipped","cancelled","refunded"]},"currency":{"type":"string"},"totalMinor":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"discountMinor":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"taxMinor":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"shippingMinor":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"refundedMinor":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"promoCode":{"nullable":true,"type":"string"},"promoPoolId":{"nullable":true,"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"campaignId":{"nullable":true,"type":"string"},"conversionSource":{"nullable":true,"type":"string"},"trackingUrl":{"nullable":true,"type":"string"},"placedAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"landingPageId":{"nullable":true,"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"adRef":{"nullable":true,"type":"string"},"clickId":{"nullable":true,"type":"string"},"utm":{"nullable":true,"type":"object","additionalProperties":{"type":"string"}},"shippingAddress":{"nullable":true,"type":"object","additionalProperties":{"type":"string"}},"billingAddress":{"nullable":true,"type":"object","additionalProperties":{"type":"string"}},"orderUrl":{"nullable":true,"type":"string"},"financialStatus":{"nullable":true,"type":"string"},"fulfillmentStatus":{"nullable":true,"type":"string"},"shippedAt":{"nullable":true,"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"lines":{"$ref":"#/components/schemas/Lines2"}},"required":["id","storeId","externalId","profileId","email","status","currency","totalMinor","discountMinor","taxMinor","shippingMinor","refundedMinor","promoCode","promoPoolId","campaignId","conversionSource","trackingUrl","placedAt","landingPageId","adRef","clickId","utm","shippingAddress","billingAddress","orderUrl","financialStatus","fulfillmentStatus","shippedAt","lines"],"additionalProperties":false},"Lines2":{"type":"array","items":{"$ref":"#/components/schemas/LinesItem2"}},"LinesItem2":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"externalId":{"type":"string"},"productId":{"nullable":true,"type":"string"},"variantId":{"nullable":true,"type":"string"},"title":{"nullable":true,"type":"string"},"quantity":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"priceMinor":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"discountMinor":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["id","externalId","productId","variantId","title","quantity","priceMinor","discountMinor"],"additionalProperties":false},"PostV1CommerceStoresByStoreIdCartsBody":{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":128},"email":{"type":"string","format":"email","pattern":"^(?:[A-Za-z0-9_'+\\-]+\\.)*[A-Za-z0-9_'+\\-]*[A-Za-z0-9_+-]@(?:[A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$"},"profileId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"customer":{"$ref":"#/components/schemas/Customer"},"currency":{"type":"string","minLength":3,"maxLength":3},"totalMinor":{"type":"integer","minimum":0,"maximum":9007199254740991},"taxMinor":{"default":0,"type":"integer","minimum":0,"maximum":9007199254740991},"recoveryUrl":{"type":"string","format":"uri"},"campaignId":{"type":"string","maxLength":128},"lines":{"$ref":"#/components/schemas/Lines3"}},"required":["id","currency"]},"Customer":{"type":"object","properties":{"id":{"type":"string","maxLength":128},"email":{"type":"string","format":"email","pattern":"^(?:[A-Za-z0-9_'+\\-]+\\.)*[A-Za-z0-9_'+\\-]*[A-Za-z0-9_+-]@(?:[A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$"},"emailAddress":{"type":"string","format":"email","pattern":"^(?:[A-Za-z0-9_'+\\-]+\\.)*[A-Za-z0-9_'+\\-]*[A-Za-z0-9_+-]@(?:[A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$"},"firstName":{"type":"string","maxLength":200},"lastName":{"type":"string","maxLength":200}}},"Lines3":{"default":[],"maxItems":500,"type":"array","items":{"$ref":"#/components/schemas/LinesItem3"}},"LinesItem3":{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":128},"productId":{"type":"string","maxLength":128},"variantId":{"type":"string","maxLength":128},"title":{"type":"string","maxLength":300},"quantity":{"default":1,"type":"integer","minimum":1,"maximum":100000},"priceMinor":{"default":0,"type":"integer","minimum":0,"maximum":9007199254740991}},"required":["id"]},"PostV1CommerceStoresByStoreIdCartsResponse":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"storeId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"externalId":{"type":"string"},"profileId":{"nullable":true,"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"email":{"nullable":true,"type":"string"},"status":{"type":"string","enum":["open","abandoned","converted"]},"currency":{"type":"string"},"totalMinor":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"taxMinor":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"recoveryUrl":{"nullable":true,"type":"string"},"campaignId":{"nullable":true,"type":"string"},"updatedAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"lines":{"$ref":"#/components/schemas/Lines4"}},"required":["id","storeId","externalId","profileId","email","status","currency","totalMinor","taxMinor","recoveryUrl","campaignId","updatedAt","lines"],"additionalProperties":false},"Lines4":{"type":"array","items":{"$ref":"#/components/schemas/LinesItem4"}},"LinesItem4":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"externalId":{"type":"string"},"productId":{"nullable":true,"type":"string"},"variantId":{"nullable":true,"type":"string"},"title":{"nullable":true,"type":"string"},"quantity":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"priceMinor":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["id","externalId","productId","variantId","title","quantity","priceMinor"],"additionalProperties":false},"ItemsItem141":{"type":"object","properties":{"id":{"type":"string"},"email":{"type":"string"},"profileId":{"nullable":true,"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"firstName":{"nullable":true,"type":"string"},"lastName":{"nullable":true,"type":"string"},"company":{"nullable":true,"type":"string"},"optInStatus":{"type":"boolean"},"address":{"nullable":true,"type":"object","additionalProperties":{"type":"string"}},"ordersCount":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"totalSpentMinor":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"createdAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"updatedAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"}},"required":["id","email","profileId","firstName","lastName","company","optInStatus","address","ordersCount","totalSpentMinor","createdAt","updatedAt"],"additionalProperties":false},"ItemsItem142":{"type":"object","properties":{"id":{"type":"string"},"url":{"type":"string"},"variantIds":{"type":"array","items":{"type":"string"}}},"required":["id","url","variantIds"],"additionalProperties":false},"ItemsItem143":{"type":"object","properties":{"orders":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"revenueMinor":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"refundedMinor":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"aovMinor":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"conversionSource":{"type":"string"},"conversionSourceId":{"type":"string"}},"required":["orders","revenueMinor","refundedMinor","aovMinor","conversionSource","conversionSourceId"],"additionalProperties":false},"ItemsItem144":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"name":{"type":"string"},"description":{"nullable":true,"type":"string"},"definition":{"$ref":"#/components/schemas/Definition7"},"createdAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"updatedAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"}},"required":["id","name","description","definition","createdAt","updatedAt"],"additionalProperties":false},"Definition7":{"type":"object","properties":{"sources":{"$ref":"#/components/schemas/Sources"},"valueProperty":{"default":null,"nullable":true,"type":"string","minLength":1,"maxLength":128}},"required":["sources","valueProperty"],"additionalProperties":false},"Sources":{"minItems":1,"maxItems":10,"type":"array","items":{"$ref":"#/components/schemas/SourcesItem"}},"SourcesItem":{"type":"object","properties":{"event":{"type":"string","minLength":1,"maxLength":128},"conditions":{"$ref":"#/components/schemas/Conditions3"}},"required":["event","conditions"],"additionalProperties":false},"Definition8":{"type":"object","properties":{"sources":{"$ref":"#/components/schemas/Sources2"},"valueProperty":{"default":null,"nullable":true,"type":"string","minLength":1,"maxLength":128}},"required":["sources"]},"Sources2":{"minItems":1,"maxItems":10,"type":"array","items":{"$ref":"#/components/schemas/SourcesItem2"}},"SourcesItem2":{"type":"object","properties":{"event":{"type":"string","minLength":1,"maxLength":128},"conditions":{"$ref":"#/components/schemas/Conditions4"}},"required":["event"]},"ItemsItem145":{"type":"object","properties":{"role":{"type":"string","enum":["placed_order","viewed_product","started_checkout","added_to_cart","submitted_form"]},"metricName":{"type":"string"},"configured":{"type":"boolean"}},"required":["role","metricName","configured"],"additionalProperties":false},"ItemsItem146":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"version":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"status":{"type":"string","enum":["draft","published"]},"fields":{"type":"object","additionalProperties":{"type":"string","enum":["string","number","boolean","date"]}},"publishedAt":{"nullable":true,"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"createdAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"}},"required":["id","version","status","fields","publishedAt","createdAt"],"additionalProperties":false},"ItemsItem147":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"typeId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"target":{"type":"string"},"name":{"type":"string"},"cardinality":{"type":"string","enum":["one_to_one","one_to_many","many_to_many"]}},"required":["id","typeId","target","name","cardinality"],"additionalProperties":false},"Errors4":{"type":"array","items":{"$ref":"#/components/schemas/ErrorsItem4"}},"ErrorsItem4":{"type":"object","properties":{"index":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"externalId":{"type":"string"},"reason":{"type":"string"}},"required":["index","externalId","reason"],"additionalProperties":false},"PostV1ObjectsByTypeBulkResponse":{"type":"object","properties":{"created":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"updated":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"deleted":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"failed":{"$ref":"#/components/schemas/Errors4"}},"required":["created","updated","deleted","failed"],"additionalProperties":false},"PostV1ReportingValuesBody":{"type":"object","properties":{"source":{"type":"string","enum":["campaign","workflow","form","segment"]},"ids":{"maxItems":20,"type":"array","items":{"type":"string","minLength":1,"maxLength":128}},"statistics":{"$ref":"#/components/schemas/Statistics"},"timeframe":{"$ref":"#/components/schemas/Timeframe"},"conversionMetric":{"type":"string","minLength":1,"maxLength":128},"groupBy":{"default":"source","type":"string","enum":["source","channel","variant","message","template","provider","tag","list","segment","version"]},"interval":{"default":"day","type":"string","enum":["hour","day","week","month"]},"sendChannels":{"minItems":1,"maxItems":5,"type":"array","items":{"type":"string","enum":["email","sms","whatsapp","push","postcard"]}},"messageIds":{"minItems":1,"maxItems":50,"type":"array","items":{"type":"string","minLength":1,"maxLength":128}},"campaignFilter":{"$ref":"#/components/schemas/CampaignFilter2"},"compareToPrevious":{"default":false,"type":"boolean"}},"required":["source","statistics"]},"Timeframe":{"anyOf":[{"$ref":"#/components/schemas/TimeframeVariant"},{"$ref":"#/components/schemas/TimeframeVariant2"}]},"TimeframeVariant":{"type":"object","properties":{"preset":{"type":"string","enum":["last_7_days","last_30_days","last_90_days","this_month","last_month","year_to_date"]}},"required":["preset"]},"TimeframeVariant2":{"type":"object","properties":{"from":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}(?:[T ]\\d{2}:\\d{2}(?::\\d{2}(?:\\.\\d+)?)?(?:Z|[+-]\\d{2}:?\\d{2})?)?$","format":"date"},"to":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}(?:[T ]\\d{2}:\\d{2}(?::\\d{2}(?:\\.\\d+)?)?(?:Z|[+-]\\d{2}:?\\d{2})?)?$","format":"date"}},"required":["from","to"]},"Previous":{"nullable":true,"type":"object","properties":{"from":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},"to":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},"totals":{"type":"object","additionalProperties":{"nullable":true,"type":"number"}}},"required":["from","to","totals"],"additionalProperties":false},"PostV1PipelinesByTypeResponse":{"type":"object","properties":{"accepted":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"rejected":{"$ref":"#/components/schemas/Rejected"}},"required":["accepted","rejected"],"additionalProperties":false},"PostV1PipelinesPosthogBodyVariant":{"minItems":1,"maxItems":1000,"type":"array","items":{"$ref":"#/components/schemas/PostV1PipelinesPosthogBodyVariantItem"}},"PostV1PipelinesPosthogBodyVariantItem":{"type":"object","properties":{"event":{"type":"string","minLength":1,"maxLength":256},"distinct_id":{"type":"string","minLength":1,"maxLength":256},"properties":{"type":"object","additionalProperties":{}},"timestamp":{"type":"string"},"uuid":{"type":"string","maxLength":100}},"required":["distinct_id"]},"Identifiers2":{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":256},"email":{"type":"string","maxLength":320},"phone":{"type":"string","maxLength":32},"anonymousId":{"type":"string","maxLength":128},"objectType":{"type":"string","pattern":"^[a-z][a-z0-9_]{0,62}$"},"objectId":{"type":"string","minLength":1,"maxLength":256}}},"ItemsItem148":{"type":"object","properties":{"id":{"type":"string"},"metric":{"type":"string"},"property":{"type":"string"},"type":{"type":"string"},"values":{"$ref":"#/components/schemas/Values"}},"required":["id","metric","property","type"],"additionalProperties":false},"PostV1CollectionsResponse":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"name":{"type":"string"},"description":{"nullable":true,"type":"string"},"rowCount":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"createdAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"updatedAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"}},"required":["id","name","description","rowCount","createdAt","updatedAt"],"additionalProperties":false},"PostV1DataSourcesResponse":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"name":{"type":"string"},"typeId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"status":{"type":"string","enum":["active","paused"]},"recordsIngested":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"createdAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"}},"required":["id","name","typeId","status","recordsIngested","createdAt"],"additionalProperties":false},"PutV1DataSourcesByIdMappingResponse":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"dataSourceId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"externalIdField":{"type":"string"},"nameField":{"nullable":true,"type":"string"},"fields":{"type":"object","additionalProperties":{"type":"string"}}},"required":["id","dataSourceId","externalIdField","nameField","fields"],"additionalProperties":false},"ItemsItem149":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"name":{"type":"string"},"widgets":{"$ref":"#/components/schemas/Widgets"},"createdAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"updatedAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"ownerId":{"default":null,"nullable":true,"type":"string"},"visibility":{"default":"shared","type":"string","enum":["shared","private"]}},"required":["id","name","widgets","createdAt","updatedAt","ownerId","visibility"],"additionalProperties":false},"Widgets":{"type":"array","items":{"$ref":"#/components/schemas/WidgetsItem"}},"WidgetsItem":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"reportId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"title":{"nullable":true,"type":"string","maxLength":128},"size":{"default":"half","type":"string","enum":["half","full"]}},"required":["id","reportId","size"],"additionalProperties":false},"WidgetsItem2":{"type":"object","properties":{"reportId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"title":{"nullable":true,"type":"string","maxLength":128},"size":{"default":"half","type":"string","enum":["half","full"]}},"required":["reportId"]},"PostV1AccountExportsResponse":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"status":{"type":"string","enum":["queued","running","completed","failed"]},"error":{"nullable":true,"type":"string"},"sizeBytes":{"nullable":true,"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"datasets":{"type":"object","additionalProperties":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"createdAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"finishedAt":{"nullable":true,"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"downloadPath":{"nullable":true,"type":"string"},"options":{"type":"object","properties":{"datasets":{"type":"array","items":{"type":"string"}},"since":{"type":"string"}},"additionalProperties":false}},"required":["id","status","error","sizeBytes","datasets","createdAt","finishedAt","downloadPath"],"additionalProperties":false},"ItemsItem150":{"type":"object","properties":{"clientId":{"type":"string"},"name":{"type":"string"},"scopes":{"type":"array","items":{"type":"string"}},"grantedBy":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"grantedAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"lastUsedAt":{"nullable":true,"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"}},"required":["clientId","name","scopes","grantedBy","grantedAt","lastUsedAt"],"additionalProperties":false},"ItemsItem151":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"name":{"type":"string"},"workspaceIds":{"$ref":"#/components/schemas/Conflicts"},"createdAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"}},"required":["id","name","workspaceIds","createdAt"],"additionalProperties":false},"RolesItem":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"name":{"type":"string"},"baseRole":{"type":"string"},"matrix":{"type":"object","additionalProperties":{"type":"object","properties":{"read":{"type":"boolean"},"write":{"type":"boolean"}},"required":["read","write"],"additionalProperties":false}}},"required":["id","name","baseRole","matrix"],"additionalProperties":false},"ItemsItem152":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"name":{"type":"string"},"customRoleId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"userIds":{"$ref":"#/components/schemas/Conflicts"},"createdAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"}},"required":["id","name","customRoleId","userIds","createdAt"],"additionalProperties":false},"ItemsItem153":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"companyId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"body":{"type":"string"},"authorId":{"type":"string"},"createdAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"}},"required":["id","companyId","body","authorId","createdAt"],"additionalProperties":false},"ItemsItem154":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"name":{"type":"string"},"description":{"nullable":true,"type":"string"},"companyCount":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"createdAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"}},"required":["id","name","description","companyCount","createdAt"],"additionalProperties":false},"PostV1LeadsCompanyListsByIdCompaniesBody":{"type":"object","properties":{"companyIds":{"$ref":"#/components/schemas/ProfileIds2"}},"required":["companyIds"]},"Items44":{"type":"array","items":{"$ref":"#/components/schemas/ItemsItem155"}},"ItemsItem155":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"name":{"type":"string"},"kind":{"type":"string","enum":["webinar","event","conference","workshop"]},"startsAt":{"nullable":true,"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"endsAt":{"nullable":true,"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"url":{"nullable":true,"type":"string"},"organizer":{"nullable":true,"type":"string"},"capacity":{"nullable":true,"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"status":{"type":"string","enum":["scheduled","live","completed","cancelled"]},"externalRef":{"nullable":true,"type":"string"},"registered":{"default":0,"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"attended":{"default":0,"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"createdAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"}},"required":["id","name","kind","startsAt","endsAt","url","organizer","capacity","status","externalRef","registered","attended","createdAt"],"additionalProperties":false},"ItemsItem156":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"name":{"type":"string"},"campaignRef":{"nullable":true,"type":"string"},"currency":{"type":"string"},"amountMinor":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"startsOn":{"nullable":true,"type":"string"},"endsOn":{"nullable":true,"type":"string"},"notes":{"nullable":true,"type":"string"},"spentMinor":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"remainingMinor":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"overBudget":{"type":"boolean"},"createdAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"}},"required":["id","name","campaignRef","currency","amountMinor","startsOn","endsOn","notes","spentMinor","remainingMinor","overBudget","createdAt"],"additionalProperties":false},"ItemsItem157":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"budgetId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"amountMinor":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"spentOn":{"type":"string"},"description":{"nullable":true,"type":"string"},"createdAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"}},"required":["id","budgetId","amountMinor","spentOn","description","createdAt"],"additionalProperties":false},"Rows2":{"minItems":1,"maxItems":500,"type":"array","items":{"$ref":"#/components/schemas/RowsItem2"}},"RowsItem2":{"type":"object","properties":{"key":{"type":"string","minLength":1,"maxLength":200},"prospect":{"default":{},"type":"object","properties":{"firstName":{"type":"string","maxLength":100},"company":{"type":"string","maxLength":200},"title":{"type":"string","maxLength":200}}},"research":{"default":"","type":"string","maxLength":4000},"fields":{"type":"object","additionalProperties":{"type":"string","maxLength":1000}}},"required":["key"]},"PostV1AiBulkFirstLinesResponse":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"kind":{"type":"string","enum":["first_line","custom"]},"status":{"type":"string","enum":["queued","running","done","failed"]},"total":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"processed":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"results":{"$ref":"#/components/schemas/Results3"},"model":{"nullable":true,"type":"string"},"error":{"nullable":true,"type":"string"},"createdAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"}},"required":["id","kind","status","total","processed","results","model","error","createdAt"],"additionalProperties":false},"Results3":{"type":"array","items":{"type":"object","properties":{"key":{"type":"string"},"text":{"nullable":true,"type":"string"},"error":{"type":"string"}},"required":["key","text"],"additionalProperties":false}},"ItemsItem158":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"name":{"type":"string"},"prompt":{"type":"string"},"resourceRef":{"nullable":true,"type":"string"},"createdAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"}},"required":["id","name","prompt","resourceRef","createdAt"],"additionalProperties":false},"PostV1AiPromptTemplatesBody":{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":200},"prompt":{"type":"string","minLength":1,"maxLength":4000},"resourceRef":{"nullable":true,"type":"string","maxLength":100}},"required":["name","prompt"]},"Suppressed":{"type":"array","items":{"$ref":"#/components/schemas/SuppressedItem"}},"SuppressedItem":{"type":"object","properties":{"channel":{"type":"string","enum":["email","sms","whatsapp","push","postcard"]},"value":{"type":"string"}},"required":["channel","value"],"additionalProperties":false},"ItemsItem159":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"name":{"type":"string"},"parentId":{"nullable":true,"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"listCount":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"createdAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"}},"required":["id","name","parentId","createdAt"],"additionalProperties":false},"PostV1AssetsByIdTrackedLinksResponse":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"assetId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"label":{"type":"string"},"downloads":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"revoked":{"type":"boolean"},"createdAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"url":{"type":"string"}},"required":["id","assetId","label","downloads","revoked","createdAt","url"],"additionalProperties":false},"ItemsItem160":{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":200},"defaultHtml":{"default":"","type":"string","maxLength":20000},"rules":{"$ref":"#/components/schemas/Rules9"},"enabled":{"default":true,"type":"boolean"},"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"key":{"type":"string"},"createdAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"updatedAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"}},"required":["name","defaultHtml","rules","enabled","id","key","createdAt","updatedAt"],"additionalProperties":false},"Rules9":{"default":[],"maxItems":20,"type":"array","items":{"$ref":"#/components/schemas/RulesItem7"}},"RulesItem7":{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":64},"segmentIds":{"$ref":"#/components/schemas/ListIds4"},"identified":{"type":"boolean"},"html":{"type":"string","maxLength":20000}},"required":["id","segmentIds","html"],"additionalProperties":false},"ItemsItem161":{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":200},"detailsUrlTemplate":{"type":"string","maxLength":2000,"pattern":"^https:\\/\\/[^\\s]+$"},"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"createdAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"}},"required":["name","detailsUrlTemplate","id","createdAt"],"additionalProperties":false},"GetV1MarketingEventsByRefByRefParticipationsResponse":{"type":"object","properties":{"eventId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"externalRef":{"nullable":true,"type":"string"},"byState":{"type":"object","additionalProperties":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}}},"required":["eventId","externalRef","byState"],"additionalProperties":false},"GetV1MarketingEventsByIdListsResponse":{"type":"object","properties":{"items":{"$ref":"#/components/schemas/Items45"},"nextCursor":{"nullable":true,"type":"string"}},"required":["items","nextCursor"],"additionalProperties":false},"Items45":{"type":"array","items":{"$ref":"#/components/schemas/ItemsItem162"}},"ItemsItem162":{"type":"object","properties":{"listId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"name":{"type":"string"}},"required":["listId","name"],"additionalProperties":false},"PutV1MarketingEventsByIdListsByListIdResponse":{"type":"object","properties":{"listId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"registered":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"skipped":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["listId","registered","skipped"],"additionalProperties":false},"PostV1MarketingEventsBatchUpdateResponse":{"type":"object","properties":{"done":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"missing":{"$ref":"#/components/schemas/Conflicts"}},"required":["done","missing"],"additionalProperties":false},"ItemsItem163":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"name":{"type":"string"},"description":{"nullable":true,"type":"string"},"status":{"type":"string","enum":["planned","active","completed","archived"]},"startsOn":{"nullable":true,"type":"string"},"endsOn":{"nullable":true,"type":"string"},"budgetCents":{"nullable":true,"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"ownerUserId":{"nullable":true,"type":"string"},"assetCount":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"createdAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"}},"required":["id","name","description","status","startsOn","endsOn","budgetCents","ownerUserId","assetCount","createdAt"],"additionalProperties":false},"Revenue2":{"type":"array","items":{"$ref":"#/components/schemas/RevenueItem2"}},"RevenueItem2":{"type":"object","properties":{"currency":{"type":"string"},"minor":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["currency","minor"],"additionalProperties":false},"ItemsItem164":{"type":"object","properties":{"label":{"type":"string","minLength":1,"maxLength":120},"company":{"nullable":true,"type":"string"},"line1":{"type":"string","minLength":1,"maxLength":200},"line2":{"nullable":true,"type":"string"},"city":{"type":"string","minLength":1,"maxLength":120},"region":{"nullable":true,"type":"string"},"postalCode":{"nullable":true,"type":"string"},"country":{"type":"string","minLength":1,"maxLength":120},"phone":{"nullable":true,"type":"string"},"website":{"nullable":true,"type":"string"},"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"createdAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"formatted":{"type":"string"}},"required":["label","company","line1","line2","city","region","postalCode","country","phone","website","id","createdAt","formatted"],"additionalProperties":false},"GetV1WhiteLabelResponse":{"type":"object","properties":{"productName":{"nullable":true,"type":"string"},"logoUrl":{"nullable":true,"type":"string"},"faviconUrl":{"nullable":true,"type":"string"},"appCss":{"nullable":true,"type":"string"},"loginMessage":{"nullable":true,"type":"string"},"primaryColor":{"nullable":true,"type":"string"},"accentColor":{"nullable":true,"type":"string"},"customCss":{"nullable":true,"type":"string"},"footerScripts":{"nullable":true,"type":"string"},"preferenceTemplate":{"nullable":true,"type":"string"}},"required":["productName","logoUrl","faviconUrl","appCss","loginMessage","primaryColor","accentColor","customCss","footerScripts","preferenceTemplate"],"additionalProperties":false},"ItemsItem165":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"name":{"type":"string"},"notes":{"nullable":true,"type":"string"},"metric":{"type":"string","enum":["revenue","conversions"]},"targetValue":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"currency":{"nullable":true,"type":"string"},"startsOn":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},"endsOn":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},"archivedAt":{"nullable":true,"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"progress":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"percent":{"type":"number"}},"required":["id","name","notes","metric","targetValue","currency","startsOn","endsOn","archivedAt","progress","percent"],"additionalProperties":false},"Items46":{"minItems":1,"maxItems":100,"type":"array","items":{"$ref":"#/components/schemas/ItemsItem166"}},"ItemsItem166":{"type":"object","properties":{"profileId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"email":{"type":"string","maxLength":320},"phone":{"type":"string","maxLength":40}}},"Targets":{"description":"Deprecated: use items","minItems":1,"maxItems":100,"type":"array","items":{"$ref":"#/components/schemas/ItemsItem166"}},"PostV1ConsentBatchWriteResponse":{"type":"object","properties":{"items":{"$ref":"#/components/schemas/Items47"},"succeeded":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"failed":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["items","succeeded","failed"],"additionalProperties":false},"Items47":{"type":"array","items":{"$ref":"#/components/schemas/ItemsItem167"}},"ItemsItem167":{"type":"object","properties":{"index":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"ok":{"type":"boolean"},"profileId":{"nullable":true,"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"message":{"type":"string"},"result":{"type":"string"}},"required":["index","ok","profileId"],"additionalProperties":false},"GetV1CampaignFoldersByIdAssetsResponse":{"type":"object","properties":{"items":{"$ref":"#/components/schemas/Items48"},"nextCursor":{"nullable":true,"type":"string"}},"required":["items","nextCursor"],"additionalProperties":false},"Items48":{"type":"array","items":{"$ref":"#/components/schemas/ItemsItem168"}},"ItemsItem168":{"type":"object","properties":{"assetType":{"type":"string","enum":["form","page","workflow","template"]},"assetId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},"required":["assetType","assetId"],"additionalProperties":false},"ItemsItem169":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"title":{"type":"string"},"notes":{"nullable":true,"type":"string"},"startsAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"endsAt":{"nullable":true,"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"allDay":{"type":"boolean"},"campaignId":{"nullable":true,"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},"required":["id","title","notes","startsAt","endsAt","allDay","campaignId"],"additionalProperties":false},"ItemsItem170":{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":120},"status":{"default":"active","type":"string","enum":["active","paused"]},"destinationUrl":{"type":"string","maxLength":2000,"format":"uri"},"rewardEvent":{"default":"referral_rewarded","type":"string","minLength":1,"maxLength":128,"pattern":"^[a-z][a-z0-9_]*$"},"conversionsPerReward":{"default":1,"type":"integer","minimum":1,"maximum":1000},"rewardNote":{"nullable":true,"type":"string"},"cookieDays":{"default":30,"type":"integer","minimum":1,"maximum":365},"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"createdAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"stats":{"$ref":"#/components/schemas/Stats3"}},"required":["name","status","destinationUrl","rewardEvent","conversionsPerReward","rewardNote","cookieDays","id","createdAt","stats"],"additionalProperties":false},"Stats3":{"type":"object","properties":{"links":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"clicks":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"conversions":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"rewards":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["links","clicks","conversions","rewards"],"additionalProperties":false},"ItemsItem171":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"programId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"profileId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"code":{"type":"string"},"url":{"type":"string"},"clicks":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"conversions":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"createdAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"}},"required":["id","programId","profileId","code","url","clicks","conversions","createdAt"],"additionalProperties":false},"ItemsItem172":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"platform":{"type":"string","enum":["meta","google","tiktok","snapchat","pinterest","linkedin"]},"name":{"type":"string"},"externalId":{"type":"string"},"config":{"type":"object","additionalProperties":{}},"status":{"type":"string"},"lastError":{"nullable":true,"type":"string"},"createdAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"}},"required":["id","platform","name","externalId","config","status","lastError","createdAt"],"additionalProperties":false},"Config116":{"type":"object","properties":{"pixelId":{"type":"string","maxLength":64},"pixelCode":{"type":"string","maxLength":64},"loginCustomerId":{"type":"string","maxLength":64},"apiVersion":{"type":"string","maxLength":64}}},"ItemsItem173":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"accountId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"segmentId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"name":{"type":"string"},"externalAudienceId":{"nullable":true,"type":"string"},"schedule":{"type":"string","enum":["manual","hourly","daily"]},"onlyMarketing":{"type":"boolean"},"enabled":{"type":"boolean"},"status":{"type":"string"},"lastSyncedAt":{"nullable":true,"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"lastError":{"nullable":true,"type":"string"},"memberCount":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"lastAdded":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"lastRemoved":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"matchRate":{"nullable":true,"type":"string"},"createdAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"}},"required":["id","accountId","segmentId","name","externalAudienceId","schedule","onlyMarketing","enabled","status","lastSyncedAt","lastError","memberCount","lastAdded","lastRemoved","matchRate","createdAt"],"additionalProperties":false},"GetV1AdsAccountsByIdConversionsResponse":{"type":"object","properties":{"accountId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"enabled":{"type":"boolean"},"eventMap":{"type":"object","additionalProperties":{"type":"string"}},"testEventCode":{"nullable":true,"type":"string"},"requireConsent":{"type":"boolean"}},"required":["accountId","enabled","eventMap","testEventCode","requireConsent"],"additionalProperties":false},"ItemsItem174":{"type":"object","properties":{"accountId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"name":{"type":"string","minLength":1,"maxLength":200},"objective":{"default":"traffic","type":"string","enum":["traffic","leads","sales","awareness","engagement"]},"dailyBudgetMinor":{"type":"integer","minimum":100,"maximum":100000000},"currency":{"type":"string","pattern":"^[A-Z]{3}$"},"startAt":{"nullable":true,"type":"string"},"endAt":{"nullable":true,"type":"string"},"targeting":{"$ref":"#/components/schemas/Targeting3"},"creative":{"$ref":"#/components/schemas/Creative"},"adSets":{"$ref":"#/components/schemas/AdSets"},"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"status":{"type":"string","enum":["draft","active","paused","archived","error"]},"externalIds":{"type":"object","additionalProperties":{"type":"string"}},"lastError":{"nullable":true,"type":"string"},"syncedAt":{"nullable":true,"type":"string"},"createdAt":{"type":"string"}},"required":["accountId","name","objective","dailyBudgetMinor","currency","startAt","endAt","targeting","creative","id","status","externalIds","lastError","syncedAt","createdAt"],"additionalProperties":false},"Targeting3":{"type":"object","properties":{"countries":{"default":[],"maxItems":50,"type":"array","items":{"type":"string","pattern":"^[A-Z]{2}$"}},"ageMin":{"type":"integer","minimum":13,"maximum":65},"ageMax":{"type":"integer","minimum":13,"maximum":65},"audienceIds":{"default":[],"maxItems":20,"type":"array","items":{"type":"string","maxLength":100}},"googleLocationIds":{"default":[],"maxItems":50,"type":"array","items":{"type":"string","pattern":"^\\d{1,10}$"}}},"required":["countries","audienceIds","googleLocationIds"],"additionalProperties":false},"Creative":{"type":"object","properties":{"headline":{"type":"string","minLength":1,"maxLength":255},"body":{"type":"string","minLength":1,"maxLength":2000},"linkUrl":{"type":"string","maxLength":2048,"format":"uri"},"imageUrl":{"type":"string","maxLength":2048,"format":"uri"},"cta":{"default":"LEARN_MORE","type":"string","pattern":"^[A-Z_]{2,40}$"},"descriptions":{"default":[],"maxItems":10,"type":"array","items":{"type":"string","minLength":1,"maxLength":90}}},"required":["headline","body","linkUrl","cta","descriptions"],"additionalProperties":false},"AdSets":{"nullable":true,"minItems":1,"maxItems":10,"type":"array","items":{"$ref":"#/components/schemas/AdSetsItem"}},"AdSetsItem":{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":200},"targeting":{"$ref":"#/components/schemas/Targeting3"},"dailyBudgetMinor":{"type":"integer","minimum":100,"maximum":100000000},"creatives":{"$ref":"#/components/schemas/Creatives"}},"required":["name","targeting","creatives"],"additionalProperties":false},"Creatives":{"minItems":1,"maxItems":5,"type":"array","items":{"$ref":"#/components/schemas/Creative"}},"Targeting4":{"type":"object","properties":{"countries":{"default":[],"maxItems":50,"type":"array","items":{"type":"string","pattern":"^[A-Z]{2}$"}},"ageMin":{"type":"integer","minimum":13,"maximum":65},"ageMax":{"type":"integer","minimum":13,"maximum":65},"audienceIds":{"default":[],"maxItems":20,"type":"array","items":{"type":"string","maxLength":100}},"googleLocationIds":{"default":[],"maxItems":50,"type":"array","items":{"type":"string","pattern":"^\\d{1,10}$"}}}},"Creative2":{"type":"object","properties":{"headline":{"type":"string","minLength":1,"maxLength":255},"body":{"type":"string","minLength":1,"maxLength":2000},"linkUrl":{"type":"string","maxLength":2048,"format":"uri"},"imageUrl":{"type":"string","maxLength":2048,"format":"uri"},"cta":{"default":"LEARN_MORE","type":"string","pattern":"^[A-Z_]{2,40}$"},"descriptions":{"default":[],"maxItems":10,"type":"array","items":{"type":"string","minLength":1,"maxLength":90}}},"required":["headline","body","linkUrl"]},"AdSets2":{"nullable":true,"minItems":1,"maxItems":10,"type":"array","items":{"$ref":"#/components/schemas/AdSetsItem2"}},"AdSetsItem2":{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":200},"targeting":{"$ref":"#/components/schemas/Targeting4"},"dailyBudgetMinor":{"type":"integer","minimum":100,"maximum":100000000},"creatives":{"$ref":"#/components/schemas/Creatives2"}},"required":["name","targeting","creatives"]},"Creatives2":{"minItems":1,"maxItems":5,"type":"array","items":{"$ref":"#/components/schemas/Creative2"}},"ItemsItem175":{"type":"object","properties":{"accountId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"externalFormId":{"type":"string","pattern":"^\\d{3,30}$"},"name":{"type":"string","minLength":1,"maxLength":200},"formId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"fieldMap":{"type":"object","additionalProperties":{"type":"string","pattern":"^[A-Za-z][A-Za-z0-9_]{0,63}$"}},"consentMap":{"default":{},"type":"object","additionalProperties":{"type":"string","pattern":"^[A-Za-z][A-Za-z0-9_]{0,63}$"}},"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"pageId":{"type":"string"},"enabled":{"type":"boolean"},"lastLeadAt":{"nullable":true,"type":"string"},"lastSyncedAt":{"nullable":true,"type":"string"},"lastError":{"nullable":true,"type":"string"}},"required":["accountId","externalFormId","name","formId","fieldMap","consentMap","id","pageId","enabled","lastLeadAt","lastSyncedAt","lastError"],"additionalProperties":false},"ItemsItem176":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"direction":{"type":"string","enum":["list_to_segment","segment_to_list"]},"sourceId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"sourceName":{"type":"string"},"runAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"targetName":{"type":"string"},"retireSource":{"type":"boolean"},"status":{"type":"string","enum":["scheduled","done","failed","cancelled"]},"targetId":{"nullable":true,"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"error":{"nullable":true,"type":"string"},"finishedAt":{"nullable":true,"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"}},"required":["id","direction","sourceId","sourceName","runAt","targetName","retireSource","status","targetId","error","finishedAt"],"additionalProperties":false},"PostV1ProfilesQueryBody":{"type":"object","properties":{"where":{"$ref":"#/components/schemas/Where3"},"orderBy":{"$ref":"#/components/schemas/OrderBy2"},"limit":{"default":50,"type":"integer","minimum":1,"maximum":200},"offset":{"default":0,"type":"integer","minimum":0,"maximum":100000}}},"Where3":{"default":[],"maxItems":10,"type":"array","items":{"$ref":"#/components/schemas/WhereItem"}},"WhereItem":{"type":"object","properties":{"field":{"type":"string","minLength":1,"maxLength":100},"op":{"type":"string","enum":["eq","ne","gt","gte","lt","lte","contains","starts_with","in","is_null","not_null"]},"value":{"$ref":"#/components/schemas/Value2"}},"required":["field","op"]},"Value2":{"anyOf":[{"type":"string","maxLength":500},{"type":"number"},{"type":"boolean"},{"maxItems":100,"type":"array","items":{"anyOf":[{"type":"string","maxLength":200},{"type":"number"}]}}]},"OrderBy2":{"default":[],"maxItems":3,"type":"array","items":{"type":"object","properties":{"field":{"type":"string","minLength":1,"maxLength":100},"dir":{"default":"asc","type":"string","enum":["asc","desc"]}},"required":["field"]}},"PostV1ProfilesQueryResponse":{"type":"object","properties":{"items":{"type":"array","items":{"type":"object","additionalProperties":{}}},"fields":{"type":"array","items":{"type":"string"}},"hasMore":{"type":"boolean"}},"required":["items","fields","hasMore"],"additionalProperties":false},"GetV1CurrenciesResponse":{"type":"object","properties":{"displayCurrency":{"type":"string"},"items":{"$ref":"#/components/schemas/Items49"}},"required":["displayCurrency","items"],"additionalProperties":false},"Items49":{"type":"array","items":{"$ref":"#/components/schemas/ItemsItem177"}},"ItemsItem177":{"type":"object","properties":{"code":{"type":"string"},"name":{"type":"string"},"symbol":{"type":"string"},"rate":{"nullable":true,"type":"number"},"isDisplay":{"type":"boolean"}},"required":["code","name","symbol","rate","isDisplay"],"additionalProperties":false},"ItemsItem178":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"value":{"type":"string"},"note":{"nullable":true,"type":"string"},"createdAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"}},"required":["id","value","note","createdAt"],"additionalProperties":false},"PutV1WorkspaceDashboardDomainResponse":{"type":"object","properties":{"host":{"type":"string"},"status":{"type":"string","enum":["pending","verified","failed"]},"cnameTarget":{"type":"string"},"verifiedAt":{"nullable":true,"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"lastCheckedAt":{"nullable":true,"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"lastError":{"nullable":true,"type":"string"}},"required":["host","status","cnameTarget","verifiedAt","lastCheckedAt","lastError"],"additionalProperties":false},"ItemsItem179":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"name":{"type":"string"},"status":{"type":"string"},"startedBy":{"$ref":"#/components/schemas/StartedBy"}},"required":["id","name","status","startedBy"],"additionalProperties":false},"StartedBy":{"type":"array","items":{"$ref":"#/components/schemas/StartedByItem"}},"StartedByItem":{"type":"object","properties":{"kind":{"type":"string","enum":["sequence","reply_label"]},"id":{"nullable":true,"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"name":{"type":"string"},"category":{"type":"string"}},"required":["kind","id","name","category"],"additionalProperties":false},"ItemsItem180":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"templateId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"n":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"snapshot":{"type":"object","additionalProperties":{}},"changedBy":{"nullable":true,"type":"string"},"createdAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"}},"required":["id","templateId","n","snapshot","changedBy","createdAt"],"additionalProperties":false},"ItemsItem181":{"type":"object","properties":{"id":{"type":"string"},"endpointId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"path":{"type":"string"},"op":{"type":"string"},"value":{}},"required":["id","endpointId","path","op"],"additionalProperties":false},"Items50":{"type":"array","items":{"$ref":"#/components/schemas/ItemsItem182"}},"ItemsItem182":{"type":"object","properties":{"legacyId":{"type":"string"},"targetId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"kind":{"type":"string"},"source":{"type":"string"}},"required":["legacyId","targetId","kind","source"],"additionalProperties":false},"Items51":{"type":"array","items":{"$ref":"#/components/schemas/ItemsItem183"}},"ItemsItem183":{"type":"object","properties":{"id":{"type":"string"},"workflowId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"workflowName":{"type":"string"},"nodeId":{"nullable":true,"type":"string"},"kind":{"type":"string","enum":["flow","step"]},"name":{"type":"string"},"match":{"nullable":true},"tags":{"type":"array","items":{"type":"string"}},"listIds":{"$ref":"#/components/schemas/Conflicts"},"enrolled":{"type":"number"},"converted":{"type":"number"},"rate":{"type":"number"}},"required":["id","workflowId","workflowName","nodeId","kind","name","match","tags","listIds","enrolled","converted","rate"],"additionalProperties":false},"GetV1GoalsByGoalIdTagsResponse":{"type":"object","properties":{"items":{"type":"array","items":{"type":"string"}},"nextCursor":{"nullable":true,"type":"string"}},"required":["items","nextCursor"],"additionalProperties":false},"PostV1SegmentsByIdMatchRunsResponse":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"segmentId":{"nullable":true,"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"status":{"type":"string","enum":["complete"]},"count":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"takenAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"}},"required":["id","segmentId","status","count","takenAt"],"additionalProperties":false},"Items52":{"type":"array","items":{"$ref":"#/components/schemas/PostV1SegmentsByIdMatchRunsResponse"}},"GetV1AttributesFieldsByKeyListsResponse":{"type":"object","properties":{"key":{"type":"string"},"listIds":{"$ref":"#/components/schemas/Conflicts"}},"required":["key","listIds"],"additionalProperties":false},"GetV1NotesByIdResponse":{"oneOf":[{"$ref":"#/components/schemas/GetV1NotesByIdResponseVariant"},{"$ref":"#/components/schemas/GetV1NotesByIdResponseVariant2"}]},"GetV1NotesByIdResponseVariant":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"profileId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"authorId":{"type":"string"},"body":{"type":"string"},"kind":{"default":"note","type":"string","enum":["note","email","call","meeting"]},"at":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"updatedAt":{"nullable":true,"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"resource":{"type":"string","enum":["contact"]}},"required":["id","profileId","authorId","body","kind","at","resource"],"additionalProperties":false},"GetV1NotesByIdResponseVariant2":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"companyId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"body":{"type":"string"},"authorId":{"type":"string"},"createdAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"resource":{"type":"string","enum":["company"]}},"required":["id","companyId","body","authorId","createdAt","resource"],"additionalProperties":false},"GetV1GeoIpsResponse":{"type":"object","properties":{"items":{"$ref":"#/components/schemas/Items53"}},"required":["items"],"additionalProperties":false},"Items53":{"type":"array","items":{"$ref":"#/components/schemas/ItemsItem184"}},"ItemsItem184":{"type":"object","properties":{"ip":{"type":"string"},"country":{"nullable":true,"type":"string"},"events":{"type":"number"},"people":{"type":"number"},"lastSeenAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"}},"required":["ip","country","events","people","lastSeenAt"],"additionalProperties":false},"GetV1GeoAddressesByKeyResponse":{"type":"object","properties":{"country":{"nullable":true,"type":"string"},"region":{"nullable":true,"type":"string"},"city":{"nullable":true,"type":"string"},"contacts":{"type":"number"}},"required":["country","region","city","contacts"],"additionalProperties":false},"PostV1SmsAiDraftsResponse":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"brief":{"type":"string"},"tone":{"nullable":true,"type":"string"},"channel":{"type":"string"},"text":{"type":"string"},"model":{"type":"string"},"draft":{"type":"boolean","enum":[true]}},"required":["id","brief","tone","channel","text","model","draft"],"additionalProperties":false},"GetV1BrandKitsByIdVoiceResponse":{"type":"object","properties":{"tone":{"nullable":true,"type":"string"},"competitors":{"type":"array","items":{"type":"string"}},"toneDescriptors":{"type":"array","items":{"type":"string"}},"languagePatterns":{"type":"array","items":{"type":"string"}}},"required":["tone","competitors","toneDescriptors","languagePatterns"],"additionalProperties":false},"ItemsItem185":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"autoPause":{"type":"boolean"},"bounceRate":{"type":"number"},"complaintRate":{"type":"number"},"minSample":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["id","autoPause","bounceRate","complaintRate","minSample"],"additionalProperties":false},"PostV1AgencyMoveSequenceBody":{"type":"object","properties":{"sourceId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"targetWorkspaceId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},"required":["sourceId","targetWorkspaceId"]},"PostV1AgencyMoveSequenceResponse":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"name":{"type":"string"},"note":{"type":"string"}},"required":["id","name","note"],"additionalProperties":false},"ItemsItem186":{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":120},"slug":{"type":"string","minLength":1,"maxLength":80,"pattern":"^[a-z0-9]+(?:-[a-z0-9]+)*$"},"tagline":{"nullable":true,"type":"string","maxLength":300},"logoUrl":{"nullable":true,"type":"string","maxLength":2048,"pattern":"^https?:\\/\\/"},"coverUrl":{"nullable":true,"type":"string","maxLength":2048,"pattern":"^https?:\\/\\/"},"accentColor":{"nullable":true,"type":"string","maxLength":32,"pattern":"^#[0-9a-fA-F]{3,8}$"},"fonts":{"nullable":true,"type":"object","properties":{"heading":{"type":"string","maxLength":80},"body":{"type":"string","maxLength":80}},"additionalProperties":false},"about":{"nullable":true,"type":"string","maxLength":50000},"social":{"$ref":"#/components/schemas/Social"},"senderName":{"nullable":true,"type":"string","maxLength":200},"route":{"$ref":"#/components/schemas/Route3"},"listId":{"nullable":true,"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"segmentId":{"nullable":true,"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"paidSegmentId":{"nullable":true,"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"language":{"default":"en","type":"string","minLength":2,"maxLength":16},"timezone":{"default":"UTC","type":"string","minLength":1,"maxLength":64},"footer":{"nullable":true,"type":"string","maxLength":1000},"seoTitle":{"nullable":true,"type":"string","maxLength":120},"seoDescription":{"nullable":true,"type":"string","maxLength":320},"seoImageUrl":{"nullable":true,"type":"string","maxLength":2048,"pattern":"^https?:\\/\\/"},"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"url":{"type":"string"},"createdAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"updatedAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"}},"required":["name","slug","id","url","createdAt","updatedAt"],"additionalProperties":false},"Social":{"nullable":true,"maxItems":12,"type":"array","items":{"$ref":"#/components/schemas/SocialItem"}},"SocialItem":{"type":"object","properties":{"network":{"type":"string","minLength":1,"maxLength":32},"href":{"type":"string","maxLength":2048,"pattern":"^https?:\\/\\/"}},"required":["network","href"],"additionalProperties":false},"Route3":{"nullable":true,"type":"object","properties":{"connectionId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"poolId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"routePolicyId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},"additionalProperties":false},"Social2":{"nullable":true,"maxItems":12,"type":"array","items":{"$ref":"#/components/schemas/SocialItem2"}},"SocialItem2":{"type":"object","properties":{"network":{"type":"string","minLength":1,"maxLength":32},"href":{"type":"string","maxLength":2048,"pattern":"^https?:\\/\\/"}},"required":["network","href"]},"Route4":{"nullable":true,"type":"object","properties":{"connectionId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"poolId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"routePolicyId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}},"ItemsItem187":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"publicationId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"name":{"type":"string"},"slug":{"type":"string"},"bio":{"nullable":true,"type":"string"},"avatarUrl":{"nullable":true,"type":"string"},"email":{"nullable":true,"type":"string"},"userId":{"nullable":true,"type":"string"},"isGuest":{"type":"boolean"}},"required":["id","publicationId","name","slug","bio","avatarUrl","email","userId","isGuest"],"additionalProperties":false},"ItemsItem188":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"publicationId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"name":{"type":"string"},"slug":{"type":"string"},"description":{"nullable":true,"type":"string"},"position":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["id","publicationId","name","slug","description","position"],"additionalProperties":false},"ItemsItem189":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"publicationId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"fromPath":{"type":"string"},"toPath":{"type":"string"},"status":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["id","publicationId","fromPath","toPath","status"],"additionalProperties":false},"ItemsItem190":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"publicationId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"domain":{"type":"string"},"status":{"type":"string","enum":["pending","verified","failed"]},"lastError":{"nullable":true,"type":"string"},"lastCheckedAt":{"nullable":true,"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"verifiedAt":{"nullable":true,"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"records":{"$ref":"#/components/schemas/Records3"},"routing":{"type":"string","enum":["live","pending_routing"]},"url":{"nullable":true,"type":"string"}},"required":["id","publicationId","domain","status","lastError","lastCheckedAt","verifiedAt","records","routing","url"],"additionalProperties":false},"Records3":{"type":"array","items":{"$ref":"#/components/schemas/RecordsItem3"}},"RecordsItem3":{"type":"object","properties":{"type":{"type":"string","enum":["TXT","CNAME"]},"name":{"type":"string"},"value":{"type":"string"}},"required":["type","name","value"],"additionalProperties":false},"Audience6":{"type":"object","properties":{"kind":{"type":"string","enum":["everyone","free","paid","tiers"]},"tierIds":{"$ref":"#/components/schemas/AllowedConnectionIds"}},"required":["kind"],"additionalProperties":false},"PostV1NewsletterPostsResponse":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"publicationId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"title":{"type":"string"},"subtitle":{"nullable":true,"type":"string"},"slug":{"type":"string"},"coverUrl":{"nullable":true,"type":"string"},"coverAlt":{"nullable":true,"type":"string"},"markdown":{"type":"string"},"excerpt":{"nullable":true,"type":"string"},"authorIds":{"$ref":"#/components/schemas/Conflicts"},"sectionIds":{"$ref":"#/components/schemas/Conflicts"},"tags":{"type":"array","items":{"type":"string"}},"audience":{"$ref":"#/components/schemas/Audience6"},"delivery":{"type":"string","enum":["web","email","both"]},"featured":{"type":"boolean"},"seoTitle":{"nullable":true,"type":"string"},"seoDescription":{"nullable":true,"type":"string"},"seoImageUrl":{"nullable":true,"type":"string"},"noindex":{"type":"boolean"},"status":{"type":"string","enum":["draft","scheduled","published","archived"]},"publishedAt":{"nullable":true,"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"scheduledAt":{"nullable":true,"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"campaignId":{"nullable":true,"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"paidCampaignId":{"nullable":true,"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"emailError":{"nullable":true,"type":"string"},"wordCount":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"readMinutes":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"url":{"type":"string"},"createdAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"updatedAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"}},"required":["id","publicationId","title","subtitle","slug","coverUrl","coverAlt","markdown","excerpt","authorIds","sectionIds","tags","audience","delivery","featured","seoTitle","seoDescription","seoImageUrl","noindex","status","publishedAt","scheduledAt","campaignId","paidCampaignId","emailError","wordCount","readMinutes","url","createdAt","updatedAt"],"additionalProperties":false},"PostV1NewsletterImportsResponse":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"publicationId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"source":{"type":"string","enum":["substack","beehiiv","ghost","wordpress","medium","rss"]},"status":{"type":"string","enum":["queued","running","completed","failed"]},"stats":{"$ref":"#/components/schemas/Stats4"},"error":{"nullable":true,"type":"string"},"createdAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"updatedAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"}},"required":["id","publicationId","source","status","stats","error","createdAt","updatedAt"],"additionalProperties":false},"Stats4":{"type":"object","properties":{"posts":{"default":0,"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"skipped":{"default":0,"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"redirects":{"default":0,"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"subscribers":{"default":0,"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"errors":{"default":[],"type":"array","items":{"type":"string"}}},"required":["posts","skipped","redirects","subscribers","errors"],"additionalProperties":false},"GetV1NewsletterStripeResponse":{"type":"object","properties":{"connected":{"type":"boolean"},"livemode":{"nullable":true,"type":"boolean"},"keyHint":{"nullable":true,"type":"string"},"webhookUrl":{"type":"string"},"lastEventAt":{"nullable":true,"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"}},"required":["connected","livemode","keyHint","webhookUrl","lastEventAt"],"additionalProperties":false},"ItemsItem191":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"name":{"type":"string"},"description":{"nullable":true,"type":"string"},"benefits":{"type":"array","items":{"type":"string"}},"currency":{"type":"string"},"monthlyMinor":{"nullable":true,"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"annualMinor":{"nullable":true,"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"trialDays":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"isFounding":{"type":"boolean"},"foundingLimit":{"nullable":true,"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"teamPlan":{"type":"boolean"},"status":{"type":"string","enum":["active","archived"]},"position":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"members":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["id","name","description","benefits","currency","monthlyMinor","annualMinor","trialDays","isFounding","foundingLimit","teamPlan","status","position"],"additionalProperties":false},"ItemsItem192":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"code":{"type":"string"},"percentOff":{"nullable":true,"type":"number"},"amountOffMinor":{"nullable":true,"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"currency":{"nullable":true,"type":"string"},"duration":{"type":"string"},"durationMonths":{"nullable":true,"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"maxRedemptions":{"nullable":true,"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"redeemed":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"expiresAt":{"nullable":true,"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"tierIds":{"$ref":"#/components/schemas/Conflicts"},"status":{"type":"string","enum":["active","archived"]}},"required":["id","code","percentOff","amountOffMinor","currency","duration","durationMonths","maxRedemptions","redeemed","expiresAt","tierIds","status"],"additionalProperties":false},"ItemsItem193":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"tierId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"interval":{"type":"string","enum":["month","year"]},"status":{"type":"string","enum":["pending_payment","paid","redeemed","expired"]},"recipientEmail":{"nullable":true,"type":"string"},"buyerEmail":{"type":"string"},"redeemUrl":{"type":"string"},"redeemedAt":{"nullable":true,"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"createdAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"}},"required":["id","tierId","interval","status","recipientEmail","buyerEmail","redeemUrl","redeemedAt","createdAt"],"additionalProperties":false},"PostV1NewsletterGiftsBody":{"type":"object","properties":{"buyerEmail":{"type":"string","format":"email","pattern":"^(?:[A-Za-z0-9_'+\\-]+\\.)*[A-Za-z0-9_'+\\-]*[A-Za-z0-9_+-]@(?:[A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$"},"recipientEmail":{"type":"string","format":"email","pattern":"^(?:[A-Za-z0-9_'+\\-]+\\.)*[A-Za-z0-9_'+\\-]*[A-Za-z0-9_+-]@(?:[A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$"},"tierId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"interval":{"default":"year","type":"string","enum":["month","year"]},"message":{"type":"string","maxLength":500},"successUrl":{"type":"string","format":"uri"},"cancelUrl":{"type":"string","format":"uri"}},"required":["buyerEmail","tierId"]},"PostV1NewsletterGiftsResponse":{"type":"object","properties":{"gift":{"$ref":"#/components/schemas/ItemsItem193"},"checkoutUrl":{"type":"string"}},"required":["gift","checkoutUrl"],"additionalProperties":false},"ItemsItem194":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"profileId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"email":{"nullable":true,"type":"string"},"tierId":{"nullable":true,"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"tierName":{"nullable":true,"type":"string"},"status":{"type":"string","enum":["trialing","active","past_due","canceled","paused","comped","gifted"]},"interval":{"nullable":true,"type":"string","enum":["month","year"]},"source":{"type":"string"},"mrrMinor":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"currency":{"nullable":true,"type":"string"},"periodEnd":{"nullable":true,"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"trialEnd":{"nullable":true,"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"cancelAtPeriodEnd":{"type":"boolean"},"stripeCustomerId":{"nullable":true,"type":"string"},"stripeSubscriptionId":{"nullable":true,"type":"string"}},"required":["id","profileId","email","tierId","tierName","status","interval","source","mrrMinor","currency","periodEnd","trialEnd","cancelAtPeriodEnd","stripeCustomerId","stripeSubscriptionId"],"additionalProperties":false},"ItemsItem195":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"groupId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"email":{"type":"string"},"profileId":{"nullable":true,"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"status":{"type":"string","enum":["active","removed"]}},"required":["id","groupId","email","profileId","status"],"additionalProperties":false},"Popup":{"default":{"mode":"off","delaySeconds":8,"scrollPercent":0,"frequencyDays":7,"headline":""},"type":"object","properties":{"mode":{"default":"off","type":"string","enum":["off","popup","slide_in"]},"delaySeconds":{"default":8,"type":"integer","minimum":0,"maximum":600},"scrollPercent":{"default":0,"type":"integer","minimum":0,"maximum":100},"frequencyDays":{"default":7,"type":"integer","minimum":0,"maximum":365},"headline":{"default":"","type":"string","maxLength":160}},"required":["mode","delaySeconds","scrollPercent","frequencyDays","headline"],"additionalProperties":false},"Scroll":{"default":{"enabled":false,"percent":60},"type":"object","properties":{"enabled":{"default":false,"type":"boolean"},"percent":{"default":60,"type":"integer","minimum":5,"maximum":100}},"required":["enabled","percent"],"additionalProperties":false},"GetV1NewsletterGrowthReferralsByPublicationIdResponse":{"type":"object","properties":{"enabled":{"type":"boolean"},"programId":{"nullable":true,"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"pending":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"counted":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"flagged":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"milestones":{"$ref":"#/components/schemas/Milestones"}},"required":["enabled","programId","pending","counted","flagged","milestones"],"additionalProperties":false},"Milestones":{"type":"array","items":{"$ref":"#/components/schemas/MilestonesItem"}},"MilestonesItem":{"type":"object","properties":{"threshold":{"type":"integer","minimum":1,"maximum":100000},"rewardKind":{"type":"string","enum":["download","coupon","merch","paid_comp"]},"rewardLabel":{"type":"string","minLength":1,"maxLength":160},"rewardValue":{"default":"","type":"string","maxLength":1000},"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"awarded":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["threshold","rewardKind","rewardLabel","rewardValue","id","awarded"],"additionalProperties":false},"ItemsItem196":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"workspaceId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"publicationId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"title":{"type":"string"},"description":{"type":"string"},"bountyMinor":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"currency":{"type":"string"},"holdDays":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"maxConversions":{"nullable":true,"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"status":{"type":"string"},"mine":{"type":"boolean"},"myApplication":{"nullable":true,"type":"string"},"conversions":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["id","workspaceId","publicationId","title","description","bountyMinor","currency","holdDays","maxConversions","status","mine","myApplication","conversions"],"additionalProperties":false},"ItemsItem197":{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":200},"contactName":{"nullable":true,"type":"string","maxLength":200},"contactEmail":{"nullable":true,"type":"string","maxLength":320,"format":"email","pattern":"^(?:[A-Za-z0-9_'+\\-]+\\.)*[A-Za-z0-9_'+\\-]*[A-Za-z0-9_+-]@(?:[A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$"},"website":{"nullable":true,"type":"string","maxLength":2048,"format":"uri"},"logoUrl":{"nullable":true,"type":"string","maxLength":2048,"format":"uri"},"notes":{"nullable":true,"type":"string","maxLength":5000},"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"archived":{"type":"boolean"},"createdAt":{"type":"string"}},"required":["name","id","archived","createdAt"],"additionalProperties":false},"ItemsItem198":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"advertiserId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"advertiserName":{"type":"string"},"publicationId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"name":{"type":"string"},"slot":{"type":"string"},"channel":{"type":"string","enum":["email","web","both"]},"startsOn":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},"endsOn":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},"pricing":{"type":"string","enum":["flat","cpm","cpc"]},"priceMinor":{"type":"number"},"currency":{"type":"string"},"status":{"type":"string","enum":["proposed","approved","scheduled","run","invoiced","paid","canceled"]},"notes":{"nullable":true,"type":"string"},"reportUrl":{"type":"string"},"createdAt":{"type":"string"}},"required":["id","advertiserId","advertiserName","publicationId","name","slot","channel","startsOn","endsOn","pricing","priceMinor","currency","status","notes","reportUrl","createdAt"],"additionalProperties":false},"ItemsItem199":{"type":"object","properties":{"headline":{"type":"string","minLength":1,"maxLength":200},"body":{"default":"","type":"string","maxLength":1000},"imageUrl":{"default":null,"nullable":true,"type":"string","maxLength":2048,"format":"uri"},"href":{"type":"string","maxLength":2048,"format":"uri"},"cta":{"default":"Learn more","type":"string","minLength":1,"maxLength":60},"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"bookingId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"status":{"type":"string","enum":["draft","pending","approved","rejected"]},"reviewNote":{"nullable":true,"type":"string"},"decidedAt":{"nullable":true,"type":"string"}},"required":["headline","body","imageUrl","href","cta","id","bookingId","status","reviewNote","decidedAt"],"additionalProperties":false},"GetV1SponsorsBookingsByIdReportResponse":{"type":"object","properties":{"booking":{"type":"string"},"sponsor":{"type":"string"},"publication":{"nullable":true,"type":"string"},"startsOn":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},"endsOn":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},"totals":{"$ref":"#/components/schemas/Totals3"},"placements":{"$ref":"#/components/schemas/Placements"}},"required":["booking","sponsor","publication","startsOn","endsOn","totals","placements"],"additionalProperties":false},"Totals3":{"type":"object","properties":{"impressions":{"type":"number"},"opens":{"type":"number"},"clicks":{"type":"number"},"ctr":{"type":"number"}},"required":["impressions","opens","clicks","ctr"],"additionalProperties":false},"Placements":{"type":"array","items":{"$ref":"#/components/schemas/PlacementsItem"}},"PlacementsItem":{"type":"object","properties":{"placementId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"refKind":{"type":"string","enum":["campaign","post"]},"refId":{"type":"string"},"slot":{"type":"string"},"impressions":{"type":"number"},"opens":{"type":"number"},"clicks":{"type":"number"},"ctr":{"type":"number"}},"required":["placementId","refKind","refId","slot","impressions","opens","clicks","ctr"],"additionalProperties":false},"GetV1SponsorsPublicationsByPublicationIdRulesResponse":{"type":"object","properties":{"maxAdsPerIssue":{"type":"integer","minimum":0,"maximum":10},"slots":{"maxItems":10,"type":"array","items":{"type":"string","pattern":"^[a-z0-9_-]{1,32}$"}},"autoFill":{"type":"boolean"},"allowNetwork":{"type":"boolean"}},"required":["maxAdsPerIssue","slots","autoFill","allowNetwork"],"additionalProperties":false},"Prices":{"maxItems":20,"type":"array","items":{"$ref":"#/components/schemas/PricesItem"}},"PricesItem":{"type":"object","properties":{"label":{"type":"string","minLength":1,"maxLength":120},"slot":{"type":"string","maxLength":32},"pricing":{"type":"string","enum":["flat","cpm","cpc"]},"priceMinor":{"type":"integer","minimum":0,"maximum":9007199254740991}},"required":["label","slot","pricing","priceMinor"],"additionalProperties":false},"Live":{"type":"object","properties":{"audienceSize":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"openRatePct":{"nullable":true,"type":"number"}},"required":["audienceSize","openRatePct"],"additionalProperties":false},"ItemsItem200":{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":200},"website":{"nullable":true,"type":"string","maxLength":2048,"format":"uri"},"logoUrl":{"nullable":true,"type":"string","maxLength":2048,"format":"uri"},"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},"required":["name","id"],"additionalProperties":false},"ItemsItem201":{"type":"object","properties":{"advertiserId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"name":{"type":"string","minLength":1,"maxLength":200},"pricing":{"type":"string","enum":["flat","cpm","cpc"]},"rateMinor":{"type":"integer","minimum":1,"maximum":1000000000},"currency":{"default":"USD","type":"string","minLength":3,"maxLength":3},"budgetMinor":{"default":0,"type":"integer","minimum":0,"maximum":9007199254740991},"targetCategories":{"default":[],"maxItems":10,"type":"array","items":{"type":"string","minLength":1,"maxLength":40}},"minAudience":{"default":0,"type":"integer","minimum":0,"maximum":9007199254740991},"startsOn":{"nullable":true,"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},"endsOn":{"nullable":true,"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},"creative":{"$ref":"#/components/schemas/Creative3"},"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"advertiserName":{"type":"string"},"status":{"type":"string","enum":["draft","published","paused","ended"]},"spentMinor":{"type":"number"},"impressions":{"type":"number"},"clicks":{"type":"number"}},"required":["advertiserId","name","pricing","rateMinor","currency","budgetMinor","targetCategories","minAudience","creative","id","advertiserName","status","spentMinor","impressions","clicks"],"additionalProperties":false},"Creative3":{"type":"object","properties":{"sponsor":{"type":"string","minLength":1,"maxLength":200},"headline":{"type":"string","minLength":1,"maxLength":200},"body":{"default":"","type":"string","maxLength":1000},"imageUrl":{"default":null,"nullable":true,"type":"string","maxLength":2048,"format":"uri"},"href":{"type":"string","maxLength":2048,"format":"uri"},"cta":{"default":"Learn more","type":"string","minLength":1,"maxLength":60}},"required":["sponsor","headline","body","imageUrl","href","cta"],"additionalProperties":false},"PostV1SponsorsNetworkCampaignsBody":{"type":"object","properties":{"advertiserId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"name":{"type":"string","minLength":1,"maxLength":200},"pricing":{"type":"string","enum":["flat","cpm","cpc"]},"rateMinor":{"type":"integer","minimum":1,"maximum":1000000000},"currency":{"default":"USD","type":"string","minLength":3,"maxLength":3},"budgetMinor":{"default":0,"type":"integer","minimum":0,"maximum":9007199254740991},"targetCategories":{"default":[],"maxItems":10,"type":"array","items":{"type":"string","minLength":1,"maxLength":40}},"minAudience":{"default":0,"type":"integer","minimum":0,"maximum":9007199254740991},"startsOn":{"nullable":true,"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}(?:[T ]\\d{2}:\\d{2}(?::\\d{2}(?:\\.\\d+)?)?(?:Z|[+-]\\d{2}:?\\d{2})?)?$","format":"date"},"endsOn":{"nullable":true,"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}(?:[T ]\\d{2}:\\d{2}(?::\\d{2}(?:\\.\\d+)?)?(?:Z|[+-]\\d{2}:?\\d{2})?)?$","format":"date"},"creative":{"$ref":"#/components/schemas/Creative4"}},"required":["advertiserId","name","pricing","rateMinor","creative"]},"Creative4":{"type":"object","properties":{"sponsor":{"type":"string","minLength":1,"maxLength":200},"headline":{"type":"string","minLength":1,"maxLength":200},"body":{"default":"","type":"string","maxLength":1000},"imageUrl":{"default":null,"nullable":true,"type":"string","maxLength":2048,"format":"uri"},"href":{"type":"string","maxLength":2048,"format":"uri"},"cta":{"default":"Learn more","type":"string","minLength":1,"maxLength":60}},"required":["sponsor","headline","href"]},"GetV1NewsletterEngagementSettingsResponse":{"type":"object","properties":{"commentsMode":{"type":"string","enum":["off","everyone","members","paid"]},"moderation":{"type":"string","enum":["none","first","all"]},"holdLinks":{"type":"boolean"},"reactionsEnabled":{"type":"boolean"},"reactionSet":{"minItems":1,"maxItems":12,"type":"array","items":{"type":"string","minLength":1,"maxLength":16}},"maxPerHour":{"type":"integer","minimum":1,"maximum":200},"minSecondsBetween":{"type":"integer","minimum":0,"maximum":600},"notifyComments":{"default":true,"type":"boolean"},"publicationId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},"required":["commentsMode","moderation","holdLinks","reactionsEnabled","reactionSet","maxPerHour","minSecondsBetween","notifyComments","publicationId"],"additionalProperties":false},"ItemsItem202":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"publicationId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"postId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"parentId":{"nullable":true,"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"profileId":{"nullable":true,"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"displayName":{"type":"string"},"body":{"type":"string"},"status":{"type":"string","enum":["published","pending","spam","removed","deleted"]},"pinned":{"type":"boolean"},"isAuthor":{"type":"boolean"},"likeCount":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"editedAt":{"nullable":true,"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"createdAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"}},"required":["id","publicationId","postId","parentId","profileId","displayName","body","status","pinned","isAuthor","likeCount","editedAt","createdAt"],"additionalProperties":false},"ItemsItem203":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"publicationId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"profileId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"reason":{"nullable":true,"type":"string"},"createdAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"}},"required":["id","publicationId","profileId","reason","createdAt"],"additionalProperties":false},"ItemsItem204":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"kind":{"type":"string","enum":["poll","survey"]},"publicationId":{"nullable":true,"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"postId":{"nullable":true,"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"title":{"type":"string"},"description":{"nullable":true,"type":"string"},"status":{"type":"string","enum":["open","closed"]},"questions":{"$ref":"#/components/schemas/Questions"},"responses":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"createdAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"block":{"nullable":true,"type":"object","additionalProperties":{}},"listId":{"nullable":true,"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"thankYouText":{"nullable":true,"type":"string"},"views":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"anonymousPath":{"nullable":true,"type":"string"}},"required":["id","kind","publicationId","postId","title","description","status","questions","responses","createdAt","block","listId","thankYouText","views","anonymousPath"],"additionalProperties":false},"Questions":{"type":"array","items":{"$ref":"#/components/schemas/QuestionsItem"}},"QuestionsItem":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"prompt":{"type":"string"},"kind":{"type":"string","enum":["single","multi","text","rating","email"]},"options":{"$ref":"#/components/schemas/Options"},"required":{"type":"boolean"},"attributeKey":{"nullable":true,"type":"string"},"position":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["id","prompt","kind","options","required","attributeKey","position"],"additionalProperties":false},"Options":{"type":"array","items":{"$ref":"#/components/schemas/OptionsItem"}},"OptionsItem":{"type":"object","properties":{"id":{"type":"string","pattern":"^[a-z0-9_-]{1,40}$"},"label":{"type":"string","minLength":1,"maxLength":200}},"required":["id","label"],"additionalProperties":false},"Questions2":{"minItems":1,"maxItems":30,"type":"array","items":{"$ref":"#/components/schemas/QuestionsItem2"}},"QuestionsItem2":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"prompt":{"type":"string","minLength":1,"maxLength":500},"kind":{"type":"string","enum":["single","multi","text","rating","email"]},"options":{"$ref":"#/components/schemas/Options2"},"required":{"default":true,"type":"boolean"},"attributeKey":{"nullable":true,"type":"string","pattern":"^[a-z][a-z0-9_]{0,63}$"}},"required":["prompt","kind"]},"Options2":{"maxItems":20,"type":"array","items":{"$ref":"#/components/schemas/OptionsItem2"}},"OptionsItem2":{"anyOf":[{"type":"string","minLength":1,"maxLength":200},{"type":"object","properties":{"id":{"type":"string","pattern":"^[a-z0-9_-]{1,40}$"},"label":{"type":"string","minLength":1,"maxLength":200}},"required":["label"]}]},"Options3":{"type":"array","items":{"$ref":"#/components/schemas/OptionsItem3"}},"OptionsItem3":{"type":"object","properties":{"id":{"type":"string"},"label":{"type":"string"},"votes":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["id","label","votes"],"additionalProperties":false},"ItemsItem205":{"type":"object","properties":{"respondent":{"type":"string"},"profileId":{"nullable":true,"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"contactProfileId":{"nullable":true,"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"anonymous":{"type":"boolean"},"submittedAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"answers":{"$ref":"#/components/schemas/Answers"}},"required":["respondent","profileId","contactProfileId","anonymous","submittedAt","answers"],"additionalProperties":false},"Answers":{"type":"array","items":{"$ref":"#/components/schemas/AnswersItem"}},"AnswersItem":{"type":"object","properties":{"questionId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"optionIds":{"type":"array","items":{"type":"string"}},"value":{"nullable":true,"type":"string"}},"required":["questionId","optionIds","value"],"additionalProperties":false},"ItemsItem206":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"quote":{"type":"string"},"note":{"nullable":true,"type":"string"},"notePublic":{"type":"boolean"},"createdAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"}},"required":["id","quote","note","notePublic","createdAt"],"additionalProperties":false},"ItemsItem207":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"status":{"type":"string","enum":["draft","live","paused","archived"]},"name":{"type":"string"},"layout":{"type":"string","enum":["modal","banner_top","banner_bottom","fullscreen","bottom_sheet"]},"content":{"$ref":"#/components/schemas/Content2"},"style":{"$ref":"#/components/schemas/Style"},"audience":{"$ref":"#/components/schemas/Audience7"},"trigger":{"$ref":"#/components/schemas/Trigger"},"platforms":{"type":"array","items":{"type":"string","enum":["ios","android","web"]}},"frequency":{"$ref":"#/components/schemas/Frequency"},"priority":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"startAt":{"nullable":true,"type":"string"},"endAt":{"nullable":true,"type":"string"},"variants":{"$ref":"#/components/schemas/Variants5"},"createdAt":{"type":"string"},"updatedAt":{"type":"string"}},"required":["id","status","name","layout","content","style","audience","trigger","platforms","frequency","priority","startAt","endAt","variants","createdAt","updatedAt"],"additionalProperties":false},"Content2":{"type":"object","properties":{"blocks":{"$ref":"#/components/schemas/Blocks"},"html":{"type":"string","maxLength":50000}},"required":["blocks"],"additionalProperties":false},"Blocks":{"default":[],"maxItems":20,"type":"array","items":{"$ref":"#/components/schemas/BlocksItem"}},"BlocksItem":{"oneOf":[{"type":"object","properties":{"type":{"type":"string","enum":["heading"]},"text":{"type":"string","maxLength":200}},"required":["type","text"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["text"]},"text":{"type":"string","maxLength":2000}},"required":["type","text"],"additionalProperties":false},{"$ref":"#/components/schemas/BlocksItemVariant"},{"$ref":"#/components/schemas/BlocksItemVariant2"},{"$ref":"#/components/schemas/BlocksItemVariant3"}]},"BlocksItemVariant":{"type":"object","properties":{"type":{"type":"string","enum":["image"]},"url":{"type":"string","maxLength":2048,"format":"uri"},"alt":{"default":"","type":"string","maxLength":200}},"required":["type","url","alt"],"additionalProperties":false},"BlocksItemVariant2":{"type":"object","properties":{"type":{"type":"string","enum":["buttons"]},"buttons":{"$ref":"#/components/schemas/Buttons2"}},"required":["type","buttons"],"additionalProperties":false},"Buttons2":{"minItems":1,"maxItems":3,"type":"array","items":{"$ref":"#/components/schemas/ButtonsItem3"}},"ButtonsItem3":{"type":"object","properties":{"label":{"type":"string","minLength":1,"maxLength":60},"action":{"type":"string","enum":["dismiss","deep_link","url","event"]},"value":{"type":"string","maxLength":2048},"style":{"default":"primary","type":"string","enum":["primary","secondary"]}},"required":["label","action","style"],"additionalProperties":false},"BlocksItemVariant3":{"type":"object","properties":{"type":{"type":"string","enum":["component"]},"componentKey":{"type":"string","pattern":"^[a-z][a-z0-9_]{0,63}$"},"fields":{"default":{},"type":"object","additionalProperties":{}}},"required":["type","componentKey","fields"],"additionalProperties":false},"Style":{"type":"object","properties":{"background":{"default":"#ffffff","type":"string","pattern":"^#[0-9a-fA-F]{3,8}$"},"textColor":{"default":"#111111","type":"string","pattern":"^#[0-9a-fA-F]{3,8}$"},"accentColor":{"default":"#2563eb","type":"string","pattern":"^#[0-9a-fA-F]{3,8}$"},"radius":{"default":12,"type":"integer","minimum":0,"maximum":48},"dismissible":{"default":true,"type":"boolean"}},"required":["background","textColor","accentColor","radius","dismissible"],"additionalProperties":false},"Audience7":{"oneOf":[{"type":"object","properties":{"kind":{"type":"string","enum":["everyone"]}},"required":["kind"],"additionalProperties":false},{"$ref":"#/components/schemas/AudienceVariant"},{"$ref":"#/components/schemas/AudienceVariant2"}]},"AudienceVariant":{"type":"object","properties":{"kind":{"type":"string","enum":["segments"]},"segmentIds":{"$ref":"#/components/schemas/Ids2"}},"required":["kind","segmentIds"],"additionalProperties":false},"AudienceVariant2":{"type":"object","properties":{"kind":{"type":"string","enum":["lists"]},"listIds":{"$ref":"#/components/schemas/Ids2"}},"required":["kind","listIds"],"additionalProperties":false},"Trigger":{"oneOf":[{"type":"object","properties":{"type":{"type":"string","enum":["app_open"]}},"required":["type"],"additionalProperties":false},{"$ref":"#/components/schemas/TriggerVariant"},{"$ref":"#/components/schemas/TriggerVariant2"},{"$ref":"#/components/schemas/TriggerVariant3"}]},"TriggerVariant":{"type":"object","properties":{"type":{"type":"string","enum":["screen_view"]},"name":{"type":"string","minLength":1,"maxLength":128}},"required":["type","name"],"additionalProperties":false},"TriggerVariant2":{"type":"object","properties":{"type":{"type":"string","enum":["event"]},"name":{"type":"string","minLength":1,"maxLength":128},"filters":{"$ref":"#/components/schemas/Filters8"}},"required":["type","name","filters"],"additionalProperties":false},"Filters8":{"default":[],"maxItems":10,"type":"array","items":{"$ref":"#/components/schemas/FiltersItem7"}},"FiltersItem7":{"type":"object","properties":{"property":{"type":"string","minLength":1,"maxLength":128},"op":{"type":"string","enum":["eq","ne","contains","gt","lt","exists"]},"value":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"}]}},"required":["property","op"],"additionalProperties":false},"TriggerVariant3":{"type":"object","properties":{"type":{"type":"string","enum":["page_url"]},"match":{"type":"string","enum":["equals","contains","starts_with"]},"value":{"type":"string","minLength":1,"maxLength":2048}},"required":["type","match","value"],"additionalProperties":false},"Frequency":{"type":"object","properties":{"mode":{"type":"string","enum":["once","once_per_session","every_time","max"]},"max":{"type":"integer","minimum":1,"maximum":1000},"perDays":{"type":"integer","minimum":1,"maximum":365}},"required":["mode"],"additionalProperties":false},"Variants5":{"type":"array","items":{"$ref":"#/components/schemas/VariantsItem6"}},"VariantsItem6":{"type":"object","properties":{"key":{"type":"string","pattern":"^[a-z0-9_-]{1,16}$"},"weight":{"type":"integer","minimum":1,"maximum":1000},"content":{"$ref":"#/components/schemas/Content2"}},"required":["key","weight","content"],"additionalProperties":false},"Blocks2":{"default":[],"maxItems":20,"type":"array","items":{"$ref":"#/components/schemas/BlocksItem2"}},"BlocksItem2":{"oneOf":[{"type":"object","properties":{"type":{"type":"string","enum":["heading"]},"text":{"type":"string","maxLength":200}},"required":["type","text"]},{"type":"object","properties":{"type":{"type":"string","enum":["text"]},"text":{"type":"string","maxLength":2000}},"required":["type","text"]},{"$ref":"#/components/schemas/BlocksItemVariant4"},{"$ref":"#/components/schemas/BlocksItemVariant5"},{"$ref":"#/components/schemas/BlocksItemVariant6"}]},"BlocksItemVariant4":{"type":"object","properties":{"type":{"type":"string","enum":["image"]},"url":{"type":"string","maxLength":2048,"format":"uri"},"alt":{"default":"","type":"string","maxLength":200}},"required":["type","url"]},"BlocksItemVariant5":{"type":"object","properties":{"type":{"type":"string","enum":["buttons"]},"buttons":{"$ref":"#/components/schemas/Buttons3"}},"required":["type","buttons"]},"Buttons3":{"minItems":1,"maxItems":3,"type":"array","items":{"$ref":"#/components/schemas/ButtonsItem4"}},"ButtonsItem4":{"type":"object","properties":{"label":{"type":"string","minLength":1,"maxLength":60},"action":{"type":"string","enum":["dismiss","deep_link","url","event"]},"value":{"type":"string","maxLength":2048},"style":{"default":"primary","type":"string","enum":["primary","secondary"]}},"required":["label","action"]},"BlocksItemVariant6":{"type":"object","properties":{"type":{"type":"string","enum":["component"]},"componentKey":{"type":"string","pattern":"^[a-z][a-z0-9_]{0,63}$"},"fields":{"default":{},"type":"object","additionalProperties":{}}},"required":["type","componentKey"]},"AudienceVariant3":{"type":"object","properties":{"kind":{"type":"string","enum":["segments"]},"segmentIds":{"$ref":"#/components/schemas/Ids2"}},"required":["kind","segmentIds"]},"AudienceVariant4":{"type":"object","properties":{"kind":{"type":"string","enum":["lists"]},"listIds":{"$ref":"#/components/schemas/Ids2"}},"required":["kind","listIds"]},"TriggerVariant4":{"type":"object","properties":{"type":{"type":"string","enum":["event"]},"name":{"type":"string","minLength":1,"maxLength":128},"filters":{"$ref":"#/components/schemas/Filters9"}},"required":["type","name"]},"Filters9":{"default":[],"maxItems":10,"type":"array","items":{"$ref":"#/components/schemas/FiltersItem8"}},"FiltersItem8":{"type":"object","properties":{"property":{"type":"string","minLength":1,"maxLength":128},"op":{"type":"string","enum":["eq","ne","contains","gt","lt","exists"]},"value":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"}]}},"required":["property","op"]},"TriggerVariant5":{"type":"object","properties":{"type":{"type":"string","enum":["page_url"]},"match":{"type":"string","enum":["equals","contains","starts_with"]},"value":{"type":"string","minLength":1,"maxLength":2048}},"required":["type","match","value"]},"VariantsItem7":{"type":"object","properties":{"key":{"type":"string","pattern":"^[a-z0-9_-]{1,16}$"},"weight":{"type":"integer","minimum":1,"maximum":1000},"content":{"$ref":"#/components/schemas/Content3"}},"required":["key","weight","content"]},"Content3":{"type":"object","properties":{"blocks":{"$ref":"#/components/schemas/Blocks2"},"html":{"type":"string","maxLength":50000}}},"Revenue3":{"type":"object","properties":{"orders":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"byCurrency":{"type":"array","items":{"type":"object","properties":{"currency":{"type":"string"},"minor":{"type":"number"}},"required":["currency","minor"],"additionalProperties":false}}},"required":["orders","byCurrency"],"additionalProperties":false},"ItemsItem208":{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":200},"latitude":{"type":"number","minimum":-90,"maximum":90},"longitude":{"type":"number","minimum":-180,"maximum":180},"radiusM":{"type":"integer","minimum":100,"maximum":100000},"active":{"default":true,"type":"boolean"},"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"createdAt":{"type":"string"}},"required":["name","latitude","longitude","radiusM","active","id","createdAt"],"additionalProperties":false},"Profile4":{"type":"object","properties":{"externalId":{"type":"string","minLength":1,"maxLength":256},"email":{"type":"string","maxLength":320},"phoneNumber":{"type":"string","maxLength":40},"anonymousId":{"type":"string","minLength":1,"maxLength":128}}},"PostClientInAppEventsResponse":{"type":"object","properties":{"ok":{"type":"boolean","enum":[true]},"recorded":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["ok","recorded"],"additionalProperties":false},"ItemsItem209":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"key":{"type":"string"},"name":{"type":"string"},"description":{"type":"string"},"fields":{"$ref":"#/components/schemas/Fields2"},"events":{"type":"array","items":{"type":"string"}},"createdAt":{"type":"string"}},"required":["id","key","name","description","fields","events","createdAt"],"additionalProperties":false},"Fields2":{"type":"array","items":{"$ref":"#/components/schemas/FieldsItem2"}},"FieldsItem2":{"type":"object","properties":{"key":{"type":"string","pattern":"^[a-z][a-z0-9_]{0,63}$"},"label":{"type":"string","minLength":1,"maxLength":100},"type":{"type":"string","enum":["text","number","boolean","url","image"]},"required":{"default":false,"type":"boolean"}},"required":["key","label","type","required"],"additionalProperties":false},"FieldsItem3":{"type":"object","properties":{"key":{"type":"string","pattern":"^[a-z][a-z0-9_]{0,63}$"},"label":{"type":"string","minLength":1,"maxLength":100},"type":{"type":"string","enum":["text","number","boolean","url","image"]},"required":{"default":false,"type":"boolean"}},"required":["key","label","type"]},"GetV1BenchmarksSettingsResponse":{"type":"object","properties":{"optedIn":{"type":"boolean"},"industry":{"nullable":true,"type":"string"},"region":{"nullable":true,"type":"string"},"sizeBand":{"nullable":true,"type":"string"},"revenueBand":{"nullable":true,"type":"string"},"aovBand":{"nullable":true,"type":"string"},"consent":{"$ref":"#/components/schemas/Consent"},"hub":{"$ref":"#/components/schemas/Hub"},"industries":{"type":"array","items":{"type":"object","properties":{"key":{"type":"string"},"label":{"type":"string"}},"required":["key","label"],"additionalProperties":false}},"regions":{"type":"array","items":{"type":"object","properties":{"key":{"type":"string"},"label":{"type":"string"}},"required":["key","label"],"additionalProperties":false}},"sizes":{"type":"array","items":{"type":"object","properties":{"key":{"type":"string"},"label":{"type":"string"}},"required":["key","label"],"additionalProperties":false}}},"required":["optedIn","industry","region","sizeBand","revenueBand","aovBand","consent","hub","industries","regions","sizes"],"additionalProperties":false},"Consent":{"type":"object","properties":{"version":{"type":"string"},"text":{"type":"string"},"acceptedAt":{"nullable":true,"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"}},"required":["version","text","acceptedAt"],"additionalProperties":false},"Hub":{"type":"object","properties":{"configured":{"type":"boolean"},"lastStatus":{"nullable":true,"type":"string"},"lastSubmittedAt":{"nullable":true,"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"deletionPending":{"type":"boolean"}},"required":["configured","lastStatus","lastSubmittedAt","deletionPending"],"additionalProperties":false},"GetV1BenchmarksResponse":{"type":"object","properties":{"section":{"type":"string","enum":["overview","campaigns","flows","forms","sms"]},"optedIn":{"type":"boolean"},"days":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"currency":{"nullable":true,"type":"string"},"requested":{"$ref":"#/components/schemas/Requested"},"metrics":{"$ref":"#/components/schemas/Metrics3"},"summary":{"$ref":"#/components/schemas/Summary"},"notice":{"nullable":true,"type":"string"},"staticDataset":{"type":"object","properties":{"version":{"type":"string"},"note":{"type":"string"}},"required":["version","note"],"additionalProperties":false}},"required":["section","optedIn","days","currency","requested","metrics","summary","notice","staticDataset"],"additionalProperties":false},"Requested":{"type":"object","properties":{"industry":{"type":"string"},"size":{"type":"string"},"region":{"type":"string"}},"required":["industry","size","region"],"additionalProperties":false},"Metrics3":{"type":"array","items":{"$ref":"#/components/schemas/MetricsItem"}},"MetricsItem":{"type":"object","properties":{"key":{"type":"string"},"unit":{"type":"string","enum":["rate","money"]},"lowerIsBetter":{"type":"boolean"},"yours":{"nullable":true,"type":"number"},"source":{"type":"string","enum":["network","local_peers","static_reference"]},"peers":{"$ref":"#/components/schemas/Peers"},"rank":{"nullable":true,"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"status":{"nullable":true,"type":"string","enum":["poor","fair","good","excellent"]},"peerGroup":{"$ref":"#/components/schemas/PeerGroup"},"fx":{"nullable":true,"type":"object","properties":{"currency":{"type":"string"},"rateDate":{"type":"string"}},"required":["currency","rateDate"],"additionalProperties":false},"reference":{"$ref":"#/components/schemas/Reference"}},"required":["key","unit","lowerIsBetter","yours","source","peers","rank","status","peerGroup","reference"],"additionalProperties":false},"Peers":{"nullable":true,"type":"object","properties":{"p10":{"nullable":true,"type":"number"},"p25":{"type":"number"},"p50":{"type":"number"},"p75":{"type":"number"},"p90":{"nullable":true,"type":"number"},"mean":{"type":"number"}},"required":["p10","p25","p50","p75","p90","mean"],"additionalProperties":false},"PeerGroup":{"nullable":true,"type":"object","properties":{"cohort":{"type":"string"},"contributors":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"rolledUp":{"type":"array","items":{"type":"string"}}},"required":["cohort","contributors","rolledUp"],"additionalProperties":false},"Reference":{"nullable":true,"type":"object","properties":{"low":{"type":"number"},"high":{"type":"number"},"verdict":{"nullable":true,"type":"string","enum":["below","within","above"]}},"required":["low","high","verdict"],"additionalProperties":false},"Summary":{"type":"object","properties":{"poor":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"fair":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"good":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"excellent":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"unranked":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["poor","fair","good","excellent","unranked"],"additionalProperties":false},"ItemsItem210":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"kind":{"type":"string","enum":["inbox_manager","sales"]},"name":{"type":"string"},"enabled":{"type":"boolean"},"autoSend":{"type":"boolean"},"config":{"type":"object","additionalProperties":{}},"lastRunAt":{"nullable":true,"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"lastError":{"nullable":true,"type":"string"},"createdAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"}},"required":["id","kind","name","enabled","autoSend","config","lastRunAt","lastError","createdAt"],"additionalProperties":false},"ItemsItem211":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"agentId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"title":{"type":"string"},"body":{"type":"string"},"position":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"createdAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"}},"required":["id","agentId","title","body","position","createdAt"],"additionalProperties":false},"Items54":{"type":"array","items":{"$ref":"#/components/schemas/ItemsItem212"}},"ItemsItem212":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"agentId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"agentKind":{"type":"string","enum":["inbox_manager","sales"]},"kind":{"type":"string","enum":["reply","outreach"]},"status":{"type":"string","enum":["pending","sent","blocked","rejected","failed"]},"profileId":{"nullable":true,"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"profileEmail":{"nullable":true,"type":"string"},"refId":{"nullable":true,"type":"string"},"subject":{"nullable":true,"type":"string"},"body":{"type":"string"},"reason":{"type":"string"},"research":{"nullable":true,"type":"string"},"jobId":{"nullable":true,"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"outcome":{"nullable":true,"type":"string"},"autoSent":{"type":"boolean"},"decidedBy":{"nullable":true,"type":"string"},"decidedAt":{"nullable":true,"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"createdAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"}},"required":["id","agentId","agentKind","kind","status","profileId","profileEmail","refId","subject","body","reason","research","jobId","outcome","autoSent","decidedBy","decidedAt","createdAt"],"additionalProperties":false},"PostV1AiAgentsItemsBulkDecideBody":{"type":"object","properties":{"ids":{"$ref":"#/components/schemas/Ids"},"action":{"type":"string","enum":["approve","reject"]}},"required":["ids","action"]},"PostV1AiAgentsItemsBulkDecideResponse":{"type":"object","properties":{"done":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"failed":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["done","failed"],"additionalProperties":false},"ItemsItem213":{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":200},"html":{"type":"string","maxLength":20000},"style":{"default":"banner","type":"string","enum":["banner","modal","slide_in"]},"audience":{"default":"everyone","type":"string","enum":["everyone","journey"]},"targeting":{"$ref":"#/components/schemas/Targeting5"},"ctaLabel":{"type":"string","maxLength":60},"ctaUrl":{"type":"string","maxLength":2048,"format":"uri"},"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"status":{"type":"string","enum":["draft","published","archived"]},"createdAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"shown":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"queued":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["name","html","style","audience","targeting","id","status","createdAt","shown","queued"],"additionalProperties":false},"Targeting5":{"default":{},"type":"object","properties":{"urlInclude":{"maxItems":50,"type":"array","items":{"type":"string","maxLength":500}},"urlExclude":{"maxItems":50,"type":"array","items":{"type":"string","maxLength":500}},"delaySeconds":{"type":"number","minimum":0,"maximum":3600},"scrollPercent":{"type":"number","minimum":0,"maximum":100},"exitIntent":{"type":"boolean"},"mobileBackExit":{"type":"boolean"},"inactivitySeconds":{"type":"number","minimum":1,"maximum":3600},"device":{"type":"string","enum":["all","desktop","mobile"]},"visitor":{"type":"string","enum":["all","new","returning"]},"minPageViews":{"type":"integer","minimum":1,"maximum":100},"frequencyDays":{"type":"number","minimum":0,"maximum":365},"audience":{"$ref":"#/components/schemas/Audience8"},"hideKnownSubscribers":{"type":"boolean"},"countries":{"maxItems":250,"type":"array","items":{"type":"string","pattern":"^[A-Z]{2}$"}},"countriesExclude":{"maxItems":250,"type":"array","items":{"type":"string","pattern":"^[A-Z]{2}$"}},"utm":{"type":"object","properties":{"source":{"type":"string","maxLength":100},"medium":{"type":"string","maxLength":100},"campaign":{"type":"string","maxLength":100}},"additionalProperties":false},"referrerInclude":{"maxItems":20,"type":"array","items":{"type":"string","maxLength":255}},"cart":{"$ref":"#/components/schemas/Cart"},"productPage":{"type":"string","enum":["only","never"]}},"additionalProperties":{}},"Audience8":{"type":"object","properties":{"mode":{"default":"show","type":"string","enum":["show","hide"]},"listIds":{"$ref":"#/components/schemas/ListIds4"},"segmentIds":{"$ref":"#/components/schemas/ListIds4"}},"required":["mode","listIds","segmentIds"],"additionalProperties":false},"Cart":{"type":"object","properties":{"minValue":{"type":"number","minimum":0},"minItems":{"type":"integer","minimum":0,"maximum":9007199254740991},"empty":{"type":"boolean"}},"additionalProperties":false},"ItemsItem214":{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":120},"homePageId":{"nullable":true,"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"header":{"$ref":"#/components/schemas/Header2"},"menu":{"$ref":"#/components/schemas/Menu"},"footerMenu":{"$ref":"#/components/schemas/Menu"},"footerHtml":{"default":"","type":"string","maxLength":5000},"theme":{"$ref":"#/components/schemas/Theme2"},"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"createdAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"pageCount":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"domain":{"nullable":true,"type":"string"},"domainStatus":{"type":"string","enum":["none","pending","checking","verified","failed"]},"domainError":{"nullable":true,"type":"string"},"domainVerifiedAt":{"nullable":true,"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"records":{"$ref":"#/components/schemas/Records3"},"url":{"nullable":true,"type":"string"}},"required":["name","header","menu","footerMenu","footerHtml","theme","id","createdAt","pageCount","domain","domainStatus","domainError","domainVerifiedAt","records","url"],"additionalProperties":false},"Header2":{"default":{"title":""},"type":"object","properties":{"title":{"default":"","type":"string","maxLength":120},"logoUrl":{"type":"string","maxLength":2048,"format":"uri"}},"required":["title"],"additionalProperties":false},"Menu":{"default":[],"maxItems":12,"type":"array","items":{"$ref":"#/components/schemas/MenuItem"}},"MenuItem":{"type":"object","properties":{"label":{"type":"string","minLength":1,"maxLength":60},"pageId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"url":{"type":"string","maxLength":2048,"format":"uri"}},"required":["label"],"additionalProperties":false},"Theme2":{"default":{"background":"#ffffff","text":"#111111","accent":"#1f6feb"},"type":"object","properties":{"background":{"default":"#ffffff","type":"string","pattern":"^#[0-9a-fA-F]{6}$"},"text":{"default":"#111111","type":"string","pattern":"^#[0-9a-fA-F]{6}$"},"accent":{"default":"#1f6feb","type":"string","pattern":"^#[0-9a-fA-F]{6}$"}},"required":["background","text","accent"],"additionalProperties":false},"Menu2":{"default":[],"maxItems":12,"type":"array","items":{"$ref":"#/components/schemas/MenuItem2"}},"MenuItem2":{"type":"object","properties":{"label":{"type":"string","minLength":1,"maxLength":60},"pageId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"url":{"type":"string","maxLength":2048,"format":"uri"}},"required":["label"]},"Menu3":{"maxItems":12,"type":"array","items":{"$ref":"#/components/schemas/MenuItem2"}},"Issues":{"type":"array","items":{"$ref":"#/components/schemas/IssuesItem"}},"IssuesItem":{"type":"object","properties":{"code":{"type":"string"},"severity":{"type":"string","enum":["error","warning","info"]},"message":{"type":"string"}},"required":["code","severity","message"],"additionalProperties":false},"GetV1LandingPagesByIdSeoResponse":{"type":"object","properties":{"pageId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"score":{"type":"integer","minimum":0,"maximum":100},"issues":{"$ref":"#/components/schemas/Issues"},"keyword":{"nullable":true,"type":"string"},"words":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["pageId","score","issues","keyword","words"],"additionalProperties":false},"ItemsItem215":{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":120},"pillarPageId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"pageIds":{"$ref":"#/components/schemas/PageIds"},"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"createdAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"missingLinks":{"$ref":"#/components/schemas/MissingLinks"}},"required":["name","pillarPageId","pageIds","id","createdAt","missingLinks"],"additionalProperties":false},"PageIds":{"default":[],"maxItems":100,"type":"array","items":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},"MissingLinks":{"type":"array","items":{"$ref":"#/components/schemas/MissingLinksItem"}},"MissingLinksItem":{"type":"object","properties":{"fromPageId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"toPageId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},"required":["fromPageId","toPageId"],"additionalProperties":false},"PostV1LandingPageClustersBody":{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":120},"pillarPageId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"pageIds":{"$ref":"#/components/schemas/PageIds"}},"required":["name","pillarPageId"]},"ItemsItem216":{"type":"object","properties":{"key":{"type":"string","pattern":"^[a-z0-9_]{1,40}$"},"label":{"type":"string","minLength":1,"maxLength":80},"color":{"default":"#6b7280","type":"string","pattern":"^#[0-9a-fA-F]{6}$"},"outcomes":{"default":[],"maxItems":30,"type":"array","items":{"type":"string","pattern":"^[a-z0-9_]{1,40}$"}},"position":{"default":0,"type":"integer","minimum":0,"maximum":1000},"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"createdAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"updatedAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"}},"required":["key","label","color","outcomes","position","id","createdAt","updatedAt"],"additionalProperties":false},"PostV1OutboundTaskTypesBody":{"type":"object","properties":{"key":{"type":"string","pattern":"^[a-z0-9_]{1,40}$"},"label":{"type":"string","minLength":1,"maxLength":80},"color":{"default":"#6b7280","type":"string","pattern":"^#[0-9a-fA-F]{6}$"},"outcomes":{"default":[],"maxItems":30,"type":"array","items":{"type":"string","pattern":"^[a-z0-9_]{1,40}$"}},"position":{"default":0,"type":"integer","minimum":0,"maximum":1000}},"required":["key","label"]},"ItemsItem217":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"name":{"type":"string"},"contentType":{"type":"string"},"bytes":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"createdAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"}},"required":["id","name","contentType","bytes","createdAt"],"additionalProperties":false},"GetV1OutboundTelephonyResponse":{"nullable":true,"type":"object","properties":{"provider":{"type":"string"},"accountSid":{"type":"string"},"fromNumber":{"type":"string"},"last4":{"type":"string"}},"required":["provider","accountSid","fromNumber","last4"],"additionalProperties":false},"ItemsItem218":{"type":"object","properties":{"connectionId":{"nullable":true,"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"assigneeUserId":{"nullable":true,"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"channel":{"type":"string","enum":["email","sms","whatsapp","linkedin"]}},"required":["connectionId","assigneeUserId","channel"],"additionalProperties":false},"ItemsItem219":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"profileId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"channel":{"type":"string","enum":["email","linkedin"]},"connectionId":{"nullable":true,"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"subject":{"nullable":true,"type":"string"},"text":{"type":"string"},"reason":{"type":"string"},"source":{"type":"string"},"sourceRef":{"nullable":true,"type":"string"},"status":{"type":"string","enum":["pending","sent","blocked","rejected"]},"decidedAt":{"nullable":true,"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"result":{"nullable":true,"type":"string"},"createdAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"}},"required":["id","profileId","channel","connectionId","subject","text","reason","source","sourceRef","status","decidedAt","result","createdAt"],"additionalProperties":false},"ItemsItem220":{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":80},"taskScope":{"default":"mine","type":"string","enum":["mine","all"]},"includeTasks":{"default":true,"type":"boolean"},"includeCampaigns":{"default":true,"type":"boolean"},"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"tokenLast4":{"type":"string"},"ownerUserId":{"nullable":true,"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"lastAccessedAt":{"nullable":true,"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"createdAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"}},"required":["name","taskScope","includeTasks","includeCampaigns","id","tokenLast4","ownerUserId","lastAccessedAt","createdAt"],"additionalProperties":false},"PostV1CalendarFeedsResponse":{"type":"object","properties":{"feed":{"$ref":"#/components/schemas/ItemsItem220"},"url":{"type":"string"}},"required":["feed","url"],"additionalProperties":false},"ItemsItem221":{"type":"object","properties":{"slug":{"type":"string","pattern":"^[a-z0-9-]{3,60}$"},"name":{"type":"string","minLength":1,"maxLength":120},"description":{"nullable":true,"type":"string","maxLength":2000},"durationMin":{"default":30,"type":"integer","minimum":5,"maximum":480},"bufferMin":{"default":0,"type":"integer","minimum":0,"maximum":240},"noticeMin":{"default":240,"type":"integer","minimum":0,"maximum":20160},"horizonDays":{"default":30,"type":"integer","minimum":1,"maximum":180},"timezone":{"default":"UTC","type":"string","maxLength":64},"hours":{"$ref":"#/components/schemas/Hours"},"connectionId":{"nullable":true,"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"consentText":{"nullable":true,"type":"string","maxLength":1000},"active":{"default":true,"type":"boolean"},"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"ownerUserId":{"nullable":true,"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"url":{"type":"string"},"createdAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"updatedAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"}},"required":["slug","name","durationMin","bufferMin","noticeMin","horizonDays","timezone","hours","active","id","ownerUserId","url","createdAt","updatedAt"],"additionalProperties":false},"Hours":{"default":[],"maxItems":21,"type":"array","items":{"$ref":"#/components/schemas/HoursItem"}},"HoursItem":{"type":"object","properties":{"weekday":{"type":"integer","minimum":1,"maximum":7},"startMin":{"type":"integer","minimum":0,"maximum":1440},"endMin":{"type":"integer","minimum":0,"maximum":1440}},"required":["weekday","startMin","endMin"],"additionalProperties":false},"PostV1OutboundBookingPagesBody":{"type":"object","properties":{"slug":{"type":"string","pattern":"^[a-z0-9-]{3,60}$"},"name":{"type":"string","minLength":1,"maxLength":120},"description":{"nullable":true,"type":"string","maxLength":2000},"durationMin":{"default":30,"type":"integer","minimum":5,"maximum":480},"bufferMin":{"default":0,"type":"integer","minimum":0,"maximum":240},"noticeMin":{"default":240,"type":"integer","minimum":0,"maximum":20160},"horizonDays":{"default":30,"type":"integer","minimum":1,"maximum":180},"timezone":{"default":"UTC","type":"string","maxLength":64},"hours":{"$ref":"#/components/schemas/Hours2"},"connectionId":{"nullable":true,"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"consentText":{"nullable":true,"type":"string","maxLength":1000},"active":{"default":true,"type":"boolean"}},"required":["slug","name"]},"Hours2":{"default":[],"maxItems":21,"type":"array","items":{"$ref":"#/components/schemas/HoursItem2"}},"HoursItem2":{"type":"object","properties":{"weekday":{"type":"integer","minimum":1,"maximum":7},"startMin":{"type":"integer","minimum":0,"maximum":1440},"endMin":{"type":"integer","minimum":0,"maximum":1440}},"required":["weekday","startMin","endMin"]},"ItemsItem222":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"pageId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"profileId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"meetingId":{"nullable":true,"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"startAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"endAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"name":{"nullable":true,"type":"string"},"email":{"type":"string"},"notes":{"nullable":true,"type":"string"},"consented":{"type":"boolean"},"status":{"type":"string","enum":["confirmed","cancelled"]},"createdAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"}},"required":["id","pageId","profileId","meetingId","startAt","endAt","name","email","notes","consented","status","createdAt"],"additionalProperties":false},"PostV1WorkspacesCurrentResetResponse":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"datasets":{"type":"array","items":{"type":"string"}},"status":{"type":"string","enum":["queued","running","completed","failed"]},"counts":{"type":"object","additionalProperties":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"error":{"nullable":true,"type":"string"},"createdAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"finishedAt":{"nullable":true,"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"}},"required":["id","datasets","status","counts","error","createdAt","finishedAt"],"additionalProperties":false},"GetV1UserGroupsByIdAccessResponse":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"listIds":{"$ref":"#/components/schemas/ListIds5"},"limits":{"type":"object","additionalProperties":{"type":"integer","minimum":0,"maximum":100000000}}},"required":["id","listIds","limits"],"additionalProperties":false},"ListIds5":{"nullable":true,"type":"array","items":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},"PostV1AgencyClientsByWorkspaceIdHandoffResponse":{"type":"object","properties":{"url":{"type":"string"},"token":{"type":"string"},"expiresAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"}},"required":["url","token","expiresAt"],"additionalProperties":false},"GetV1OperatorSettingsResponse":{"type":"object","properties":{"signupMode":{"type":"string","enum":["open","closed"]},"banner":{"nullable":true,"type":"string"}},"required":["signupMode","banner"],"additionalProperties":false},"PostMcpBodyVariant":{"type":"object","properties":{"jsonrpc":{"type":"string","enum":["2.0"]},"id":{"anyOf":[{"type":"string"},{"type":"number"}],"nullable":true},"method":{"type":"string","maxLength":100},"params":{"type":"object","additionalProperties":{}}},"required":["jsonrpc","method"]},"ItemsItem223":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"campaignId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"name":{"type":"string"},"priority":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"definition":{"$ref":"#/components/schemas/Audience"},"messageIds":{"$ref":"#/components/schemas/Conflicts"},"createdAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"updatedAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"}},"required":["id","campaignId","name","priority","definition","messageIds","createdAt","updatedAt"],"additionalProperties":false},"ItemsItem224":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"campaignId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"profileId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"profileEmail":{"nullable":true,"type":"string"},"profileName":{"nullable":true,"type":"string"},"status":{"type":"string","enum":["pending","approved","rejected"]},"subject":{"nullable":true,"type":"string"},"text":{"nullable":true,"type":"string"},"html":{"nullable":true,"type":"string"},"edited":{"type":"boolean"},"jobId":{"nullable":true,"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"createdAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"}},"required":["id","campaignId","profileId","profileEmail","profileName","status","subject","text","html","edited","jobId","createdAt"],"additionalProperties":false},"PutV1BudgetsByIdFolderResponse":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"name":{"type":"string"},"currency":{"type":"string"},"amountMinor":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"spentMinor":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"remainingMinor":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"overBudget":{"type":"boolean"},"folderId":{"nullable":true,"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},"required":["id","name","currency","amountMinor","spentMinor","remainingMinor","overBudget","folderId"],"additionalProperties":false},"GetV1CampaignsByIdPostcardResponse":{"type":"object","properties":{"messageId":{"nullable":true,"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"design":{"$ref":"#/components/schemas/Design"}},"required":["messageId","design"],"additionalProperties":false},"Design":{"nullable":true,"type":"object","properties":{"size":{"default":"6x4","type":"string","enum":["6x4","9x6"]},"front":{"type":"string","minLength":1,"maxLength":200000},"back":{"type":"string","minLength":1,"maxLength":200000}},"required":["size","front","back"],"additionalProperties":false},"PutV1CampaignsByIdPostcardBody":{"type":"object","properties":{"size":{"default":"6x4","type":"string","enum":["6x4","9x6"]},"front":{"type":"string","minLength":1,"maxLength":200000},"back":{"type":"string","minLength":1,"maxLength":200000}},"required":["front","back"]},"PostV1IdentifierBlocksCheckBody":{"type":"object","properties":{"type":{"type":"string","enum":["email","phone","external_id"]},"value":{"type":"string","minLength":1,"maxLength":320}},"required":["type","value"]},"ItemsItem225":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"name":{"type":"string"},"filters":{"type":"object","additionalProperties":{"type":"string"}},"createdBy":{"type":"string"},"createdAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"}},"required":["id","name","filters","createdBy","createdAt"],"additionalProperties":false},"PostV1ProfileFiltersBody":{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":100},"filters":{"type":"object","additionalProperties":{"type":"string","maxLength":640}}},"required":["name","filters"]},"Items55":{"type":"array","items":{"$ref":"#/components/schemas/ItemsItem226"}},"ItemsItem226":{"type":"object","properties":{"key":{"type":"string","enum":["email","firstName","lastName","phone"]},"required":{"type":"boolean"},"visible":{"type":"boolean"},"defaultValue":{"nullable":true,"type":"string"}},"required":["key","required","visible","defaultValue"],"additionalProperties":false},"ItemsItem227":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"fromType":{"type":"string"},"toType":{"type":"string"},"label":{"type":"string"},"isDefault":{"type":"boolean"},"createdAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"}},"required":["id","fromType","toType","label","isDefault","createdAt"],"additionalProperties":false},"ItemsItem228":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"key":{"type":"string"},"name":{"type":"string"},"fields":{"type":"object","additionalProperties":{"type":"string"}},"removedFields":{"type":"array","items":{"type":"string"}},"version":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"sourceWorkspaceId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"installed":{"type":"boolean"},"updatedAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"}},"required":["id","key","name","fields","removedFields","version","sourceWorkspaceId","installed","updatedAt"],"additionalProperties":false},"ItemsItem229":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"filename":{"type":"string"},"url":{"type":"string"},"contentType":{"type":"string"},"bytes":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"uploadedBy":{"type":"string"},"uploadedAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"}},"required":["id","filename","url","contentType","bytes","uploadedBy","uploadedAt"],"additionalProperties":false},"Opens":{"type":"object","properties":{"total":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"unique":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"last":{"nullable":true,"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"}},"required":["total","unique","last"],"additionalProperties":false},"Bounces":{"type":"object","properties":{"hard":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"soft":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["hard","soft"],"additionalProperties":false},"Rates":{"type":"object","properties":{"deliveryRate":{"nullable":true,"type":"number"},"openRate":{"nullable":true,"type":"number"},"clickRate":{"nullable":true,"type":"number"},"clickToOpenRate":{"nullable":true,"type":"number"},"bounceRate":{"nullable":true,"type":"number"},"unsubscribeRate":{"nullable":true,"type":"number"},"complaintRate":{"nullable":true,"type":"number"}},"required":["deliveryRate","openRate","clickRate","clickToOpenRate","bounceRate","unsubscribeRate","complaintRate"],"additionalProperties":false},"ItemsItem230":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"name":{"type":"string"},"status":{"type":"string","enum":["active","paused"]},"pointsName":{"type":"string"},"expiryDays":{"nullable":true,"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"tierWindowDays":{"nullable":true,"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"attributeKey":{"nullable":true,"type":"string"},"members":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"pointsOutstanding":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"createdAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"}},"required":["id","name","status","pointsName","expiryDays","tierWindowDays","attributeKey","members","pointsOutstanding","createdAt"],"additionalProperties":false},"ItemsItem231":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"programId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"name":{"type":"string"},"eventName":{"type":"string"},"kind":{"type":"string","enum":["per_value","fixed"]},"points":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"minValueMinor":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"filter":{"type":"object","additionalProperties":{}},"enabled":{"type":"boolean"},"expiryDays":{"nullable":true,"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["id","programId","name","eventName","kind","points","minValueMinor","filter","enabled","expiryDays"],"additionalProperties":false},"ItemsItem232":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"programId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"name":{"type":"string"},"threshold":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"multiplierPct":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"benefits":{"type":"array","items":{"type":"string"}}},"required":["id","programId","name","threshold","multiplierPct","benefits"],"additionalProperties":false},"ItemsItem233":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"programId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"name":{"type":"string"},"description":{"nullable":true,"type":"string"},"cost":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"poolId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"enabled":{"type":"boolean"}},"required":["id","programId","name","description","cost","poolId","enabled"],"additionalProperties":false},"ItemsItem234":{"type":"object","properties":{"programId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"profileId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"balance":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"lifetimePoints":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"tierId":{"nullable":true,"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"tierName":{"nullable":true,"type":"string"},"expiringSoon":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"createdAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"updatedAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"}},"required":["programId","profileId","balance","lifetimePoints","tierId","tierName","expiringSoon","createdAt","updatedAt"],"additionalProperties":false},"ItemsItem235":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"programId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"profileId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"rewardId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"code":{"type":"string"},"status":{"type":"string","enum":["issued","used","cancelled"]},"usedAt":{"nullable":true,"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"createdAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"}},"required":["id","programId","profileId","rewardId","code","status","usedAt","createdAt"],"additionalProperties":false},"ItemsItem236":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"programId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"profileId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"delta":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"kind":{"type":"string","enum":["earn","redeem","adjust","expire","reverse"]},"reason":{"type":"string"},"sourceKey":{"type":"string"},"ruleId":{"nullable":true,"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"rewardId":{"nullable":true,"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"expiresAt":{"nullable":true,"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"balanceAfter":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"createdAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"}},"required":["id","programId","profileId","delta","kind","reason","sourceKey","ruleId","rewardId","expiresAt","balanceAfter","createdAt"],"additionalProperties":false},"PostV1LoyaltyProgramsByIdPassesResponse":{"type":"object","properties":{"serialNumber":{"type":"string"},"appleUrl":{"nullable":true,"type":"string"},"googleUrl":{"nullable":true,"type":"string"}},"required":["serialNumber","appleUrl","googleUrl"],"additionalProperties":false},"GetV1LoyaltyHubResponse":{"type":"object","properties":{"enabled":{"type":"boolean"},"title":{"type":"string","minLength":1,"maxLength":120},"accentColor":{"type":"string","pattern":"^#[0-9a-fA-F]{6}$"},"shopUrl":{"nullable":true,"type":"string","maxLength":2048,"format":"uri"},"programId":{"nullable":true,"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"sections":{"$ref":"#/components/schemas/Sections2"},"url":{"type":"string"}},"required":["enabled","title","accentColor","sections","url"],"additionalProperties":false},"Sections2":{"type":"object","properties":{"orders":{"type":"boolean"},"wishlist":{"type":"boolean"},"recommendations":{"type":"boolean"},"loyalty":{"type":"boolean"},"preferences":{"type":"boolean"}},"required":["orders","wishlist","recommendations","loyalty","preferences"],"additionalProperties":false},"ItemsItem237":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"name":{"type":"string"},"viewTemplate":{"nullable":true,"type":"string"},"createdAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"}},"required":["id","name","viewTemplate","createdAt"],"additionalProperties":false},"GetV1SendersByIdSigningResponse":{"type":"object","properties":{"smime":{"$ref":"#/components/schemas/Smime"},"pgp":{"$ref":"#/components/schemas/Pgp"}},"required":["smime","pgp"],"additionalProperties":false},"Smime":{"nullable":true,"type":"object","properties":{"subject":{"type":"string"},"issuer":{"type":"string"},"notAfter":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"fingerprint":{"type":"string"}},"required":["subject","issuer","notAfter","fingerprint"],"additionalProperties":false},"Pgp":{"nullable":true,"type":"object","properties":{"fingerprint":{"type":"string"},"userIds":{"type":"array","items":{"type":"string"}}},"required":["fingerprint","userIds"],"additionalProperties":false},"ItemsItem238":{"type":"object","properties":{"key":{"type":"string"},"label":{"type":"string"},"type":{"type":"string","enum":["text","number","boolean","date","select","url"]},"options":{"type":"array","items":{"type":"string"}},"required":{"type":"boolean"},"createdAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"}},"required":["key","label","type","options","required","createdAt"],"additionalProperties":false},"GetV1LeadsCompaniesByIdScoreResponse":{"type":"object","properties":{"account":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"total":{"type":"number"},"contacts":{"$ref":"#/components/schemas/Contacts2"}},"required":["account","total","contacts"],"additionalProperties":false},"Contacts2":{"type":"object","properties":{"key":{"type":"string"},"sum":{"type":"number"},"average":{"nullable":true,"type":"number"},"max":{"nullable":true,"type":"number"},"scored":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"linked":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["key","sum","average","max","scored","linked"],"additionalProperties":false},"ItemsItem239":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"filename":{"type":"string"},"contentType":{"type":"string"},"size":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"uploadedBy":{"type":"string"},"createdAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"}},"required":["id","filename","contentType","size","uploadedBy","createdAt"],"additionalProperties":false},"GetV1LeadsCompaniesByIdCrmResponse":{"type":"object","properties":{"items":{"$ref":"#/components/schemas/Items56"},"nextCursor":{"nullable":true,"type":"string"}},"required":["items","nextCursor"],"additionalProperties":false},"Items56":{"type":"array","items":{"$ref":"#/components/schemas/ItemsItem240"}},"ItemsItem240":{"type":"object","properties":{"connectionId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"connectionName":{"type":"string"},"kind":{"type":"string"},"externalId":{"type":"string"}},"required":["connectionId","connectionName","kind","externalId"],"additionalProperties":false},"ItemsItem241":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"connectionId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"sourceId":{"type":"string"},"name":{"type":"string"},"kind":{"type":"string"},"listId":{"nullable":true,"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"memberCount":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"lastImportedAt":{"nullable":true,"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"lastError":{"nullable":true,"type":"string"},"status":{"type":"string","enum":["queued","running","idle","failed"]},"refreshHours":{"nullable":true,"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"updatedAt":{"nullable":true,"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"}},"required":["id","connectionId","sourceId","name","kind","listId","memberCount","lastImportedAt","lastError","status","refreshHours","updatedAt"],"additionalProperties":false},"Items57":{"type":"array","items":{"$ref":"#/components/schemas/ItemsItem242"}},"ItemsItem242":{"type":"object","properties":{"externalUserId":{"type":"string"},"email":{"nullable":true,"type":"string"},"name":{"type":"string"},"userId":{"nullable":true,"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},"required":["externalUserId","email","name","userId"],"additionalProperties":false},"PutV1IntegrationsConnectionsByIdCrmUsersResponse":{"type":"object","properties":{"items":{"$ref":"#/components/schemas/Items57"}},"required":["items"],"additionalProperties":false},"ItemsItem243":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"kind":{"type":"string","enum":["webhook","mixpanel","amplitude","ga4","bigquery"]},"name":{"type":"string"},"config":{"type":"object","additionalProperties":{"type":"string"}},"mapping":{"$ref":"#/components/schemas/Mapping3"},"enabled":{"type":"boolean"},"sentCount":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"failedCount":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"droppedCount":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"lastSentAt":{"nullable":true,"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"lastError":{"nullable":true,"type":"string"},"createdAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"}},"required":["id","kind","name","config","mapping","enabled","sentCount","failedCount","droppedCount","lastSentAt","lastError","createdAt"],"additionalProperties":false},"Mapping3":{"type":"object","properties":{"identify":{"type":"boolean"},"track":{"type":"boolean"},"events":{"maxItems":200,"type":"array","items":{"type":"string","maxLength":200}},"rename":{"type":"object","additionalProperties":{"type":"string","maxLength":200}},"denyProperties":{"maxItems":200,"type":"array","items":{"type":"string","maxLength":200}},"traits":{"maxItems":200,"type":"array","items":{"type":"string","maxLength":200}}},"required":["identify","track","events","rename","denyProperties","traits"],"additionalProperties":false},"Mapping4":{"type":"object","properties":{"identify":{"type":"boolean"},"track":{"type":"boolean"},"events":{"maxItems":200,"type":"array","items":{"type":"string","maxLength":200}},"rename":{"type":"object","additionalProperties":{"type":"string","maxLength":200}},"denyProperties":{"maxItems":200,"type":"array","items":{"type":"string","maxLength":200}},"traits":{"maxItems":200,"type":"array","items":{"type":"string","maxLength":200}}}},"ItemsItem244":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"kind":{"type":"string","enum":["postgres","mysql","databricks"]},"name":{"type":"string"},"query":{"type":"string"},"target":{"type":"string","enum":["profiles","events","objects"]},"objectType":{"nullable":true,"type":"string"},"mapping":{"$ref":"#/components/schemas/Mapping5"},"cursorColumn":{"nullable":true,"type":"string"},"cursorValue":{"nullable":true,"type":"string"},"everyMinutes":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"timeoutMs":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"maxRows":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"enabled":{"type":"boolean"},"lastRunAt":{"nullable":true,"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"lastRowCount":{"nullable":true,"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"lastError":{"nullable":true,"type":"string"},"createdAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"}},"required":["id","kind","name","query","target","objectType","mapping","cursorColumn","cursorValue","everyMinutes","timeoutMs","maxRows","enabled","lastRunAt","lastRowCount","lastError","createdAt"],"additionalProperties":false},"Mapping5":{"type":"object","properties":{"email":{"type":"string","pattern":"^[A-Za-z_][A-Za-z0-9_]{0,62}$"},"phone":{"type":"string","pattern":"^[A-Za-z_][A-Za-z0-9_]{0,62}$"},"externalId":{"type":"string","pattern":"^[A-Za-z_][A-Za-z0-9_]{0,62}$"},"firstName":{"type":"string","pattern":"^[A-Za-z_][A-Za-z0-9_]{0,62}$"},"lastName":{"type":"string","pattern":"^[A-Za-z_][A-Za-z0-9_]{0,62}$"},"columns":{"maxItems":100,"type":"array","items":{"type":"string","pattern":"^[A-Za-z_][A-Za-z0-9_]{0,62}$"}},"eventName":{"type":"string","pattern":"^[A-Za-z_][A-Za-z0-9_]{0,62}$"},"eventNameFixed":{"type":"string","maxLength":200},"occurredAt":{"type":"string","pattern":"^[A-Za-z_][A-Za-z0-9_]{0,62}$"},"dedupeKey":{"type":"string","pattern":"^[A-Za-z_][A-Za-z0-9_]{0,62}$"},"objectName":{"type":"string","pattern":"^[A-Za-z_][A-Za-z0-9_]{0,62}$"},"objectExternalId":{"type":"string","pattern":"^[A-Za-z_][A-Za-z0-9_]{0,62}$"}},"additionalProperties":false},"Mapping6":{"type":"object","properties":{"email":{"type":"string","pattern":"^[A-Za-z_][A-Za-z0-9_]{0,62}$"},"phone":{"type":"string","pattern":"^[A-Za-z_][A-Za-z0-9_]{0,62}$"},"externalId":{"type":"string","pattern":"^[A-Za-z_][A-Za-z0-9_]{0,62}$"},"firstName":{"type":"string","pattern":"^[A-Za-z_][A-Za-z0-9_]{0,62}$"},"lastName":{"type":"string","pattern":"^[A-Za-z_][A-Za-z0-9_]{0,62}$"},"columns":{"maxItems":100,"type":"array","items":{"type":"string","pattern":"^[A-Za-z_][A-Za-z0-9_]{0,62}$"}},"eventName":{"type":"string","pattern":"^[A-Za-z_][A-Za-z0-9_]{0,62}$"},"eventNameFixed":{"type":"string","maxLength":200},"occurredAt":{"type":"string","pattern":"^[A-Za-z_][A-Za-z0-9_]{0,62}$"},"dedupeKey":{"type":"string","pattern":"^[A-Za-z_][A-Za-z0-9_]{0,62}$"},"objectName":{"type":"string","pattern":"^[A-Za-z_][A-Za-z0-9_]{0,62}$"},"objectExternalId":{"type":"string","pattern":"^[A-Za-z_][A-Za-z0-9_]{0,62}$"}}},"Fields3":{"type":"array","items":{"$ref":"#/components/schemas/FieldsItem4"}},"FieldsItem4":{"type":"object","properties":{"name":{"type":"string"},"label":{"type":"string"},"dataType":{"type":"string","enum":["NUMBER","STRING"]},"semantics":{"type":"object","properties":{"conceptType":{"type":"string","enum":["METRIC","DIMENSION"]}},"required":["conceptType"],"additionalProperties":false}},"required":["name","label","dataType","semantics"],"additionalProperties":false},"ItemsItem245":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"kind":{"type":"string","enum":["action","trigger"]},"key":{"type":"string"},"name":{"type":"string"},"description":{"type":"string"},"fields":{"$ref":"#/components/schemas/Fields4"},"webhookTemplateId":{"nullable":true,"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"eventName":{"nullable":true,"type":"string"},"archivedAt":{"nullable":true,"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"createdAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"}},"required":["id","kind","key","name","description","fields","webhookTemplateId","eventName","archivedAt","createdAt"],"additionalProperties":false},"Fields4":{"type":"array","items":{"$ref":"#/components/schemas/FieldsItem5"}},"FieldsItem5":{"type":"object","properties":{"key":{"type":"string","pattern":"^[a-z][a-z0-9_]{0,39}$"},"label":{"type":"string","minLength":1,"maxLength":80},"type":{"default":"string","type":"string","enum":["string","number","boolean","date","enum"]},"required":{"default":false,"type":"boolean"},"options":{"maxItems":50,"type":"array","items":{"type":"string","maxLength":100}}},"required":["key","label","type","required"],"additionalProperties":false},"FieldsItem6":{"type":"object","properties":{"key":{"type":"string","pattern":"^[a-z][a-z0-9_]{0,39}$"},"label":{"type":"string","minLength":1,"maxLength":80},"type":{"default":"string","type":"string","enum":["string","number","boolean","date","enum"]},"required":{"default":false,"type":"boolean"},"options":{"maxItems":50,"type":"array","items":{"type":"string","maxLength":100}}},"required":["key","label"]},"PostV1PushLiveResponse":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"profileId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"kind":{"type":"string","enum":["ios_live_activity","android_ongoing"]},"activityType":{"type":"string"},"attributes":{"type":"object","additionalProperties":{}},"contentState":{"type":"object","additionalProperties":{}},"status":{"type":"string","enum":["active","ended","blocked","failed"]},"purpose":{"type":"string"},"updates":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"hasUpdateToken":{"type":"boolean"},"lastError":{"nullable":true,"type":"string"},"staleAt":{"nullable":true,"type":"string"},"endedAt":{"nullable":true,"type":"string"},"createdAt":{"type":"string"},"updatedAt":{"type":"string"}},"required":["id","profileId","kind","activityType","attributes","contentState","status","purpose","updates","hasUpdateToken","lastError","staleAt","endedAt","createdAt","updatedAt"],"additionalProperties":false},"Items58":{"type":"array","items":{"$ref":"#/components/schemas/ItemsItem246"}},"ItemsItem246":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"platform":{"type":"string","enum":["linkedin","facebook","instagram","x"]},"externalId":{"type":"string"},"name":{"type":"string"},"status":{"type":"string","enum":["connected","expired","error"]},"lastError":{"nullable":true,"type":"string"},"tokenExpiresAt":{"nullable":true,"type":"string"},"createdAt":{"type":"string"}},"required":["id","platform","externalId","name","status","lastError","tokenExpiresAt","createdAt"],"additionalProperties":false},"PostV1SocialAccountsResponse":{"type":"object","properties":{"items":{"$ref":"#/components/schemas/Items58"}},"required":["items"],"additionalProperties":false},"Items59":{"type":"array","items":{"$ref":"#/components/schemas/ItemsItem247"}},"ItemsItem247":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"accountId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"groupId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"text":{"type":"string"},"media":{"$ref":"#/components/schemas/Media"},"link":{"nullable":true,"type":"string"},"status":{"type":"string","enum":["draft","scheduled","publishing","published","failed","canceled"]},"scheduledAt":{"nullable":true,"type":"string"},"publishedAt":{"nullable":true,"type":"string"},"externalId":{"nullable":true,"type":"string"},"url":{"nullable":true,"type":"string"},"error":{"nullable":true,"type":"string"},"metrics":{"type":"object","additionalProperties":{"type":"number"}},"metricsAt":{"nullable":true,"type":"string"},"createdAt":{"type":"string"}},"required":["id","accountId","groupId","text","media","link","status","scheduledAt","publishedAt","externalId","url","error","metrics","metricsAt","createdAt"],"additionalProperties":false},"Media":{"type":"array","items":{"type":"object","properties":{"url":{"type":"string"},"type":{"type":"string","enum":["image","video"]}},"required":["url","type"],"additionalProperties":false}},"ItemsItem248":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"externalId":{"type":"string"},"parentExternalId":{"nullable":true,"type":"string"},"author":{"type":"string"},"text":{"type":"string"},"postedAt":{"type":"string"},"ours":{"type":"boolean"}},"required":["id","externalId","parentExternalId","author","text","postedAt","ours"],"additionalProperties":false},"ItemsItem249":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"teamId":{"type":"string"},"teamName":{"type":"string"},"botUserId":{"nullable":true,"type":"string"},"scopes":{"type":"array","items":{"type":"string"}},"status":{"type":"string","enum":["active","revoked"]},"createdAt":{"type":"string"}},"required":["id","teamId","teamName","botUserId","scopes","status","createdAt"],"additionalProperties":false},"ItemsItem250":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"name":{"type":"string"},"text":{"type":"string"},"blocks":{"nullable":true,"type":"array","items":{}},"createdAt":{"type":"string"}},"required":["id","name","text","blocks","createdAt"],"additionalProperties":false},"PostV1SlackTemplatesBody":{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":200},"text":{"type":"string","minLength":1,"maxLength":3000},"blocks":{"nullable":true,"maxItems":50,"type":"array","items":{}}},"required":["name","text"]},"PostV1PrivacyRequestsResponse":{"type":"object","properties":{"id":{"type":"string"},"type":{"type":"string","enum":["access","deletion"]},"status":{"type":"string","enum":["pending","completed","no_match","rejected"]},"detail":{"type":"string"},"result":{}},"required":["id","type","status"],"additionalProperties":false}}},"paths":{"/healthz":{"get":{"security":[],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"ok":{"type":"boolean","enum":[true]},"version":{"type":"string"},"commit":{"nullable":true,"type":"string"}},"required":["ok","version","commit"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getHealthz"}},"/readyz":{"get":{"security":[],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"db":{"type":"boolean"},"redis":{"type":"boolean"}},"required":["db","redis"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getReadyz"}},"/v1/version":{"get":{"summary":"Running version, whether a newer release exists, and the operator banner","security":[{"session":[]}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"version":{"type":"string"},"latest":{"nullable":true,"type":"string"},"updateAvailable":{"type":"boolean"},"releaseUrl":{"nullable":true,"type":"string"},"banner":{"nullable":true,"type":"string"}},"required":["version","latest","updateAvailable","releaseUrl","banner"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1Version"}},"/v1/auth/dev-login":{"post":{"summary":"Dev only (AUTH_DEV_LOGIN): sign in by email, creating the account if new","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"email":{"type":"string","maxLength":254,"format":"email","pattern":"^(?:[A-Za-z0-9_'+\\-]+\\.)*[A-Za-z0-9_'+\\-]*[A-Za-z0-9_+-]@(?:[A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$"},"name":{"type":"string","minLength":1,"maxLength":120}},"required":["email"]}}}},"security":[],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"user":{"$ref":"#/components/schemas/User"},"workspace":{"nullable":true,"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"organizationId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"name":{"type":"string"},"timezone":{"type":"string"},"locale":{"type":"string"},"postalAddress":{"nullable":true,"type":"string"},"adminEmail":{"nullable":true,"type":"string"},"unsubscribeRedirectUrl":{"nullable":true,"type":"string"},"quietHours":{"$ref":"#/components/schemas/QuietHours"},"displayCurrency":{"type":"string"},"fxRates":{"type":"object","additionalProperties":{"type":"number"}},"sessionDays":{"nullable":true,"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"campaignNotifyEmails":{"type":"array","items":{"type":"string"}},"websiteUrl":{"nullable":true,"type":"string"},"industry":{"nullable":true,"type":"string"}},"required":["id","organizationId","name","timezone","locale","postalAddress","adminEmail","unsubscribeRedirectUrl","quietHours","displayCurrency","fxRates","sessionDays","campaignNotifyEmails"],"additionalProperties":false},"expiresAt":{"nullable":true,"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"}},"required":["user","workspace","expiresAt"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"postV1AuthDevLogin"}},"/v1/auth/logout":{"post":{"summary":"Sign out here and at Atlas; the browser then visits redirectTo (Atlas end-session) when set","security":[{"session":[]}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"ok":{"type":"boolean","enum":[true]},"redirectTo":{"nullable":true,"type":"string"}},"required":["ok","redirectTo"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"postV1AuthLogout"}},"/v1/members/{userId}/impersonate":{"post":{"summary":"Owner only: open a one-hour session as another member (audited). The owner's own session is kept and comes back with /v1/impersonation/stop","parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"userId","required":true}],"security":[{"session":[]}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"ok":{"type":"boolean","enum":[true]}},"required":["ok"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"postV1MembersByUserIdImpersonate"}},"/v1/impersonation/stop":{"post":{"summary":"End the impersonation session and return to the owner's own session","security":[{"session":[]}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"ok":{"type":"boolean","enum":[true]}},"required":["ok"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"postV1ImpersonationStop"}},"/v1/me":{"get":{"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"actor":{"type":"object","properties":{"type":{"type":"string"},"id":{"type":"string"},"workspaceId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"role":{"type":"string","enum":["owner","admin","marketer","sales","analyst","viewer"]},"scopes":{"type":"array","items":{"type":"string"}}},"required":["type","id","workspaceId","scopes"],"additionalProperties":false},"user":{"nullable":true,"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"email":{"type":"string"},"name":{"type":"string"},"avatarUrl":{"nullable":true,"type":"string"},"emailVerified":{"type":"boolean"}},"required":["id","email","name"],"additionalProperties":false},"workspaces":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"name":{"type":"string"},"role":{"type":"string","enum":["owner","admin","marketer","sales","analyst","viewer"]}},"required":["id","name","role"],"additionalProperties":false}},"impersonatedBy":{"nullable":true,"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"name":{"type":"string"}},"required":["id","name"],"additionalProperties":false},"operator":{"type":"boolean"}},"required":["actor","user","workspaces"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1Me"},"patch":{"summary":"Change your own display name and avatar","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":120},"avatarUrl":{"nullable":true,"type":"string","maxLength":500,"format":"uri"}}}}}},"security":[{"session":[]}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/User"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"patchV1Me"}},"/v1/me/sessions":{"get":{"parameters":[{"schema":{"type":"integer","minimum":1,"maximum":200},"in":"query","name":"limit","required":false,"description":"Page size; omitted returns the whole list"},{"schema":{"type":"string","pattern":"^\\d{1,9}$"},"in":"query","name":"cursor","required":false,"description":"Opaque: the `nextCursor` of the previous page"}],"security":[{"session":[]}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"items":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"ip":{"nullable":true,"type":"string"},"userAgent":{"nullable":true,"type":"string"},"createdAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"expiresAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"}},"required":["id","ip","userAgent","createdAt","expiresAt"],"additionalProperties":false}},"nextCursor":{"nullable":true,"type":"string"}},"required":["items","nextCursor"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1MeSessions"}},"/v1/me/sessions/{id}":{"delete":{"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"security":[{"session":[]}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"ok":{"type":"boolean","enum":[true]}},"required":["ok"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"deleteV1MeSessionsById"}},"/v1/auth/handoff":{"post":{"summary":"Redeem a single-use agency hand-off token: opens the client workspace in a session bound to it","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"token":{"type":"string","minLength":10,"maxLength":200}},"required":["token"]}}}},"security":[],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"workspaceId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},"required":["workspaceId"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"postV1AuthHandoff"}},"/v1/workspaces/current/schedule-for-removal":{"get":{"summary":"When this workspace will be erased, if its removal is scheduled","responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"deleteAfter":{"nullable":true,"type":"string"}},"required":["deleteAfter"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1WorkspacesCurrentScheduleForRemoval"},"post":{"summary":"Owner only: stop sending now and erase the workspace after the grace period","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"graceDays":{"default":30,"type":"integer","minimum":1,"maximum":90}}}}}},"security":[{"session":[]}],"responses":{"202":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"deleteAfter":{"nullable":true,"type":"string"}},"required":["deleteAfter"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"postV1WorkspacesCurrentScheduleForRemoval"},"delete":{"summary":"Owner only: cancel a scheduled removal and resume sending","security":[{"session":[]}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"ok":{"type":"boolean","enum":[true]}},"required":["ok"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"deleteV1WorkspacesCurrentScheduleForRemoval"}},"/v1/api-keys":{"get":{"parameters":[{"schema":{"type":"integer","minimum":1,"maximum":200},"in":"query","name":"limit","required":false,"description":"Page size; omitted returns the whole list"},{"schema":{"type":"string","pattern":"^\\d{1,9}$"},"in":"query","name":"cursor","required":false,"description":"Opaque: the `nextCursor` of the previous page"}],"security":[{"session":[]}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"items":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"name":{"type":"string"},"kind":{"type":"string","enum":["secret","site"]},"prefix":{"type":"string"},"scopes":{"type":"array","items":{"type":"string"}},"allowedOrigins":{"type":"array","items":{"type":"string"}},"allowedDomains":{"type":"array","items":{"type":"string"}},"allowedConnectionIds":{"type":"array","items":{"type":"string"}},"allowedSequenceIds":{"type":"array","items":{"type":"string"}},"rateLimitPerMin":{"nullable":true,"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"lastUsedAt":{"nullable":true,"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"revokedAt":{"nullable":true,"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"createdAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"}},"required":["id","name","kind","prefix","scopes","allowedOrigins","lastUsedAt","revokedAt","createdAt"],"additionalProperties":false}},"nextCursor":{"nullable":true,"type":"string"}},"required":["items","nextCursor"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1ApiKeys"},"post":{"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PostV1ApiKeysBody"}}}},"security":[{"session":[]}],"responses":{"201":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PostV1ApiKeysResponse"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"postV1ApiKeys"}},"/v1/api-keys/{id}":{"delete":{"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"security":[{"session":[]}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"ok":{"type":"boolean","enum":[true]}},"required":["ok"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"deleteV1ApiKeysById"}},"/v1/members":{"get":{"summary":"Members of this workspace; ?email= or ?username= (display name or the part of the email before @) narrows to exact matches","parameters":[{"schema":{"type":"string","maxLength":320},"in":"query","name":"email","required":false},{"schema":{"type":"string","maxLength":120},"in":"query","name":"username","required":false},{"schema":{"type":"integer","minimum":1,"maximum":200},"in":"query","name":"limit","required":false,"description":"Page size; omitted returns the whole list"},{"schema":{"type":"string","pattern":"^\\d{1,9}$"},"in":"query","name":"cursor","required":false,"description":"Opaque: the `nextCursor` of the previous page"}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"items":{"type":"array","items":{"$ref":"#/components/schemas/ItemsItem"}},"nextCursor":{"nullable":true,"type":"string"}},"required":["items","nextCursor"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1Members"},"post":{"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"email":{"type":"string","maxLength":254,"format":"email","pattern":"^(?:[A-Za-z0-9_'+\\-]+\\.)*[A-Za-z0-9_'+\\-]*[A-Za-z0-9_+-]@(?:[A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$"},"role":{"type":"string","enum":["owner","admin","marketer","sales","analyst","viewer"]}},"required":["email","role"]}}}},"security":[{"session":[]}],"responses":{"201":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PostV1MembersResponse"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"postV1Members"}},"/v1/members/{userId}":{"patch":{"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"role":{"type":"string","enum":["owner","admin","marketer","sales","analyst","viewer"]}},"required":["role"]}}}},"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"userId","required":true}],"security":[{"session":[]}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"ok":{"type":"boolean","enum":[true]}},"required":["ok"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"patchV1MembersByUserId"},"delete":{"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"userId","required":true}],"security":[{"session":[]}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"ok":{"type":"boolean","enum":[true]}},"required":["ok"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"deleteV1MembersByUserId"},"get":{"tags":["members"],"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"userId","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ItemsItem"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1MembersByUserId"}},"/v1/members/{userId}/lists":{"put":{"summary":"Limit a member to specific lists (null = all lists)","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"listIds":{"$ref":"#/components/schemas/ListIds"}},"required":["listIds"]}}}},"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"userId","required":true}],"security":[{"session":[]}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"ok":{"type":"boolean","enum":[true]}},"required":["ok"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"putV1MembersByUserIdLists"}},"/v1/signup-domains":{"get":{"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetV1SignupDomainsResponse"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1SignupDomains"},"put":{"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"allow":{"maxItems":500,"type":"array","items":{"type":"string","maxLength":255}},"block":{"maxItems":500,"type":"array","items":{"type":"string","maxLength":255}}},"required":["allow","block"]}}}},"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetV1SignupDomainsResponse"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"putV1SignupDomains"}},"/v1/invitations/accept":{"post":{"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"token":{"type":"string","minLength":10,"maxLength":200}},"required":["token"]}}}},"security":[{"session":[]}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"workspaceId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"role":{"type":"string"}},"required":["workspaceId","role"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"postV1InvitationsAccept"}},"/v1/invitations/decline":{"post":{"summary":"Decline an invitation (the link stops working)","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"token":{"type":"string","minLength":10,"maxLength":200}},"required":["token"]}}}},"security":[],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"ok":{"type":"boolean","enum":[true]}},"required":["ok"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"postV1InvitationsDecline"}},"/v1/workspace":{"get":{"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetV1WorkspaceResponse"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1Workspace"},"patch":{"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":120},"timezone":{"type":"string","maxLength":64},"locale":{"type":"string","minLength":2,"maxLength":16},"postalAddress":{"nullable":true,"type":"string","maxLength":500},"adminEmail":{"nullable":true,"type":"string","format":"email","pattern":"^(?:[A-Za-z0-9_'+\\-]+\\.)*[A-Za-z0-9_'+\\-]*[A-Za-z0-9_+-]@(?:[A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$"},"unsubscribeRedirectUrl":{"nullable":true,"type":"string","format":"uri"},"quietHours":{"type":"object","properties":{"start":{"type":"string","pattern":"^([01]\\d|2[0-3]):[0-5]\\d$"},"end":{"type":"string","pattern":"^([01]\\d|2[0-3]):[0-5]\\d$"}},"required":["start","end"]},"displayCurrency":{"type":"string","pattern":"^[A-Z]{3}$"},"fxRates":{"type":"object","additionalProperties":{"type":"number","minimum":0,"exclusiveMinimum":true,"maximum":1000000}},"sessionDays":{"nullable":true,"type":"integer","minimum":1,"maximum":365},"campaignNotifyEmails":{"maxItems":10,"type":"array","items":{"type":"string","format":"email","pattern":"^(?:[A-Za-z0-9_'+\\-]+\\.)*[A-Za-z0-9_'+\\-]*[A-Za-z0-9_+-]@(?:[A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$"}},"websiteUrl":{"nullable":true,"type":"string","maxLength":500,"format":"uri"},"industry":{"nullable":true,"type":"string","enum":["ecommerce","saas","agency","media","education","nonprofit","finance","health","travel","real_estate","b2b_services","other"]}}}}}},"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetV1WorkspaceResponse"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"patchV1Workspace"}},"/v1/audit":{"get":{"parameters":[{"schema":{"default":50,"type":"integer","minimum":1,"maximum":200},"in":"query","name":"limit","required":false},{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"query","name":"cursor","required":false},{"schema":{"type":"string"},"in":"query","name":"action","required":false},{"schema":{"type":"string"},"in":"query","name":"targetType","required":false},{"schema":{"$ref":"#/components/schemas/GetV1Audit"},"in":"query","name":"from","required":false},{"schema":{"$ref":"#/components/schemas/GetV1Audit"},"in":"query","name":"to","required":false}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"items":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"actorType":{"type":"string"},"actorId":{"type":"string"},"impersonatedBy":{"nullable":true,"type":"string"},"action":{"type":"string"},"targetType":{"type":"string"},"targetId":{"nullable":true,"type":"string"},"before":{"nullable":true},"after":{"nullable":true},"at":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"}},"required":["id","actorType","actorId","action","targetType","targetId","before","after","at"],"additionalProperties":false}},"nextCursor":{"nullable":true,"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},"required":["items","nextCursor"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1Audit"}},"/v1/audit/export":{"get":{"summary":"Audit log as CSV or NDJSON (max 10,000 rows). A SIEM can poll with order=asc and from=<last timestamp>.","parameters":[{"schema":{"type":"string"},"in":"query","name":"action","required":false},{"schema":{"type":"string"},"in":"query","name":"targetType","required":false},{"schema":{"$ref":"#/components/schemas/GetV1Audit"},"in":"query","name":"from","required":false},{"schema":{"$ref":"#/components/schemas/GetV1Audit"},"in":"query","name":"to","required":false},{"schema":{"default":"csv","type":"string","enum":["csv","ndjson"]},"in":"query","name":"format","required":false},{"schema":{"default":"desc","type":"string","enum":["asc","desc"]},"in":"query","name":"order","required":false}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"filename":{"type":"string"},"format":{"type":"string","enum":["csv","ndjson"]},"rowCount":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"truncated":{"type":"boolean"},"content":{"type":"string"}},"required":["filename","format","rowCount","truncated","content"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1AuditExport"}},"/v1/profiles":{"get":{"tags":["profiles"],"parameters":[{"schema":{"type":"string","maxLength":200},"in":"query","name":"q","required":false},{"schema":{"type":"string","maxLength":64},"in":"query","name":"tag","required":false},{"schema":{"type":"string","maxLength":640},"in":"query","name":"tagsAny","required":false},{"schema":{"type":"string","maxLength":640},"in":"query","name":"tagsAll","required":false},{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"query","name":"listId","required":false},{"schema":{"type":"string","maxLength":320},"in":"query","name":"email","required":false},{"schema":{"type":"string","maxLength":40},"in":"query","name":"phone","required":false},{"schema":{"type":"string","format":"date-time"},"in":"query","name":"createdSince","required":false},{"schema":{"type":"string","format":"date-time"},"in":"query","name":"createdBefore","required":false},{"schema":{"type":"string","format":"date-time"},"in":"query","name":"updatedSince","required":false},{"schema":{"type":"string","format":"date-time"},"in":"query","name":"updatedBefore","required":false},{"schema":{"type":"string","maxLength":128},"in":"query","name":"attrKey","required":false},{"schema":{"default":"eq","type":"string","enum":["eq","contains","gt","lt"]},"in":"query","name":"attrOp","required":false},{"schema":{"type":"string","maxLength":500},"in":"query","name":"attrValue","required":false},{"schema":{"type":"string","enum":["true","false"]},"in":"query","name":"vip","required":false},{"schema":{"type":"string","enum":["granted","revoked","pending_confirmation","none"]},"in":"query","name":"consentStatus","required":false},{"schema":{"type":"string","enum":["email","sms","whatsapp","push","postcard"]},"in":"query","name":"consentChannel","required":false},{"schema":{"type":"string","format":"date-time"},"in":"query","name":"consentSince","required":false},{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"query","name":"topicId","required":false},{"schema":{"type":"string","maxLength":100},"in":"query","name":"country","required":false},{"schema":{"type":"string","maxLength":100},"in":"query","name":"region","required":false},{"schema":{"type":"string","maxLength":100},"in":"query","name":"city","required":false},{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"query","name":"segmentId","required":false},{"schema":{"type":"string","maxLength":128},"in":"query","name":"eventName","required":false},{"schema":{"type":"string","format":"date-time"},"in":"query","name":"eventSince","required":false},{"schema":{"type":"string","format":"date-time"},"in":"query","name":"eventBefore","required":false},{"schema":{"type":"string","maxLength":128},"in":"query","name":"source","required":false},{"schema":{"type":"string","enum":["only","include"]},"in":"query","name":"archived","required":false},{"schema":{"default":"newest","type":"string","enum":["newest","oldest"]},"in":"query","name":"sort","required":false},{"schema":{"default":50,"type":"integer","minimum":1,"maximum":200},"in":"query","name":"limit","required":false},{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"query","name":"cursor","required":false}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetV1ProfilesResponse"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1Profiles"},"post":{"tags":["profiles"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PostV1ProfilesBody"}}}},"responses":{"201":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ItemsItem2"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"postV1Profiles"}},"/v1/profiles/upsert":{"post":{"tags":["profiles"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PostV1ProfilesBody"}}}},"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"profile":{"$ref":"#/components/schemas/ItemsItem2"},"created":{"type":"boolean"},"conflicts":{"$ref":"#/components/schemas/Conflicts"}},"required":["profile","created","conflicts"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"postV1ProfilesUpsert"}},"/v1/profiles/{id}":{"get":{"tags":["profiles"],"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ItemsItem2"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1ProfilesById"},"patch":{"summary":"Update a contact; `tags` adds tags and `subscriptions` sets email / SMS marketing status through the consent ledger","tags":["profiles"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PatchV1ProfilesByIdBody"}}}},"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ItemsItem2"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"patchV1ProfilesById"},"delete":{"tags":["profiles"],"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DeleteV1ProfilesByIdResponse"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"deleteV1ProfilesById"}},"/v1/profiles/{id}/archive":{"post":{"summary":"Archive a contact: kept with history, never sent to or counted until restored","tags":["profiles"],"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ItemsItem2"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"postV1ProfilesByIdArchive"}},"/v1/profiles/{id}/restore":{"post":{"summary":"Restore an archived contact","tags":["profiles"],"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ItemsItem2"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"postV1ProfilesByIdRestore"}},"/v1/profiles/{id}/merge":{"post":{"tags":["profiles"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"mergedId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},"required":["mergedId"]}}}},"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ItemsItem2"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"postV1ProfilesByIdMerge"}},"/v1/profiles/{id}/export":{"get":{"tags":["profiles"],"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":{}}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1ProfilesByIdExport"}},"/v1/profiles/{id}/activity":{"get":{"summary":"Timeline, newest first; filter by activity type and by event / ref name","tags":["profiles"],"parameters":[{"schema":{"default":50,"type":"integer","minimum":1,"maximum":200},"in":"query","name":"limit","required":false},{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"query","name":"cursor","required":false},{"schema":{"type":"string","maxLength":64},"in":"query","name":"type","required":false},{"schema":{"type":"string","maxLength":200},"in":"query","name":"name","required":false},{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetV1ProfilesByIdActivityResponse"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1ProfilesByIdActivity"}},"/v1/profiles/{id}/notes":{"get":{"tags":["profiles"],"parameters":[{"schema":{"default":50,"type":"integer","minimum":1,"maximum":200},"in":"query","name":"limit","required":false},{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"query","name":"cursor","required":false},{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"items":{"type":"array","items":{"$ref":"#/components/schemas/ItemsItem4"}},"nextCursor":{"nullable":true,"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},"required":["items","nextCursor"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1ProfilesByIdNotes"},"post":{"tags":["profiles"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PostV1ProfilesByIdNotesBody"}}}},"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"201":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ItemsItem4"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"postV1ProfilesByIdNotes"}},"/v1/profiles/{id}/tags":{"get":{"tags":["profiles"],"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"tags":{"type":"array","items":{"type":"string"}}},"required":["tags"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1ProfilesByIdTags"},"post":{"tags":["profiles"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"tags":{"minItems":1,"maxItems":100,"type":"array","items":{"type":"string","minLength":1,"maxLength":64}},"names":{"description":"Deprecated: use tags","minItems":1,"maxItems":100,"type":"array","items":{"type":"string","minLength":1,"maxLength":64}}}}}}},"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"tags":{"type":"array","items":{"type":"string"}}},"required":["tags"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"postV1ProfilesByIdTags"}},"/v1/profiles/{id}/tags/{name}":{"delete":{"tags":["profiles"],"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true},{"schema":{"type":"string","minLength":1,"maxLength":64},"in":"path","name":"name","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"tags":{"type":"array","items":{"type":"string"}}},"required":["tags"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"deleteV1ProfilesByIdTagsByName"}},"/v1/profiles/count":{"get":{"summary":"Count profiles matching the same filters as GET /v1/profiles","tags":["profiles"],"parameters":[{"schema":{"type":"string","maxLength":200},"in":"query","name":"q","required":false},{"schema":{"type":"string","maxLength":64},"in":"query","name":"tag","required":false},{"schema":{"type":"string","maxLength":640},"in":"query","name":"tagsAny","required":false},{"schema":{"type":"string","maxLength":640},"in":"query","name":"tagsAll","required":false},{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"query","name":"listId","required":false},{"schema":{"type":"string","maxLength":320},"in":"query","name":"email","required":false},{"schema":{"type":"string","maxLength":40},"in":"query","name":"phone","required":false},{"schema":{"type":"string","format":"date-time"},"in":"query","name":"createdSince","required":false},{"schema":{"type":"string","format":"date-time"},"in":"query","name":"createdBefore","required":false},{"schema":{"type":"string","format":"date-time"},"in":"query","name":"updatedSince","required":false},{"schema":{"type":"string","format":"date-time"},"in":"query","name":"updatedBefore","required":false},{"schema":{"type":"string","maxLength":128},"in":"query","name":"attrKey","required":false},{"schema":{"default":"eq","type":"string","enum":["eq","contains","gt","lt"]},"in":"query","name":"attrOp","required":false},{"schema":{"type":"string","maxLength":500},"in":"query","name":"attrValue","required":false},{"schema":{"type":"string","enum":["true","false"]},"in":"query","name":"vip","required":false},{"schema":{"type":"string","enum":["granted","revoked","pending_confirmation","none"]},"in":"query","name":"consentStatus","required":false},{"schema":{"type":"string","enum":["email","sms","whatsapp","push","postcard"]},"in":"query","name":"consentChannel","required":false},{"schema":{"type":"string","format":"date-time"},"in":"query","name":"consentSince","required":false},{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"query","name":"topicId","required":false},{"schema":{"type":"string","maxLength":100},"in":"query","name":"country","required":false},{"schema":{"type":"string","maxLength":100},"in":"query","name":"region","required":false},{"schema":{"type":"string","maxLength":100},"in":"query","name":"city","required":false},{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"query","name":"segmentId","required":false},{"schema":{"type":"string","maxLength":128},"in":"query","name":"eventName","required":false},{"schema":{"type":"string","format":"date-time"},"in":"query","name":"eventSince","required":false},{"schema":{"type":"string","format":"date-time"},"in":"query","name":"eventBefore","required":false},{"schema":{"type":"string","maxLength":128},"in":"query","name":"source","required":false},{"schema":{"type":"string","enum":["only","include"]},"in":"query","name":"archived","required":false},{"schema":{"default":"newest","type":"string","enum":["newest","oldest"]},"in":"query","name":"sort","required":false}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"count":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["count"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1ProfilesCount"}},"/v1/profiles/{id}/lists":{"get":{"tags":["profiles"],"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"lists":{"$ref":"#/components/schemas/Lists"}},"required":["lists"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1ProfilesByIdLists"}},"/v1/profiles/{id}/segments":{"get":{"tags":["profiles"],"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"segments":{"$ref":"#/components/schemas/Lists"}},"required":["segments"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1ProfilesByIdSegments"}},"/v1/profiles/{id}/memberships":{"get":{"tags":["profiles"],"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"lists":{"$ref":"#/components/schemas/Lists"},"segments":{"$ref":"#/components/schemas/Lists"}},"required":["lists","segments"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1ProfilesByIdMemberships"}},"/v1/profiles/memberships/batch":{"post":{"summary":"The lists and segments of up to 100 people in one call (unknown people are left out; people outside your lists are refused)","tags":["profiles"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"profileIds":{"$ref":"#/components/schemas/ProfileIds"}},"required":["profileIds"]}}}},"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"items":{"type":"array","items":{"type":"object","properties":{"profileId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"lists":{"$ref":"#/components/schemas/Lists"},"segments":{"$ref":"#/components/schemas/Lists"}},"required":["profileId","lists","segments"],"additionalProperties":false}}},"required":["items"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"postV1ProfilesMembershipsBatch"}},"/v1/profiles/{id}/notes/{noteId}":{"get":{"tags":["profiles"],"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true},{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"noteId","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ItemsItem4"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1ProfilesByIdNotesByNoteId"},"patch":{"tags":["profiles"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PostV1ProfilesByIdNotesBody"}}}},"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true},{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"noteId","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ItemsItem4"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"patchV1ProfilesByIdNotesByNoteId"},"delete":{"tags":["profiles"],"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true},{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"noteId","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"ok":{"type":"boolean","enum":[true]}},"required":["ok"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"deleteV1ProfilesByIdNotesByNoteId"}},"/v1/lists":{"get":{"summary":"Lists with member counts; `count`/`offset` page them, `stats=true` adds send and unsubscribe stats","tags":["lists"],"parameters":[{"schema":{"type":"string","maxLength":4000},"in":"query","name":"ids","required":false,"description":"Comma separated list ids: only these lists"},{"schema":{"type":"string","maxLength":64},"in":"query","name":"tag","required":false},{"schema":{"type":"string","maxLength":200},"in":"query","name":"q","required":false},{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"query","name":"folderId","required":false},{"schema":{"type":"string","enum":["true"]},"in":"query","name":"unfiled","required":false},{"schema":{"type":"string","enum":["true","false"]},"in":"query","name":"archived","required":false},{"schema":{"type":"integer","minimum":1,"maximum":1000},"in":"query","name":"count","required":false},{"schema":{"default":0,"type":"integer","minimum":0,"maximum":9007199254740991},"in":"query","name":"offset","required":false},{"schema":{"type":"string","format":"date-time"},"in":"query","name":"createdSince","required":false},{"schema":{"type":"string","format":"date-time"},"in":"query","name":"createdBefore","required":false},{"schema":{"type":"string","maxLength":320},"in":"query","name":"email","required":false},{"schema":{"type":"string","enum":["true"]},"in":"query","name":"stats","required":false}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"items":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"name":{"type":"string"},"description":{"nullable":true,"type":"string"},"kind":{"type":"string"},"settings":{"$ref":"#/components/schemas/Settings"},"tags":{"type":"array","items":{"type":"string"}},"folderId":{"nullable":true,"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"createdAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"memberCount":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"stats":{"type":"object","properties":{"sent":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"openRate":{"type":"number"},"clickRate":{"type":"number"},"unsubscribed":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"cleaned":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"lastSentAt":{"nullable":true,"type":"string"}},"required":["sent","openRate","clickRate","unsubscribed","cleaned","lastSentAt"],"additionalProperties":false}},"required":["id","name","description","kind","settings","createdAt","memberCount"],"additionalProperties":false}},"total":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["items","total"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1Lists"},"post":{"tags":["lists"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":200},"description":{"nullable":true,"type":"string","maxLength":2000},"settings":{"$ref":"#/components/schemas/Settings2"},"folderId":{"nullable":true,"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},"required":["name"]}}}},"responses":{"201":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PostV1ListsResponse"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"postV1Lists"}},"/v1/lists/batch/delete":{"post":{"summary":"Delete many lists at once (each can be restored); an unknown id fails the whole call","tags":["lists"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"ids":{"$ref":"#/components/schemas/Ids"},"search":{"type":"string","minLength":1,"maxLength":100}}}}}},"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"deleted":{"$ref":"#/components/schemas/Conflicts"}},"required":["deleted"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"postV1ListsBatchDelete"}},"/v1/lists/deleted":{"get":{"summary":"Lists deleted and still restorable","tags":["lists"],"parameters":[{"schema":{"type":"integer","minimum":1,"maximum":200},"in":"query","name":"limit","required":false,"description":"Page size; omitted returns the whole list"},{"schema":{"type":"string","pattern":"^\\d{1,9}$"},"in":"query","name":"cursor","required":false,"description":"Opaque: the `nextCursor` of the previous page"}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"items":{"type":"array","items":{"$ref":"#/components/schemas/PostV1ListsResponse"}},"nextCursor":{"nullable":true,"type":"string"}},"required":["items","nextCursor"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1ListsDeleted"}},"/v1/lists/{id}/restore":{"post":{"summary":"Undo a list delete; members come back with it","tags":["lists"],"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PostV1ListsResponse"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"postV1ListsByIdRestore"}},"/v1/lists/{id}":{"get":{"tags":["lists"],"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PostV1ListsResponse"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1ListsById"},"patch":{"tags":["lists"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":200},"description":{"nullable":true,"type":"string","maxLength":2000},"settings":{"$ref":"#/components/schemas/Settings2"},"folderId":{"nullable":true,"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}}}}},"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PostV1ListsResponse"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"patchV1ListsById"},"delete":{"tags":["lists"],"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"ok":{"type":"boolean","enum":[true]}},"required":["ok"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"deleteV1ListsById"}},"/v1/lists/{id}/tags":{"put":{"tags":["lists"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"tags":{"maxItems":50,"type":"array","items":{"type":"string","minLength":1,"maxLength":64}}},"required":["tags"]}}}},"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"tags":{"type":"array","items":{"type":"string"}}},"required":["tags"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"putV1ListsByIdTags"}},"/v1/lists/{id}/members":{"get":{"summary":"List members, with the same filters as GET /v1/profiles","tags":["lists"],"parameters":[{"schema":{"type":"string","maxLength":200},"in":"query","name":"q","required":false},{"schema":{"type":"string","maxLength":64},"in":"query","name":"tag","required":false},{"schema":{"type":"string","maxLength":640},"in":"query","name":"tagsAny","required":false},{"schema":{"type":"string","maxLength":640},"in":"query","name":"tagsAll","required":false},{"schema":{"type":"string","maxLength":320},"in":"query","name":"email","required":false},{"schema":{"type":"string","maxLength":40},"in":"query","name":"phone","required":false},{"schema":{"type":"string","format":"date-time"},"in":"query","name":"createdSince","required":false},{"schema":{"type":"string","format":"date-time"},"in":"query","name":"createdBefore","required":false},{"schema":{"type":"string","format":"date-time"},"in":"query","name":"updatedSince","required":false},{"schema":{"type":"string","format":"date-time"},"in":"query","name":"updatedBefore","required":false},{"schema":{"type":"string","maxLength":128},"in":"query","name":"attrKey","required":false},{"schema":{"default":"eq","type":"string","enum":["eq","contains","gt","lt"]},"in":"query","name":"attrOp","required":false},{"schema":{"type":"string","maxLength":500},"in":"query","name":"attrValue","required":false},{"schema":{"type":"string","enum":["true","false"]},"in":"query","name":"vip","required":false},{"schema":{"type":"string","enum":["granted","revoked","pending_confirmation","none"]},"in":"query","name":"consentStatus","required":false},{"schema":{"type":"string","enum":["email","sms","whatsapp","push","postcard"]},"in":"query","name":"consentChannel","required":false},{"schema":{"type":"string","format":"date-time"},"in":"query","name":"consentSince","required":false},{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"query","name":"topicId","required":false},{"schema":{"type":"string","maxLength":100},"in":"query","name":"country","required":false},{"schema":{"type":"string","maxLength":100},"in":"query","name":"region","required":false},{"schema":{"type":"string","maxLength":100},"in":"query","name":"city","required":false},{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"query","name":"segmentId","required":false},{"schema":{"type":"string","maxLength":128},"in":"query","name":"eventName","required":false},{"schema":{"type":"string","format":"date-time"},"in":"query","name":"eventSince","required":false},{"schema":{"type":"string","format":"date-time"},"in":"query","name":"eventBefore","required":false},{"schema":{"type":"string","maxLength":128},"in":"query","name":"source","required":false},{"schema":{"type":"string","enum":["only","include"]},"in":"query","name":"archived","required":false},{"schema":{"default":"newest","type":"string","enum":["newest","oldest"]},"in":"query","name":"sort","required":false},{"schema":{"default":50,"type":"integer","minimum":1,"maximum":200},"in":"query","name":"limit","required":false},{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"query","name":"cursor","required":false},{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetV1ProfilesResponse"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1ListsByIdMembers"},"post":{"tags":["lists"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PostV1ListsByIdMembersBody"}}}},"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PostV1ListsByIdMembersResponse"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"postV1ListsByIdMembers"}},"/v1/lists/{id}/size-history":{"get":{"summary":"List size at the end of each of the last N days, or of each day between `from` and `to`","tags":["lists"],"parameters":[{"schema":{"default":30,"type":"integer","minimum":2,"maximum":365},"in":"query","name":"days","required":false},{"schema":{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"},"in":"query","name":"from","required":false},{"schema":{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"},"in":"query","name":"to","required":false},{"schema":{"type":"integer","minimum":1,"maximum":200},"in":"query","name":"limit","required":false,"description":"Page size; omitted returns the whole list"},{"schema":{"type":"string","pattern":"^\\d{1,9}$"},"in":"query","name":"cursor","required":false,"description":"Opaque: the `nextCursor` of the previous page"},{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"items":{"type":"array","items":{"type":"object","properties":{"day":{"type":"string"},"size":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"added":{"default":0,"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"removed":{"default":0,"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["day","size","added","removed"],"additionalProperties":false}},"nextCursor":{"nullable":true,"type":"string"}},"required":["items","nextCursor"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1ListsByIdSizeHistory"}},"/v1/lists/{id}/members-by-join":{"get":{"summary":"Members oldest-joined first, with join time and source","tags":["lists"],"parameters":[{"schema":{"default":50,"type":"integer","minimum":1,"maximum":200},"in":"query","name":"limit","required":false},{"schema":{"type":"string","maxLength":80},"in":"query","name":"cursor","required":false},{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"items":{"type":"array","items":{"$ref":"#/components/schemas/ItemsItem5"}},"nextCursor":{"nullable":true,"type":"string"}},"required":["items","nextCursor"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1ListsByIdMembersByJoin"}},"/v1/lists/{id}/members/{profileId}":{"get":{"summary":"The data stored on one membership","tags":["lists"],"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true},{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"profileId","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ItemsItem5"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1ListsByIdMembersByProfileId"},"delete":{"tags":["lists"],"parameters":[{"schema":{"default":"removed","type":"string","enum":["unsubscribed","cleaned","deleted","removed"]},"in":"query","name":"reason","required":false},{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true},{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"profileId","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PostV1ListsByIdMembersResponse"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"deleteV1ListsByIdMembersByProfileId"}},"/v1/lists/{id}/members/{profileId}/meta":{"put":{"summary":"Replace the data stored on one membership","tags":["lists"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"meta":{"type":"object","additionalProperties":{}}},"required":["meta"]}}}},"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true},{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"profileId","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ItemsItem5"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"putV1ListsByIdMembersByProfileIdMeta"}},"/v1/lists/{id}/opt-in":{"post":{"summary":"Request double opt-in: emails a confirmation link; the person joins the list and is granted consent only when they confirm","tags":["lists"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"email":{"type":"string","minLength":3,"maxLength":320},"firstName":{"type":"string","maxLength":200},"lastName":{"type":"string","maxLength":200},"consentText":{"type":"string","minLength":1,"maxLength":4000},"consentVersion":{"type":"string","maxLength":64},"pageUrl":{"type":"string","maxLength":2000},"connectionId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},"required":["email","consentText"]}}}},"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"string","enum":["pending","already_member"]},"profileId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},"required":["status","profileId"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"postV1ListsByIdOptIn"}},"/v1/lists/{id}/pending":{"get":{"summary":"People who asked to join a double opt-in list and have not confirmed yet","tags":["lists"],"parameters":[{"schema":{"type":"integer","minimum":1,"maximum":200},"in":"query","name":"limit","required":false,"description":"Page size; omitted returns the whole list"},{"schema":{"type":"string","pattern":"^\\d{1,9}$"},"in":"query","name":"cursor","required":false,"description":"Opaque: the `nextCursor` of the previous page"},{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"items":{"type":"array","items":{"type":"object","properties":{"profileId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"email":{"nullable":true,"type":"string"},"requestedAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"expiresAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"}},"required":["profileId","email","requestedAt","expiresAt"],"additionalProperties":false}},"nextCursor":{"nullable":true,"type":"string"}},"required":["items","nextCursor"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1ListsByIdPending"}},"/v1/lists/{id}/pending/resend":{"post":{"summary":"Re-send the confirmation email to everyone still waiting (up to 500); suppressed or withdrawn people are skipped","tags":["lists"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"connectionId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}}}}},"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"sent":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"skipped":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["sent","skipped"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"postV1ListsByIdPendingResend"}},"/l/c/{*}":{"get":{"summary":"List double opt-in confirmation page (does not change state)","tags":["lists"],"parameters":[{"schema":{"type":"string","minLength":10,"maxLength":1000},"in":"path","name":"*","required":true}],"security":[],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"string"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getLCWildcard"},"post":{"summary":"Confirm list double opt-in; idempotent","tags":["lists"],"parameters":[{"schema":{"type":"string","minLength":10,"maxLength":1000},"in":"path","name":"*","required":true}],"security":[],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"string"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"postLCWildcard"}},"/v1/lists/{id}/growth-history":{"get":{"summary":"Daily sign-ups, imports, other adds, removals, pending opt-ins and the running member total of one list","tags":["audience"],"parameters":[{"schema":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}(?:[T ]\\d{2}:\\d{2}(?::\\d{2}(?:\\.\\d+)?)?(?:Z|[+-]\\d{2}:?\\d{2})?)?$","format":"date"},"in":"query","name":"from","required":false},{"schema":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}(?:[T ]\\d{2}:\\d{2}(?::\\d{2}(?:\\.\\d+)?)?(?:Z|[+-]\\d{2}:?\\d{2})?)?$","format":"date"},"in":"query","name":"to","required":false},{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"listId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"items":{"type":"array","items":{"type":"object","properties":{"day":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},"subs":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"imports":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"otherAdds":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"removed":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"pending":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"total":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"unsubs":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"cleaned":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"otherRemoves":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"deleted":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["day","subs","imports","otherAdds","removed","pending","total","unsubs","cleaned","otherRemoves","deleted"],"additionalProperties":false}}},"required":["listId","items"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1ListsByIdGrowthHistory"}},"/v1/lists/{id}/activity":{"get":{"summary":"Per-day sends, deliveries, opens, clicks, bounces and complaints for the people on this list","tags":["audience"],"parameters":[{"schema":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}(?:[T ]\\d{2}:\\d{2}(?::\\d{2}(?:\\.\\d+)?)?(?:Z|[+-]\\d{2}:?\\d{2})?)?$","format":"date"},"in":"query","name":"from","required":false},{"schema":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}(?:[T ]\\d{2}:\\d{2}(?::\\d{2}(?:\\.\\d+)?)?(?:Z|[+-]\\d{2}:?\\d{2})?)?$","format":"date"},"in":"query","name":"to","required":false},{"schema":{"type":"integer","minimum":1,"maximum":200},"in":"query","name":"limit","required":false,"description":"Page size; omitted returns the whole list"},{"schema":{"type":"string","pattern":"^\\d{1,9}$"},"in":"query","name":"cursor","required":false,"description":"Opaque: the `nextCursor` of the previous page"},{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"items":{"type":"array","items":{"type":"object","properties":{"day":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},"sent":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"delivered":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"opened":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"clicked":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"bounced":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"complaints":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["day","sent","delivered","opened","clicked","bounced","complaints"],"additionalProperties":false}},"nextCursor":{"nullable":true,"type":"string"}},"required":["items","nextCursor"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1ListsByIdActivity"}},"/v1/lists/{id}/clients":{"get":{"summary":"Opens or clicks by email client, device or country for this list","tags":["audience"],"parameters":[{"schema":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}(?:[T ]\\d{2}:\\d{2}(?::\\d{2}(?:\\.\\d+)?)?(?:Z|[+-]\\d{2}:?\\d{2})?)?$","format":"date"},"in":"query","name":"from","required":false},{"schema":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}(?:[T ]\\d{2}:\\d{2}(?::\\d{2}(?:\\.\\d+)?)?(?:Z|[+-]\\d{2}:?\\d{2})?)?$","format":"date"},"in":"query","name":"to","required":false},{"schema":{"default":"client","type":"string","enum":["country","client","device"]},"in":"query","name":"by","required":false},{"schema":{"default":"open","type":"string","enum":["open","click"]},"in":"query","name":"kind","required":false},{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"by":{"type":"string"},"kind":{"type":"string"},"rows":{"$ref":"#/components/schemas/Rows"}},"required":["by","kind","rows"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1ListsByIdClients"}},"/v1/lists/{id}/abuse-reports":{"get":{"tags":["audience"],"parameters":[{"schema":{"default":50,"type":"integer","minimum":1,"maximum":200},"in":"query","name":"limit","required":false},{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"query","name":"cursor","required":false},{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetV1ListsByIdAbuseReportsResponse"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1ListsByIdAbuseReports"}},"/v1/lists/{id}/abuse-reports/{reportId}":{"get":{"tags":["audience"],"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true},{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"reportId","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ItemsItem6"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1ListsByIdAbuseReportsByReportId"}},"/v1/lists/{id}/members/{profileId}/goals":{"get":{"summary":"Goals one list member reached (conversions with value and what drove them)","tags":["audience"],"parameters":[{"schema":{"type":"integer","minimum":1,"maximum":200},"in":"query","name":"limit","required":false,"description":"Page size; omitted returns the whole list"},{"schema":{"type":"string","pattern":"^\\d{1,9}$"},"in":"query","name":"cursor","required":false,"description":"Opaque: the `nextCursor` of the previous page"},{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true},{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"profileId","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"items":{"type":"array","items":{"type":"object","properties":{"goalKey":{"type":"string"},"at":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"valueMinor":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"currency":{"nullable":true,"type":"string"},"attributedKind":{"nullable":true,"type":"string"},"attributedId":{"nullable":true,"type":"string"}},"required":["goalKey","at","valueMinor","currency","attributedKind","attributedId"],"additionalProperties":false}},"nextCursor":{"nullable":true,"type":"string"}},"required":["items","nextCursor"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1ListsByIdMembersByProfileIdGoals"}},"/v1/reports/{id}/abuse-reports":{"get":{"summary":"Spam complaints for one campaign as a paged list","tags":["reports"],"parameters":[{"schema":{"default":50,"type":"integer","minimum":1,"maximum":200},"in":"query","name":"limit","required":false},{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"query","name":"cursor","required":false},{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetV1ListsByIdAbuseReportsResponse"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1ReportsByIdAbuseReports"}},"/v1/reports/{id}/abuse-reports/{reportId}":{"get":{"tags":["reports"],"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true},{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"reportId","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ItemsItem6"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1ReportsByIdAbuseReportsByReportId"}},"/v1/batches":{"post":{"summary":"Queue up to 1,000 API calls; they run in order in the background (not atomic). Poll the batch or subscribe to batch.finished","tags":["batches"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"operations":{"minItems":1,"maxItems":1000,"type":"array","items":{"type":"object","properties":{"method":{"type":"string","enum":["GET","POST","PUT","PATCH","DELETE"]},"path":{"type":"string","maxLength":2000,"pattern":"^\\/v1\\/[^\\s]*$"},"body":{}},"required":["method","path"]}},"stopOnError":{"default":false,"type":"boolean"},"idempotencyKey":{"type":"string","minLength":1,"maxLength":200}},"required":["operations"]}}}},"responses":{"202":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PostV1BatchesResponse"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"postV1Batches"},"get":{"tags":["batches"],"parameters":[{"schema":{"default":50,"type":"integer","minimum":1,"maximum":200},"in":"query","name":"limit","required":false},{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"query","name":"cursor","required":false}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"items":{"type":"array","items":{"$ref":"#/components/schemas/PostV1BatchesResponse"}},"nextCursor":{"nullable":true,"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},"required":["items","nextCursor"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1Batches"}},"/v1/batches/{id}":{"get":{"tags":["batches"],"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PostV1BatchesResponse"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1BatchesById"},"delete":{"summary":"Cancel: calls not yet run are skipped (one already in flight completes)","tags":["batches"],"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PostV1BatchesResponse"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"deleteV1BatchesById"}},"/v1/batches/{id}/results":{"get":{"summary":"Each call's status and response body, in call order (page with `after`)","tags":["batches"],"parameters":[{"schema":{"default":-1,"type":"integer","minimum":-1,"maximum":9007199254740991},"in":"query","name":"after","required":false},{"schema":{"default":200,"type":"integer","minimum":1,"maximum":1000},"in":"query","name":"limit","required":false},{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"items":{"type":"array","items":{"type":"object","properties":{"index":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"method":{"type":"string"},"path":{"type":"string"},"status":{"type":"string","enum":["pending","succeeded","failed","cancelled"]},"responseStatus":{"nullable":true,"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"body":{},"finishedAt":{"nullable":true,"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"}},"required":["index","method","path","status","responseStatus","body","finishedAt"],"additionalProperties":false}},"nextAfter":{"nullable":true,"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["items","nextAfter"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1BatchesByIdResults"}},"/v1/template-conversion-jobs":{"get":{"summary":"Block-to-HTML conversions, newest first","tags":["templates"],"parameters":[{"schema":{"default":50,"type":"integer","minimum":1,"maximum":200},"in":"query","name":"limit","required":false},{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"query","name":"cursor","required":false}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"items":{"type":"array","items":{"$ref":"#/components/schemas/ItemsItem7"}},"nextCursor":{"nullable":true,"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},"required":["items","nextCursor"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1TemplateConversionJobs"}},"/v1/template-conversion-jobs/{id}":{"get":{"tags":["templates"],"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ItemsItem7"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1TemplateConversionJobsById"}},"/v1/campaign-messages/{id}/tags":{"get":{"tags":["campaigns"],"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"tags":{"type":"array","items":{"type":"string"}}},"required":["tags"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1CampaignMessagesByIdTags"},"put":{"summary":"Replace the tags of one campaign message (the message must exist)","tags":["campaigns"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"tags":{"maxItems":50,"type":"array","items":{"type":"string","minLength":1,"maxLength":64}}},"required":["tags"]}}}},"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"tags":{"type":"array","items":{"type":"string"}}},"required":["tags"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"putV1CampaignMessagesByIdTags"}},"/v1/activity/highlights":{"get":{"summary":"Marketer feed over the chosen window: finished sends, each sign-up one by one, daily list growth and the audience milestone reached; paged by time","tags":["audience"],"parameters":[{"schema":{"default":14,"type":"integer","minimum":1,"maximum":90},"in":"query","name":"days","required":false},{"schema":{"default":30,"type":"integer","minimum":1,"maximum":100},"in":"query","name":"limit","required":false},{"schema":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},"in":"query","name":"cursor","required":false}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"items":{"type":"array","items":{"type":"object","properties":{"at":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"kind":{"type":"string","enum":["send","growth","signup","milestone"]},"text":{"type":"string"},"targetId":{"nullable":true,"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},"required":["at","kind","text","targetId"],"additionalProperties":false}},"nextCursor":{"nullable":true,"type":"string"}},"required":["items","nextCursor"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1ActivityHighlights"}},"/v1/tags":{"get":{"summary":"Tag directory: every tag with per-resource-type counts and its group","tags":["tags"],"parameters":[{"schema":{"type":"string","maxLength":64},"in":"query","name":"resourceType","required":false},{"schema":{"type":"string","maxLength":64},"in":"query","name":"q","required":false},{"schema":{"type":"integer","minimum":1,"maximum":200},"in":"query","name":"limit","required":false,"description":"Page size; omitted returns the whole list"},{"schema":{"type":"string","pattern":"^\\d{1,9}$"},"in":"query","name":"cursor","required":false,"description":"Opaque: the `nextCursor` of the previous page"}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"items":{"type":"array","items":{"type":"object","properties":{"tag":{"type":"string"},"group":{"nullable":true,"type":"string"},"color":{"nullable":true,"type":"string"},"description":{"nullable":true,"type":"string"},"counts":{"type":"object","additionalProperties":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}}},"required":["tag","group","color","description","counts"],"additionalProperties":false}},"nextCursor":{"nullable":true,"type":"string"}},"required":["items","nextCursor"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1Tags"},"post":{"summary":"Create a tag before anything carries it","tags":["tags"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":64},"color":{"type":"string","pattern":"^#[0-9a-fA-F]{6}$"},"description":{"type":"string","maxLength":500}},"required":["name"]}}}},"responses":{"201":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string"},"created":{"type":"boolean"},"color":{"nullable":true,"type":"string"},"description":{"nullable":true,"type":"string"}},"required":["name","created","color","description"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"postV1Tags"}},"/v1/tags/{name}":{"patch":{"summary":"Rename a tag everywhere (merges into an existing tag of that name) and/or set its colour and description","tags":["tags"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":64},"color":{"nullable":true,"type":"string","pattern":"^#[0-9a-fA-F]{6}$"},"description":{"nullable":true,"type":"string","maxLength":500}}}}}},"parameters":[{"schema":{"type":"string","minLength":1,"maxLength":64},"in":"path","name":"name","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"ok":{"type":"boolean","enum":[true]}},"required":["ok"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"patchV1TagsByName"},"get":{"summary":"One tag with its colour and description","tags":["tags"],"parameters":[{"schema":{"type":"string","minLength":1,"maxLength":64},"in":"path","name":"name","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string"},"color":{"nullable":true,"type":"string"},"description":{"nullable":true,"type":"string"}},"required":["name","color","description"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1TagsByName"},"delete":{"summary":"Delete a tag from every profile and resource","tags":["tags"],"parameters":[{"schema":{"type":"string","minLength":1,"maxLength":64},"in":"path","name":"name","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"ok":{"type":"boolean","enum":[true]}},"required":["ok"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"deleteV1TagsByName"}},"/v1/tag-groups":{"get":{"tags":["tags"],"parameters":[{"schema":{"type":"integer","minimum":1,"maximum":200},"in":"query","name":"limit","required":false,"description":"Page size; omitted returns the whole list"},{"schema":{"type":"string","pattern":"^\\d{1,9}$"},"in":"query","name":"cursor","required":false,"description":"Opaque: the `nextCursor` of the previous page"}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"items":{"type":"array","items":{"$ref":"#/components/schemas/ItemsItem8"}},"nextCursor":{"nullable":true,"type":"string"}},"required":["items","nextCursor"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1TagGroups"},"post":{"tags":["tags"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":64},"tags":{"maxItems":500,"type":"array","items":{"type":"string","minLength":1,"maxLength":64}},"exclusive":{"type":"boolean"},"isDefault":{"type":"boolean"}},"required":["name"]}}}},"responses":{"201":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ItemsItem8"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"postV1TagGroups"}},"/v1/tag-groups/{id}":{"get":{"tags":["tags"],"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ItemsItem8"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1TagGroupsById"},"patch":{"tags":["tags"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":64},"tags":{"maxItems":500,"type":"array","items":{"type":"string","minLength":1,"maxLength":64}},"exclusive":{"type":"boolean"},"isDefault":{"type":"boolean"}}}}}},"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ItemsItem8"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"patchV1TagGroupsById"},"delete":{"tags":["tags"],"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"ok":{"type":"boolean","enum":[true]}},"required":["ok"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"deleteV1TagGroupsById"}},"/v1/tags/resources/{resourceType}/{resourceId}":{"get":{"tags":["tags"],"parameters":[{"schema":{"type":"string","minLength":1,"maxLength":64},"in":"path","name":"resourceType","required":true},{"schema":{"type":"string","minLength":1,"maxLength":128},"in":"path","name":"resourceId","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"tags":{"type":"array","items":{"type":"string"}}},"required":["tags"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1TagsResourcesByResourceTypeByResourceId"},"put":{"summary":"Replace the resource tag set","tags":["tags"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"tags":{"maxItems":50,"type":"array","items":{"type":"string","minLength":1,"maxLength":64}}},"required":["tags"]}}}},"parameters":[{"schema":{"type":"string","minLength":1,"maxLength":64},"in":"path","name":"resourceType","required":true},{"schema":{"type":"string","minLength":1,"maxLength":128},"in":"path","name":"resourceId","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"tags":{"type":"array","items":{"type":"string"}}},"required":["tags"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"putV1TagsResourcesByResourceTypeByResourceId"},"post":{"summary":"Add tags to a resource without touching its other tags","tags":["tags"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"tags":{"maxItems":50,"type":"array","items":{"type":"string","minLength":1,"maxLength":64}}},"required":["tags"]}}}},"parameters":[{"schema":{"type":"string","minLength":1,"maxLength":64},"in":"path","name":"resourceType","required":true},{"schema":{"type":"string","minLength":1,"maxLength":128},"in":"path","name":"resourceId","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"tags":{"type":"array","items":{"type":"string"}}},"required":["tags"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"postV1TagsResourcesByResourceTypeByResourceId"}},"/v1/tags/by-tag/{resourceType}/{name}":{"get":{"tags":["tags"],"parameters":[{"schema":{"type":"string","minLength":1,"maxLength":64},"in":"path","name":"resourceType","required":true},{"schema":{"type":"string","minLength":1,"maxLength":64},"in":"path","name":"name","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"ids":{"type":"array","items":{"type":"string"}}},"required":["ids"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1TagsByTagByResourceTypeByName"}},"/v1/attributes/fields":{"get":{"summary":"Declared custom fields (merge fields) with type, default and display order","tags":["segments"],"parameters":[{"schema":{"type":"integer","minimum":1,"maximum":200},"in":"query","name":"limit","required":false,"description":"Page size; omitted returns the whole list"},{"schema":{"type":"string","pattern":"^\\d{1,9}$"},"in":"query","name":"cursor","required":false,"description":"Opaque: the `nextCursor` of the previous page"}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"items":{"$ref":"#/components/schemas/Items4"},"nextCursor":{"nullable":true,"type":"string"}},"required":["items","nextCursor"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1AttributesFields"},"post":{"tags":["segments"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PostV1AttributesFieldsBody"}}}},"responses":{"201":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ItemsItem9"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"postV1AttributesFields"}},"/v1/attributes/fields/batch":{"post":{"summary":"create | read (by key) | update | archive up to 50 fields in one transaction","tags":["segments"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"op":{"type":"string","enum":["create"]},"items":{"minItems":1,"maxItems":50,"type":"array","items":{"$ref":"#/components/schemas/PostV1AttributesFieldsBody"}}},"required":["op","items"]},{"type":"object","properties":{"op":{"type":"string","enum":["read"]},"keys":{"minItems":1,"maxItems":100,"type":"array","items":{"type":"string","minLength":1,"maxLength":64}}},"required":["op","keys"]},{"type":"object","properties":{"op":{"type":"string","enum":["update"]},"items":{"minItems":1,"maxItems":50,"type":"array","items":{"type":"object","properties":{"key":{"type":"string","minLength":1,"maxLength":64},"patch":{"$ref":"#/components/schemas/Patch"}},"required":["key","patch"]}}},"required":["op","items"]},{"type":"object","properties":{"op":{"type":"string","enum":["archive"]},"keys":{"minItems":1,"maxItems":50,"type":"array","items":{"type":"string","minLength":1,"maxLength":64}}},"required":["op","keys"]}]}}}},"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"items":{"$ref":"#/components/schemas/Items4"},"archived":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"missing":{"type":"array","items":{"type":"string"}}},"required":["items","archived"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"postV1AttributesFieldsBatch"}},"/v1/attributes/fields/{key}":{"get":{"tags":["segments"],"parameters":[{"schema":{"type":"string","minLength":1,"maxLength":64},"in":"path","name":"key","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ItemsItem9"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1AttributesFieldsByKey"},"patch":{"tags":["segments"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Patch"}}}},"parameters":[{"schema":{"type":"string","minLength":1,"maxLength":64},"in":"path","name":"key","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ItemsItem9"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"patchV1AttributesFieldsByKey"},"delete":{"tags":["segments"],"parameters":[{"schema":{"type":"string","minLength":1,"maxLength":64},"in":"path","name":"key","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"ok":{"type":"boolean","enum":[true]}},"required":["ok"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"deleteV1AttributesFieldsByKey"}},"/v1/profiles/{id}/attribute-changes":{"get":{"summary":"History of attribute changes (old and new value, source, time), newest first; filter by key","tags":["segments"],"parameters":[{"schema":{"type":"string","minLength":1,"maxLength":128},"in":"query","name":"key","required":false},{"schema":{"default":50,"type":"integer","minimum":1,"maximum":200},"in":"query","name":"limit","required":false},{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"query","name":"cursor","required":false},{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"items":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"profileId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"key":{"type":"string"},"old":{"nullable":true},"new":{"nullable":true},"source":{"nullable":true,"type":"string"},"at":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"}},"required":["id","profileId","key","old","new","source","at"],"additionalProperties":false}},"nextCursor":{"nullable":true,"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},"required":["items","nextCursor"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1ProfilesByIdAttributeChanges"}},"/v1/attributes/computed":{"get":{"summary":"Computed attributes: event aggregates recomputed hourly onto profiles","tags":["segments"],"parameters":[{"schema":{"type":"integer","minimum":1,"maximum":200},"in":"query","name":"limit","required":false,"description":"Page size; omitted returns the whole list"},{"schema":{"type":"string","pattern":"^\\d{1,9}$"},"in":"query","name":"cursor","required":false,"description":"Opaque: the `nextCursor` of the previous page"}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"items":{"type":"array","items":{"$ref":"#/components/schemas/ItemsItem10"}},"nextCursor":{"nullable":true,"type":"string"}},"required":["items","nextCursor"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1AttributesComputed"},"post":{"tags":["segments"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"key":{"type":"string","minLength":1,"maxLength":64,"pattern":"^[A-Za-z][A-Za-z0-9_]*$"},"label":{"type":"string","minLength":1,"maxLength":128},"eventName":{"default":"","type":"string","maxLength":128},"fn":{"type":"string","enum":["count","sum","avg","min","max","first","last","distinct_count","list","keyed_latest","any_of","group","performed_many"]},"sourceKeys":{"minItems":1,"maxItems":20,"type":"array","items":{"type":"string","pattern":"^[A-Za-z][A-Za-z0-9_]*$"}},"property":{"type":"string","pattern":"^[a-zA-Z0-9_]{1,64}(\\.[a-zA-Z0-9_]{1,64}){0,4}$|^\\$value$"},"keyProperty":{"type":"string","pattern":"^[a-zA-Z0-9_]{1,64}(\\.[a-zA-Z0-9_]{1,64}){0,4}$|^\\$value$"},"where":{"type":"object","additionalProperties":{"anyOf":[{"type":"string","maxLength":256},{"type":"number"},{"type":"boolean"}]}},"windowDays":{"type":"integer","minimum":1,"maximum":3650},"maxItems":{"type":"integer","minimum":1,"maximum":2000},"status":{"default":"active","type":"string","enum":["active","paused"]}},"required":["key","fn"]}}}},"responses":{"201":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ItemsItem10"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"postV1AttributesComputed"}},"/v1/attributes/computed/run":{"post":{"summary":"Recompute all computed attributes now","tags":["segments"],"responses":{"202":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"queued":{"type":"boolean","enum":[true]}},"required":["queued"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"postV1AttributesComputedRun"}},"/v1/attributes/computed/{key}":{"get":{"tags":["segments"],"parameters":[{"schema":{"type":"string","minLength":1,"maxLength":64},"in":"path","name":"key","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ItemsItem10"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1AttributesComputedByKey"},"patch":{"tags":["segments"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"label":{"type":"string","minLength":1,"maxLength":128},"eventName":{"type":"string","maxLength":128},"fn":{"type":"string","enum":["count","sum","avg","min","max","first","last","distinct_count","list","keyed_latest","any_of","group","performed_many"]},"sourceKeys":{"minItems":1,"maxItems":20,"type":"array","items":{"type":"string","pattern":"^[A-Za-z][A-Za-z0-9_]*$"}},"property":{"type":"string","pattern":"^[a-zA-Z0-9_]{1,64}(\\.[a-zA-Z0-9_]{1,64}){0,4}$|^\\$value$"},"keyProperty":{"type":"string","pattern":"^[a-zA-Z0-9_]{1,64}(\\.[a-zA-Z0-9_]{1,64}){0,4}$|^\\$value$"},"where":{"type":"object","additionalProperties":{"anyOf":[{"type":"string","maxLength":256},{"type":"number"},{"type":"boolean"}]}},"windowDays":{"type":"integer","minimum":1,"maximum":3650},"maxItems":{"type":"integer","minimum":1,"maximum":2000},"status":{"type":"string","enum":["active","paused"]}}}}}},"parameters":[{"schema":{"type":"string","minLength":1,"maxLength":64},"in":"path","name":"key","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ItemsItem10"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"patchV1AttributesComputedByKey"},"delete":{"tags":["segments"],"parameters":[{"schema":{"type":"string","minLength":1,"maxLength":64},"in":"path","name":"key","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"ok":{"type":"boolean","enum":[true]}},"required":["ok"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"deleteV1AttributesComputedByKey"}},"/v1/attributes/field-groups":{"get":{"tags":["segments"],"parameters":[{"schema":{"type":"integer","minimum":1,"maximum":200},"in":"query","name":"limit","required":false,"description":"Page size; omitted returns the whole list"},{"schema":{"type":"string","pattern":"^\\d{1,9}$"},"in":"query","name":"cursor","required":false,"description":"Opaque: the `nextCursor` of the previous page"}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"items":{"type":"array","items":{"$ref":"#/components/schemas/ItemsItem11"}},"nextCursor":{"nullable":true,"type":"string"}},"required":["items","nextCursor"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1AttributesFieldGroups"},"post":{"tags":["segments"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"key":{"type":"string","minLength":1,"maxLength":64,"pattern":"^[a-z][a-z0-9_]*$"},"label":{"type":"string","minLength":1,"maxLength":128},"position":{"default":0,"type":"integer","minimum":0,"maximum":10000}},"required":["key","label"]}}}},"responses":{"201":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ItemsItem11"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"postV1AttributesFieldGroups"}},"/v1/attributes/field-groups/{key}":{"get":{"tags":["segments"],"parameters":[{"schema":{"type":"string","minLength":1,"maxLength":64},"in":"path","name":"key","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ItemsItem11"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1AttributesFieldGroupsByKey"},"patch":{"tags":["segments"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"label":{"type":"string","minLength":1,"maxLength":128},"position":{"type":"integer","minimum":0,"maximum":10000}}}}}},"parameters":[{"schema":{"type":"string","minLength":1,"maxLength":64},"in":"path","name":"key","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ItemsItem11"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"patchV1AttributesFieldGroupsByKey"},"delete":{"summary":"Delete a group; its fields become ungrouped","tags":["segments"],"parameters":[{"schema":{"type":"string","minLength":1,"maxLength":64},"in":"path","name":"key","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"ok":{"type":"boolean","enum":[true]}},"required":["ok"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"deleteV1AttributesFieldGroupsByKey"}},"/v1/stages":{"get":{"summary":"Lifecycle stages in order of weight","tags":["segments"],"parameters":[{"schema":{"type":"integer","minimum":1,"maximum":200},"in":"query","name":"limit","required":false,"description":"Page size; omitted returns the whole list"},{"schema":{"type":"string","pattern":"^\\d{1,9}$"},"in":"query","name":"cursor","required":false,"description":"Opaque: the `nextCursor` of the previous page"}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"items":{"type":"array","items":{"$ref":"#/components/schemas/ItemsItem12"}},"nextCursor":{"nullable":true,"type":"string"}},"required":["items","nextCursor"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1Stages"},"post":{"tags":["segments"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":64},"weight":{"default":0,"type":"integer","minimum":0,"maximum":10000}},"required":["name"]}}}},"responses":{"201":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ItemsItem12"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"postV1Stages"}},"/v1/stages/{id}":{"patch":{"summary":"Rename or reweight; a rename carries the people in it","tags":["segments"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":64},"weight":{"type":"integer","minimum":0,"maximum":10000}}}}}},"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ItemsItem12"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"patchV1StagesById"},"delete":{"summary":"Delete a stage; the people in it end up with no stage","tags":["segments"],"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"ok":{"type":"boolean","enum":[true]}},"required":["ok"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"deleteV1StagesById"}},"/v1/stages/{id}/merge":{"post":{"summary":"Move everyone into another stage and remove this one","tags":["segments"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"intoId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},"required":["intoId"]}}}},"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"moved":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["moved"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"postV1StagesByIdMerge"}},"/v1/stages/{id}/profiles":{"post":{"summary":"Put a contact in the stage (logged in attribute history)","tags":["segments"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PostV1StagesByIdProfilesBody"}}}},"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"ok":{"type":"boolean","enum":[true]}},"required":["ok"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"postV1StagesByIdProfiles"}},"/v1/stages/{id}/profiles/{profileId}":{"delete":{"summary":"Take a contact out of the stage","tags":["segments"],"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true},{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"profileId","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"ok":{"type":"boolean","enum":[true]}},"required":["ok"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"deleteV1StagesByIdProfilesByProfileId"}},"/v1/attributes/fields/{key}/type-check":{"post":{"summary":"Dry run of a field type change: how many stored profile values fit the new type, with examples of those that do not","tags":["segments"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"type":{"type":"string","enum":["text","textarea","number","date","datetime","time","boolean","enum","multi_enum","phone","email","url","address","file","country","region","timezone","locale"]},"choices":{"maxItems":200,"type":"array","items":{"type":"string","minLength":1,"maxLength":128}}},"required":["type"]}}}},"parameters":[{"schema":{"type":"string","minLength":1,"maxLength":64},"in":"path","name":"key","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"key":{"type":"string"},"from":{"type":"string","enum":["text","textarea","number","date","datetime","time","boolean","enum","multi_enum","phone","email","url","address","file","country","region","timezone","locale"]},"to":{"type":"string","enum":["text","textarea","number","date","datetime","time","boolean","enum","multi_enum","phone","email","url","address","file","country","region","timezone","locale"]},"total":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"valid":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"invalid":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"samples":{"type":"array","items":{"type":"object","properties":{"profileId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"value":{}},"required":["profileId","value"],"additionalProperties":false}}},"required":["key","from","to","total","valid","invalid","samples"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"postV1AttributesFieldsByKeyTypeCheck"}},"/v1/topic-groups/default":{"post":{"summary":"Create the default topic group with one opt-in-only general topic per channel (safe to repeat)","tags":["consent"],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"group":{"$ref":"#/components/schemas/Group"},"created":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["group","created"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"postV1TopicGroupsDefault"}},"/v1/topic-groups":{"get":{"tags":["consent"],"parameters":[{"schema":{"type":"integer","minimum":1,"maximum":200},"in":"query","name":"limit","required":false,"description":"Page size; omitted returns the whole list"},{"schema":{"type":"string","pattern":"^\\d{1,9}$"},"in":"query","name":"cursor","required":false,"description":"Opaque: the `nextCursor` of the previous page"}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"items":{"type":"array","items":{"$ref":"#/components/schemas/Group"}},"nextCursor":{"nullable":true,"type":"string"}},"required":["items","nextCursor"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1TopicGroups"},"post":{"tags":["consent"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":128},"displayType":{"default":"checkboxes","type":"string","enum":["checkboxes","radio","dropdown","hidden"]},"position":{"default":0,"type":"integer","minimum":0,"maximum":10000}},"required":["name"]}}}},"responses":{"201":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Group"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"postV1TopicGroups"}},"/v1/topic-groups/{id}":{"get":{"tags":["consent"],"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Group"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1TopicGroupsById"},"patch":{"tags":["consent"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":128},"displayType":{"type":"string","enum":["checkboxes","radio","dropdown","hidden"]},"position":{"type":"integer","minimum":0,"maximum":10000}}}}}},"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Group"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"patchV1TopicGroupsById"},"delete":{"tags":["consent"],"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"ok":{"type":"boolean","enum":[true]}},"required":["ok"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"deleteV1TopicGroupsById"}},"/v1/analytics/audience-sources/{kind}":{"get":{"summary":"Companies (contacts per company), devices and UTM (by `by`), do-not-contact entries, and score points by reason","tags":["audience"],"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"query","name":"listId","required":false},{"schema":{"type":"string","format":"date-time"},"in":"query","name":"from","required":false},{"schema":{"type":"string","format":"date-time"},"in":"query","name":"to","required":false},{"schema":{"default":"day","type":"string","enum":["day","month"]},"in":"query","name":"interval","required":false},{"schema":{"type":"string","maxLength":20},"in":"query","name":"by","required":false},{"schema":{"type":"integer","minimum":1,"maximum":200},"in":"query","name":"limit","required":false,"description":"Page size; omitted returns the whole list"},{"schema":{"type":"string","pattern":"^\\d{1,9}$"},"in":"query","name":"cursor","required":false,"description":"Opaque: the `nextCursor` of the previous page"},{"schema":{"type":"string","enum":["companies","devices","utm","dnc","points"]},"in":"path","name":"kind","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetV1AnalyticsAudienceSourcesByKindResponse"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1AnalyticsAudienceSourcesByKind"}},"/v1/analytics/audience/growth":{"get":{"summary":"Audience growth per day/month: subscribes, unsubscribes, created","tags":["audience"],"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"query","name":"listId","required":false},{"schema":{"type":"string","format":"date-time"},"in":"query","name":"from","required":false},{"schema":{"type":"string","format":"date-time"},"in":"query","name":"to","required":false},{"schema":{"default":"day","type":"string","enum":["day","month"]},"in":"query","name":"interval","required":false},{"schema":{"type":"integer","minimum":1,"maximum":200},"in":"query","name":"limit","required":false,"description":"Page size; omitted returns the whole list"},{"schema":{"type":"string","pattern":"^\\d{1,9}$"},"in":"query","name":"cursor","required":false,"description":"Opaque: the `nextCursor` of the previous page"}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"items":{"type":"array","items":{"type":"object","properties":{"period":{"type":"string"},"subscribes":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"unsubscribes":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"created":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["period","subscribes","unsubscribes","created"],"additionalProperties":false}},"nextCursor":{"nullable":true,"type":"string"}},"required":["items","nextCursor"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1AnalyticsAudienceGrowth"}},"/v1/analytics/audience/locations":{"get":{"tags":["audience"],"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"query","name":"listId","required":false},{"schema":{"type":"string","format":"date-time"},"in":"query","name":"from","required":false},{"schema":{"type":"string","format":"date-time"},"in":"query","name":"to","required":false},{"schema":{"default":"day","type":"string","enum":["day","month"]},"in":"query","name":"interval","required":false},{"schema":{"type":"integer","minimum":1,"maximum":200},"in":"query","name":"limit","required":false,"description":"Page size; omitted returns the whole list"},{"schema":{"type":"string","pattern":"^\\d{1,9}$"},"in":"query","name":"cursor","required":false,"description":"Opaque: the `nextCursor` of the previous page"}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetV1AnalyticsAudienceSourcesByKindResponse"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1AnalyticsAudienceLocations"}},"/v1/analytics/audience/sources":{"get":{"tags":["audience"],"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"query","name":"listId","required":false},{"schema":{"type":"string","format":"date-time"},"in":"query","name":"from","required":false},{"schema":{"type":"string","format":"date-time"},"in":"query","name":"to","required":false},{"schema":{"default":"day","type":"string","enum":["day","month"]},"in":"query","name":"interval","required":false},{"schema":{"type":"integer","minimum":1,"maximum":200},"in":"query","name":"limit","required":false,"description":"Page size; omitted returns the whole list"},{"schema":{"type":"string","pattern":"^\\d{1,9}$"},"in":"query","name":"cursor","required":false,"description":"Opaque: the `nextCursor` of the previous page"}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetV1AnalyticsAudienceSourcesByKindResponse"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1AnalyticsAudienceSources"}},"/v1/analytics/audience/engagement":{"get":{"summary":"Timeline activity by kind (sends, opens, clicks, notes ...)","tags":["audience"],"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"query","name":"listId","required":false},{"schema":{"type":"string","format":"date-time"},"in":"query","name":"from","required":false},{"schema":{"type":"string","format":"date-time"},"in":"query","name":"to","required":false},{"schema":{"default":"day","type":"string","enum":["day","month"]},"in":"query","name":"interval","required":false},{"schema":{"type":"integer","minimum":1,"maximum":200},"in":"query","name":"limit","required":false,"description":"Page size; omitted returns the whole list"},{"schema":{"type":"string","pattern":"^\\d{1,9}$"},"in":"query","name":"cursor","required":false,"description":"Opaque: the `nextCursor` of the previous page"}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetV1AnalyticsAudienceSourcesByKindResponse"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1AnalyticsAudienceEngagement"}},"/v1/activity":{"get":{"summary":"Recent workspace activity feed built from the audit log; filter by target type, action and person","tags":["audience"],"parameters":[{"schema":{"default":50,"type":"integer","minimum":1,"maximum":200},"in":"query","name":"limit","required":false},{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"query","name":"cursor","required":false},{"schema":{"type":"string","maxLength":64},"in":"query","name":"type","required":false},{"schema":{"type":"string","maxLength":128},"in":"query","name":"name","required":false},{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"query","name":"profileId","required":false}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"items":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"at":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"action":{"type":"string"},"summary":{"type":"string"},"targetType":{"type":"string"},"targetId":{"nullable":true,"type":"string"},"actorType":{"type":"string"}},"required":["id","at","action","summary","targetType","targetId","actorType"],"additionalProperties":false}},"nextCursor":{"nullable":true,"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},"required":["items","nextCursor"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1Activity"}},"/v1/jobs":{"get":{"summary":"Bulk jobs and exports, newest first","tags":["audience"],"parameters":[{"schema":{"default":50,"type":"integer","minimum":1,"maximum":200},"in":"query","name":"limit","required":false},{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"query","name":"cursor","required":false},{"schema":{"type":"string","enum":["bulk","export"]},"in":"query","name":"kind","required":false},{"schema":{"type":"string","enum":["queued","running","completed","failed"]},"in":"query","name":"status","required":false}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetV1JobsResponse"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1Jobs"}},"/v1/jobs/{id}":{"delete":{"summary":"Delete a finished job","tags":["audience"],"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"ok":{"type":"boolean","enum":[true]}},"required":["ok"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"deleteV1JobsById"},"get":{"summary":"Look up any async job (bulk, export, import, catalog bulk, lead, AI, account export, estimate) by id","tags":["jobs"],"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"kind":{"type":"string","enum":["bulk","export","import","catalog_bulk","lead","ai","account_export","estimate"]},"status":{"type":"string"},"total":{"nullable":true,"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"processed":{"nullable":true,"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"error":{"nullable":true,"type":"string"},"createdAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"detailPath":{"type":"string"}},"required":["id","kind","status","total","processed","error","createdAt","detailPath"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1JobsById"}},"/v1/exports":{"get":{"tags":["audience"],"parameters":[{"schema":{"default":50,"type":"integer","minimum":1,"maximum":200},"in":"query","name":"limit","required":false},{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"query","name":"cursor","required":false}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetV1JobsResponse"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1Exports"},"post":{"summary":"Export a segment, a list or all profiles to CSV, NDJSON or XLSX, with chosen columns (`attributes.<key>` for a custom property); poll GET /v1/exports/:id for the signed download URL","tags":["bulk"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"selector":{"$ref":"#/components/schemas/Selector"},"notifyEmail":{"type":"string","format":"email","pattern":"^(?:[A-Za-z0-9_'+\\-]+\\.)*[A-Za-z0-9_'+\\-]*[A-Za-z0-9_+-]@(?:[A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$"},"columns":{"minItems":1,"maxItems":80,"type":"array","items":{"anyOf":[{"type":"string","enum":["id","email","phone","first_name","last_name","timezone","locale","country","city","region","source","lifecycle_stage","created_at","tags","attributes"]},{"type":"string","pattern":"^attributes\\.[A-Za-z0-9_]{1,64}$"}]}},"format":{"default":"csv","type":"string","enum":["csv","ndjson","xlsx"]}},"required":["selector"]}}}},"responses":{"202":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ItemsItem14"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"postV1Exports"}},"/v1/exports/activity":{"post":{"summary":"CSV export of the profile activity timeline (poll GET /v1/exports/:id)","tags":["audience"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PostV1ExportsActivityBody"}}}},"responses":{"202":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ItemsItem14"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"postV1ExportsActivity"}},"/v1/exports/suppressions":{"post":{"summary":"CSV export of suppressions (rejects)","tags":["audience"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PostV1ExportsActivityBody"}}}},"responses":{"202":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ItemsItem14"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"postV1ExportsSuppressions"}},"/v1/subscription-channels":{"get":{"summary":"Channels a person can subscribe to, with the purposes each is consented for","tags":["consent"],"parameters":[{"schema":{"type":"integer","minimum":1,"maximum":200},"in":"query","name":"limit","required":false,"description":"Page size; omitted returns the whole list"},{"schema":{"type":"string","pattern":"^\\d{1,9}$"},"in":"query","name":"cursor","required":false,"description":"Opaque: the `nextCursor` of the previous page"}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"items":{"type":"array","items":{"type":"object","properties":{"channel":{"type":"string","enum":["email","sms"]},"purposes":{"type":"array","items":{"type":"string","enum":["marketing","prospecting","transactional","operational"]}}},"required":["channel","purposes"],"additionalProperties":false}},"nextCursor":{"nullable":true,"type":"string"}},"required":["items","nextCursor"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1SubscriptionChannels"}},"/v1/topics":{"get":{"summary":"Topics; `groupId` filters by group, `counts=true` adds how many people are subscribed to each","tags":["consent"],"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"query","name":"groupId","required":false},{"schema":{"type":"string","enum":["true"]},"in":"query","name":"counts","required":false},{"schema":{"type":"integer","minimum":1,"maximum":200},"in":"query","name":"limit","required":false,"description":"Page size; omitted returns the whole list"},{"schema":{"type":"string","pattern":"^\\d{1,9}$"},"in":"query","name":"cursor","required":false,"description":"Opaque: the `nextCursor` of the previous page"}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"items":{"type":"array","items":{"$ref":"#/components/schemas/ItemsItem15"}},"nextCursor":{"nullable":true,"type":"string"}},"required":["items","nextCursor"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1Topics"},"post":{"tags":["consent"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"channel":{"type":"string","enum":["email","sms","whatsapp","push","postcard"]},"key":{"type":"string","minLength":1,"maxLength":64,"pattern":"^[a-z0-9_-]+$"},"name":{"type":"string","minLength":1,"maxLength":128},"description":{"nullable":true,"type":"string","maxLength":1000},"defaultOptIn":{"default":false,"type":"boolean"},"visibleInPreferenceCenter":{"default":true,"type":"boolean"},"groupId":{"nullable":true,"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"position":{"type":"integer","minimum":0,"maximum":10000}},"required":["channel","key","name"]}}}},"responses":{"201":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ItemsItem15"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"postV1Topics"}},"/v1/topics/{id}":{"get":{"tags":["consent"],"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ItemsItem15"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1TopicsById"},"patch":{"tags":["consent"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":128},"description":{"nullable":true,"type":"string","maxLength":1000},"defaultOptIn":{"type":"boolean"},"visibleInPreferenceCenter":{"type":"boolean"},"groupId":{"nullable":true,"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"position":{"type":"integer","minimum":0,"maximum":10000}}}}}},"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ItemsItem15"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"patchV1TopicsById"},"delete":{"tags":["consent"],"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"ok":{"type":"boolean","enum":[true]}},"required":["ok"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"deleteV1TopicsById"}},"/v1/profiles/{id}/consent":{"post":{"tags":["consent"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PostV1ProfilesByIdConsentBody"}}}},"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"anyOf":[{"type":"object","properties":{"record":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"profileId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"channel":{"type":"string","enum":["email","sms","whatsapp","push","postcard"]},"purpose":{"type":"string","enum":["marketing","prospecting","transactional","operational"]},"topicId":{"nullable":true,"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"status":{"type":"string","enum":["granted","revoked","pending_confirmation"]},"legalBasis":{"type":"string","enum":["consent","legitimate_interest","contract","other"]},"source":{"type":"string","enum":["form","import","api","sms_keyword","preference_center","admin","double_opt_in"]},"sourceRef":{"nullable":true,"type":"string"},"disclosureText":{"nullable":true,"type":"string"},"disclosureVersion":{"nullable":true,"type":"string"},"expiresAt":{"nullable":true,"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"revocationScope":{"nullable":true,"type":"string","enum":["topic","channel","all"]},"at":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"}},"required":["id","profileId","channel","purpose","topicId","status","legalBasis","source","sourceRef","disclosureText","disclosureVersion","expiresAt","revocationScope","at"],"additionalProperties":false}},"required":["record"],"additionalProperties":false},{"type":"object","properties":{"ignored":{"type":"string","enum":["revoked_previously"]}},"required":["ignored"],"additionalProperties":false}]}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"postV1ProfilesByIdConsent"},"get":{"tags":["consent"],"parameters":[{"schema":{"type":"integer","minimum":1,"maximum":200},"in":"query","name":"limit","required":false,"description":"Page size; omitted returns the whole list"},{"schema":{"type":"string","pattern":"^\\d{1,9}$"},"in":"query","name":"cursor","required":false,"description":"Opaque: the `nextCursor` of the previous page"},{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"items":{"$ref":"#/components/schemas/Items7"},"nextCursor":{"nullable":true,"type":"string"}},"required":["items","nextCursor"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1ProfilesByIdConsent"}},"/v1/profiles/{id}/contact-prefs":{"get":{"summary":"Snooze, preferred channel and per-channel frequency; all enforced by the eligibility gate","tags":["consent"],"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetV1ProfilesByIdContactPrefsResponse"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1ProfilesByIdContactPrefs"},"put":{"tags":["consent"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"snoozedUntil":{"nullable":true,"type":"string","format":"date-time"},"preferredChannel":{"nullable":true,"type":"string","enum":["email","sms","whatsapp","push","postcard"]},"emailFrequency":{"type":"string","enum":["all","daily","weekly","monthly"]},"smsFrequency":{"type":"string","enum":["all","daily","weekly","monthly"]},"adsOptOut":{"type":"boolean"},"trackingOptOut":{"type":"boolean"}}}}}},"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetV1ProfilesByIdContactPrefsResponse"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"putV1ProfilesByIdContactPrefs"}},"/v1/optouts":{"get":{"summary":"Everyone currently opted out, by channel and topic","tags":["consent"],"parameters":[{"schema":{"type":"string","enum":["email","sms","whatsapp","push","postcard"]},"in":"query","name":"channel","required":false},{"schema":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"string","enum":["none"]}]},"in":"query","name":"topicId","required":false},{"schema":{"default":50,"type":"integer","minimum":1,"maximum":200},"in":"query","name":"limit","required":false},{"schema":{"default":0,"type":"integer","minimum":0,"maximum":9007199254740991},"in":"query","name":"offset","required":false}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"items":{"type":"array","items":{"type":"object","properties":{"profileId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"channel":{"type":"string","enum":["email","sms","whatsapp","push","postcard"]},"purpose":{"type":"string"},"topicId":{"nullable":true,"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"revokedAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"}},"required":["profileId","channel","purpose","topicId","revokedAt"],"additionalProperties":false}},"total":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["items","total"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1Optouts"}},"/v1/suppressions":{"get":{"tags":["consent"],"parameters":[{"schema":{"type":"string","enum":["email","sms","whatsapp","push","postcard"]},"in":"query","name":"channel","required":false},{"schema":{"type":"string","enum":["true","false"]},"in":"query","name":"active","required":false},{"schema":{"type":"string","minLength":1,"maxLength":320},"in":"query","name":"q","required":false},{"schema":{"type":"string","enum":["unsubscribe","hard_bounce","complaint","stop_keyword","manual","invalid","dnc"]},"in":"query","name":"reason","required":false},{"schema":{"type":"string","minLength":1,"maxLength":253},"in":"query","name":"domain","required":false},{"schema":{"type":"string","format":"date-time"},"in":"query","name":"createdFrom","required":false},{"schema":{"type":"string","format":"date-time"},"in":"query","name":"createdTo","required":false},{"schema":{"default":50,"type":"integer","minimum":1,"maximum":200},"in":"query","name":"limit","required":false},{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"query","name":"cursor","required":false}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"items":{"type":"array","items":{"$ref":"#/components/schemas/ItemsItem17"}},"nextCursor":{"nullable":true,"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},"required":["items","nextCursor"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1Suppressions"},"post":{"tags":["consent"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"channel":{"type":"string","enum":["email","sms","whatsapp","push","postcard"]},"value":{"type":"string","minLength":1,"maxLength":320},"scope":{"default":"global","type":"string","enum":["global","topic","purpose"]},"topicId":{"nullable":true,"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"purpose":{"nullable":true,"type":"string","enum":["marketing","prospecting","transactional","operational"]},"reason":{"type":"string","enum":["unsubscribe","hard_bounce","complaint","stop_keyword","manual","invalid","dnc"]},"sourceRef":{"nullable":true,"type":"string","maxLength":256}},"required":["channel","value","reason"]}}}},"responses":{"201":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ItemsItem17"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"postV1Suppressions"}},"/v1/suppressions/import":{"post":{"summary":"Bulk suppression / unsubscribe import (multipart: file = CSV or JSON of emails/phones, mode = preview | commit, reason?, scope?, topicId?, purpose?, defaultCountry?). Preview writes nothing.","tags":["consent"],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"dryRun":{"type":"boolean"},"total":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"added":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"alreadySuppressed":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"duplicatesInFile":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"invalid":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"errors":{"type":"array","items":{"type":"object","properties":{"row":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"value":{"type":"string"},"error":{"type":"string"}},"required":["row","value","error"],"additionalProperties":false}},"truncated":{"type":"boolean"}},"required":["dryRun","total","added","alreadySuppressed","duplicatesInFile","invalid","errors","truncated"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"postV1SuppressionsImport"}},"/v1/suppressions/{id}/lift":{"post":{"summary":"Lift one suppression (audited). Marketers lift manual ones; every other reason needs an admin signed in to the web app (API keys get 403)","tags":["consent"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"reason":{"type":"string","minLength":1,"maxLength":500}},"required":["reason"]}}}},"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ItemsItem17"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"postV1SuppressionsByIdLift"}},"/v1/suppressions/clear-hard-bounces":{"post":{"summary":"Lift hard-bounce suppressions in a date range or for one address (an admin signed in to the web app; API keys get 403; audited with a reason); not a bypass, a new bounce re-suppresses","tags":["consent"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"startDate":{"type":"string","format":"date-time"},"endDate":{"type":"string","format":"date-time"},"email":{"type":"string","maxLength":320},"reason":{"type":"string","minLength":1,"maxLength":500}},"required":["reason"]}}}},"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"lifted":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["lifted"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"postV1SuppressionsClearHardBounces"}},"/v1/blocklist":{"get":{"tags":["consent"],"parameters":[{"schema":{"type":"integer","minimum":1,"maximum":200},"in":"query","name":"limit","required":false,"description":"Page size; omitted returns the whole list"},{"schema":{"type":"string","pattern":"^\\d{1,9}$"},"in":"query","name":"cursor","required":false,"description":"Opaque: the `nextCursor` of the previous page"}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"items":{"type":"array","items":{"$ref":"#/components/schemas/ItemsItem18"}},"nextCursor":{"nullable":true,"type":"string"}},"required":["items","nextCursor"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1Blocklist"},"post":{"tags":["consent"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"domain":{"type":"string","minLength":3,"maxLength":253},"reason":{"nullable":true,"type":"string","maxLength":500}},"required":["domain"]}}}},"responses":{"201":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ItemsItem18"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"postV1Blocklist"}},"/v1/blocklist/bulk":{"post":{"summary":"Blocklist many domains at once","tags":["consent"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"domains":{"minItems":1,"maxItems":5000,"type":"array","items":{"type":"string","minLength":3,"maxLength":253}},"reason":{"nullable":true,"type":"string","maxLength":500}},"required":["domains"]}}}},"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"added":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"alreadyBlocked":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"invalid":{"type":"array","items":{"type":"object","properties":{"domain":{"type":"string"},"error":{"type":"string"}},"required":["domain","error"],"additionalProperties":false}}},"required":["added","alreadyBlocked","invalid"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"postV1BlocklistBulk"}},"/v1/blocklist/{id}":{"delete":{"tags":["consent"],"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"ok":{"type":"boolean","enum":[true]}},"required":["ok"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"deleteV1BlocklistById"}},"/v1/eligibility/check":{"post":{"summary":"Debug: would this send be allowed?","tags":["consent"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"profileId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"channel":{"type":"string","enum":["email","sms","whatsapp","push","postcard"]},"purpose":{"type":"string","enum":["marketing","prospecting","transactional","operational"]},"topicId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"destination":{"type":"string","minLength":1,"maxLength":320},"recipientCountry":{"type":"string","minLength":2,"maxLength":2}},"required":["profileId","channel","purpose","destination"]}}}},"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"eligible":{"type":"boolean"},"reasons":{"type":"array","items":{"type":"string","enum":["suppressed","no_consent","consent_revoked","consent_expired","topic_unsubscribed","blocklisted_domain","jurisdiction_blocked","transactional_only","snoozed","channel_not_preferred","frequency_limited"]}}},"required":["eligible","reasons"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"postV1EligibilityCheck"}},"/v1/connections/oauth/providers":{"get":{"tags":["connections"],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"google":{"type":"boolean"},"microsoft":{"type":"boolean"}},"required":["google","microsoft"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1ConnectionsOauthProviders"}},"/v1/connections/oauth/{provider}/start":{"post":{"tags":["connections"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"reconnectConnectionId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"loginHint":{"type":"string","format":"email","pattern":"^(?:[A-Za-z0-9_'+\\-]+\\.)*[A-Za-z0-9_'+\\-]*[A-Za-z0-9_+-]@(?:[A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$"},"name":{"type":"string","minLength":1,"maxLength":120}}}}}},"parameters":[{"schema":{"type":"string","enum":["google","microsoft"]},"in":"path","name":"provider","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"url":{"type":"string"}},"required":["url"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"postV1ConnectionsOauthByProviderStart"}},"/v1/connections/oauth/callback":{"get":{"tags":["connections"],"parameters":[{"schema":{"type":"string","maxLength":4096},"in":"query","name":"code","required":false},{"schema":{"type":"string","maxLength":4096},"in":"query","name":"state","required":false},{"schema":{"type":"string","maxLength":200},"in":"query","name":"error","required":false},{"schema":{"type":"string","maxLength":1000},"in":"query","name":"error_description","required":false}],"security":[],"responses":{"302":{"description":"Default Response","content":{"application/json":{"schema":{"type":"string"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1ConnectionsOauthCallback"}},"/v1/providers":{"get":{"summary":"Provider kinds you can connect, with the `credentials` / `config` fields each needs (required, secret). Missing required fields are a 400 before any provider call. No provider yet? On a server with the demo sink, connect kind `smtp` to host `hermetica-mailpit`, port 1025, no user: mail is caught, never delivered.","tags":["connections"],"parameters":[{"schema":{"type":"integer","minimum":1,"maximum":200},"in":"query","name":"limit","required":false,"description":"Page size; omitted returns the whole list"},{"schema":{"type":"string","pattern":"^\\d{1,9}$"},"in":"query","name":"cursor","required":false,"description":"Opaque: the `nextCursor` of the previous page"}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"items":{"type":"array","items":{"type":"object","properties":{"kind":{"type":"string"},"channel":{"type":"string","enum":["email","sms","whatsapp","linkedin","push","postcard"]},"family":{"type":"string","enum":["mailbox","smtp","email_api","sms_api","whatsapp_api","linkedin_api","push_api","print_api"]},"capabilities":{"$ref":"#/components/schemas/Capabilities"},"credentialFields":{"type":"array","items":{"type":"object","properties":{"key":{"type":"string"},"label":{"type":"string"},"target":{"type":"string","enum":["credentials","config"]},"type":{"type":"string","enum":["text","password","number","boolean","multiline"]},"hint":{"type":"string"},"required":{"type":"boolean"},"secret":{"type":"boolean"},"mono":{"type":"boolean"}},"required":["key","label","target"],"additionalProperties":false}}},"required":["kind","channel","family","capabilities","credentialFields"],"additionalProperties":false}},"nextCursor":{"nullable":true,"type":"string"}},"required":["items","nextCursor"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1Providers"}},"/v1/connections":{"get":{"tags":["connections"],"parameters":[{"schema":{"default":50,"type":"integer","minimum":1,"maximum":200},"in":"query","name":"limit","required":false},{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"query","name":"cursor","required":false}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"items":{"type":"array","items":{"$ref":"#/components/schemas/ItemsItem19"}},"nextCursor":{"nullable":true,"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},"required":["items","nextCursor"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1Connections"},"post":{"tags":["connections"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"kind":{"type":"string","minLength":1,"maxLength":64},"family":{"type":"string","enum":["mailbox","smtp","email_api","sms_api","whatsapp_api","linkedin_api","push_api","print_api"]},"name":{"type":"string","minLength":1,"maxLength":200},"credentials":{"type":"object","additionalProperties":{}},"purposesAllowed":{"minItems":1,"type":"array","items":{"type":"string","enum":["marketing","prospecting","transactional","operational"]}},"config":{"default":{},"type":"object","additionalProperties":{}}},"required":["kind","family","name","credentials","purposesAllowed"]}}}},"responses":{"201":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ItemsItem19"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"postV1Connections"}},"/v1/connections/{id}":{"get":{"tags":["connections"],"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ItemsItem19"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1ConnectionsById"},"patch":{"tags":["connections"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":200},"credentials":{"type":"object","additionalProperties":{}},"purposesAllowed":{"minItems":1,"type":"array","items":{"type":"string","enum":["marketing","prospecting","transactional","operational"]}},"config":{"type":"object","additionalProperties":{}},"dailyCap":{"nullable":true,"type":"integer","minimum":0,"exclusiveMinimum":true,"maximum":9007199254740991},"hourlyCap":{"nullable":true,"type":"integer","minimum":0,"exclusiveMinimum":true,"maximum":9007199254740991},"timezone":{"nullable":true,"type":"string"},"sendingWindow":{"nullable":true,"type":"object","additionalProperties":{}},"ramp":{"nullable":true,"type":"object","additionalProperties":{}}}}}}},"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ItemsItem19"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"patchV1ConnectionsById"},"delete":{"tags":["connections"],"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ItemsItem19"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"deleteV1ConnectionsById"}},"/v1/connections/{id}/test":{"post":{"tags":["connections"],"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"ok":{"type":"boolean"},"state":{"type":"string","enum":["healthy","degraded","failing","disconnected"]},"detail":{"type":"object","additionalProperties":{}}},"required":["ok","state"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"postV1ConnectionsByIdTest"}},"/v1/connections/{id}/pause":{"post":{"tags":["connections"],"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ItemsItem19"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"postV1ConnectionsByIdPause"}},"/v1/connections/{id}/resume":{"post":{"tags":["connections"],"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ItemsItem19"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"postV1ConnectionsByIdResume"}},"/v1/connections/{id}/senders":{"get":{"tags":["connections"],"parameters":[{"schema":{"type":"integer","minimum":1,"maximum":200},"in":"query","name":"limit","required":false,"description":"Page size; omitted returns the whole list"},{"schema":{"type":"string","pattern":"^\\d{1,9}$"},"in":"query","name":"cursor","required":false,"description":"Opaque: the `nextCursor` of the previous page"},{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"items":{"type":"array","items":{"$ref":"#/components/schemas/ItemsItem20"}},"nextCursor":{"nullable":true,"type":"string"}},"required":["items","nextCursor"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1ConnectionsByIdSenders"},"post":{"tags":["connections"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"channel":{"type":"string","enum":["email","sms","whatsapp"]},"fromEmail":{"type":"string","format":"email","pattern":"^(?:[A-Za-z0-9_'+\\-]+\\.)*[A-Za-z0-9_'+\\-]*[A-Za-z0-9_+-]@(?:[A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$"},"fromName":{"type":"string","maxLength":200},"replyTo":{"type":"string","maxLength":1000},"phoneNumber":{"type":"string","maxLength":32},"senderIdAlpha":{"type":"string","maxLength":11}},"required":["channel"]}}}},"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"201":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ItemsItem20"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"postV1ConnectionsByIdSenders"}},"/v1/connections/{id}/senders/{senderId}":{"patch":{"tags":["connections"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"fromName":{"type":"string","maxLength":200},"replyTo":{"type":"string","maxLength":1000}}}}}},"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true},{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"senderId","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ItemsItem20"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"patchV1ConnectionsByIdSendersBySenderId"},"delete":{"tags":["connections"],"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true},{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"senderId","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"ok":{"type":"boolean","enum":[true]}},"required":["ok"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"deleteV1ConnectionsByIdSendersBySenderId"}},"/v1/connections/{id}/senders/{senderId}/verify":{"post":{"tags":["connections"],"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true},{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"senderId","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ItemsItem20"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"postV1ConnectionsByIdSendersBySenderIdVerify"}},"/v1/sending-domains":{"get":{"tags":["connections"],"parameters":[{"schema":{"type":"integer","minimum":1,"maximum":200},"in":"query","name":"limit","required":false,"description":"Page size; omitted returns the whole list"},{"schema":{"type":"string","pattern":"^\\d{1,9}$"},"in":"query","name":"cursor","required":false,"description":"Opaque: the `nextCursor` of the previous page"}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"items":{"type":"array","items":{"$ref":"#/components/schemas/ItemsItem21"}},"nextCursor":{"nullable":true,"type":"string"}},"required":["items","nextCursor"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1SendingDomains"},"post":{"tags":["connections"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"domain":{"type":"string","minLength":3,"maxLength":253}},"required":["domain"]}}}},"responses":{"201":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ItemsItem21"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"postV1SendingDomains"}},"/v1/sending-domains/{id}/check":{"post":{"tags":["connections"],"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ItemsItem21"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"postV1SendingDomainsByIdCheck"}},"/v1/sender-pools":{"get":{"tags":["connections"],"parameters":[{"schema":{"type":"integer","minimum":1,"maximum":200},"in":"query","name":"limit","required":false,"description":"Page size; omitted returns the whole list"},{"schema":{"type":"string","pattern":"^\\d{1,9}$"},"in":"query","name":"cursor","required":false,"description":"Opaque: the `nextCursor` of the previous page"}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetV1SenderPoolsResponse"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1SenderPools"},"post":{"tags":["connections"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":200},"channel":{"type":"string","enum":["email","sms","whatsapp","push","postcard"]},"strategy":{"default":"round_robin","type":"string","enum":["round_robin","weighted","least_used","sticky_per_recipient"]},"members":{"default":[],"type":"array","items":{"$ref":"#/components/schemas/MembersItem2"}},"matchProvider":{"type":"boolean"}},"required":["name","channel"]}}}},"responses":{"201":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ItemsItem22"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"postV1SenderPools"}},"/v1/sender-pools/{id}":{"get":{"tags":["connections"],"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ItemsItem22"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1SenderPoolsById"},"patch":{"tags":["connections"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":200},"strategy":{"type":"string","enum":["round_robin","weighted","least_used","sticky_per_recipient"]},"members":{"type":"array","items":{"$ref":"#/components/schemas/MembersItem2"}},"matchProvider":{"type":"boolean"}}}}}},"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ItemsItem22"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"patchV1SenderPoolsById"},"delete":{"tags":["connections"],"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"ok":{"type":"boolean","enum":[true]}},"required":["ok"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"deleteV1SenderPoolsById"}},"/v1/route-policies":{"get":{"tags":["connections"],"parameters":[{"schema":{"type":"integer","minimum":1,"maximum":200},"in":"query","name":"limit","required":false,"description":"Page size; omitted returns the whole list"},{"schema":{"type":"string","pattern":"^\\d{1,9}$"},"in":"query","name":"cursor","required":false,"description":"Opaque: the `nextCursor` of the previous page"}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"items":{"type":"array","items":{"$ref":"#/components/schemas/ItemsItem23"}},"nextCursor":{"nullable":true,"type":"string"}},"required":["items","nextCursor"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1RoutePolicies"},"post":{"tags":["connections"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":200},"purpose":{"type":"string","enum":["marketing","prospecting","transactional","operational"]},"rules":{"$ref":"#/components/schemas/Rules3"}},"required":["name","purpose","rules"]}}}},"responses":{"201":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ItemsItem23"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"postV1RoutePolicies"}},"/v1/route-policies/{id}":{"get":{"tags":["connections"],"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ItemsItem23"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1RoutePoliciesById"},"patch":{"tags":["connections"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":200},"purpose":{"type":"string","enum":["marketing","prospecting","transactional","operational"]},"rules":{"$ref":"#/components/schemas/Rules3"}}}}}},"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ItemsItem23"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"patchV1RoutePoliciesById"},"delete":{"tags":["connections"],"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"ok":{"type":"boolean","enum":[true]}},"required":["ok"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"deleteV1RoutePoliciesById"}},"/v1/connections/{id}/ses/tenant":{"post":{"summary":"Create an SES tenant in your own AWS account and associate the domain identity and configuration set with it (unverified against live AWS)","tags":["connections"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"tenantName":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,64}$"},"domain":{"type":"string","minLength":3,"maxLength":253,"pattern":"^[a-z0-9.-]+\\.[a-z]{2,}$"},"awsAccountId":{"type":"string","pattern":"^\\d{12}$"}},"required":["tenantName","domain","awsAccountId"]}}}},"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"tenantName":{"type":"string"},"associated":{"type":"array","items":{"type":"string"}}},"required":["tenantName","associated"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"postV1ConnectionsByIdSesTenant"}},"/v1/connections/{id}/ses/setup":{"post":{"summary":"Create the SES domain identity, Easy DKIM, MAIL FROM, configuration set and SNS event destination in the customer account","tags":["connections"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"domain":{"type":"string","minLength":3,"maxLength":253,"pattern":"^[a-z0-9.-]+\\.[a-z]{2,}$"}},"required":["domain"]}}}},"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PostV1ConnectionsByIdSesSetupResponse"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"postV1ConnectionsByIdSesSetup"}},"/v1/connections/{id}/ses/recheck":{"post":{"summary":"Re-read SES identity verification and DKIM status","tags":["connections"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"domain":{"type":"string","minLength":3,"maxLength":253,"pattern":"^[a-z0-9.-]+\\.[a-z]{2,}$"}},"required":["domain"]}}}},"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PostV1ConnectionsByIdSesSetupResponse"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"postV1ConnectionsByIdSesRecheck"}},"/v1/connections/{id}/ses/byodkim":{"post":{"summary":"Sign with your own DKIM key (pasted or generated here); the private key goes to SES and is never stored or returned","tags":["connections"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"domain":{"type":"string","minLength":3,"maxLength":253,"pattern":"^[a-z0-9.-]+\\.[a-z]{2,}$"},"selector":{"type":"string","minLength":1,"maxLength":63,"pattern":"^[a-z0-9]([a-z0-9-]*[a-z0-9])?$"},"privateKey":{"type":"string","maxLength":5000}},"required":["domain","selector"]}}}},"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"domain":{"type":"string"},"verified":{"type":"boolean"},"dkimStatus":{"type":"string"},"mailFromStatus":{"type":"string"},"configurationSet":{"type":"string"},"topicArn":{"type":"string"},"records":{"$ref":"#/components/schemas/Records2"},"generatedKey":{"type":"boolean"},"selector":{"type":"string"}},"required":["domain","verified","dkimStatus","mailFromStatus","configurationSet","topicArn","records","generatedKey","selector"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"postV1ConnectionsByIdSesByodkim"}},"/v1/registrar/accounts":{"get":{"tags":["registrar"],"parameters":[{"schema":{"type":"integer","minimum":1,"maximum":200},"in":"query","name":"limit","required":false,"description":"Page size; omitted returns the whole list"},{"schema":{"type":"string","pattern":"^\\d{1,9}$"},"in":"query","name":"cursor","required":false,"description":"Opaque: the `nextCursor` of the previous page"}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"items":{"type":"array","items":{"$ref":"#/components/schemas/ItemsItem24"}},"nextCursor":{"nullable":true,"type":"string"}},"required":["items","nextCursor"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1RegistrarAccounts"},"post":{"summary":"Connect a Namecheap account (the server IP must be whitelisted in Namecheap API access)","tags":["registrar"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"provider":{"type":"string","enum":["namecheap"]},"name":{"type":"string","minLength":1,"maxLength":80},"apiUser":{"type":"string","minLength":1,"maxLength":60},"apiKey":{"type":"string","minLength":8,"maxLength":200},"userName":{"type":"string","minLength":1,"maxLength":60},"clientIp":{"anyOf":[{"type":"string","format":"ipv4","pattern":"^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$"},{"type":"string","format":"ipv6","pattern":"^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:))$"}]},"sandbox":{"default":false,"type":"boolean"},"contact":{"type":"object","properties":{"firstName":{"type":"string","minLength":1,"maxLength":60},"lastName":{"type":"string","minLength":1,"maxLength":60},"organization":{"type":"string","maxLength":120},"address1":{"type":"string","minLength":1,"maxLength":120},"city":{"type":"string","minLength":1,"maxLength":60},"stateProvince":{"type":"string","minLength":1,"maxLength":60},"postalCode":{"type":"string","minLength":2,"maxLength":20},"country":{"type":"string","minLength":2,"maxLength":2},"phone":{"type":"string","pattern":"^\\+\\d{1,3}\\.\\d{4,14}$"},"email":{"type":"string","format":"email","pattern":"^(?:[A-Za-z0-9_'+\\-]+\\.)*[A-Za-z0-9_'+\\-]*[A-Za-z0-9_+-]@(?:[A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$"}},"required":["firstName","lastName","address1","city","stateProvince","postalCode","country","phone","email"]}},"required":["provider","name","apiUser","apiKey","clientIp","contact"]}}}},"responses":{"201":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ItemsItem24"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"postV1RegistrarAccounts"}},"/v1/registrar/accounts/{id}":{"delete":{"tags":["registrar"],"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"ok":{"type":"boolean","enum":[true]}},"required":["ok"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"deleteV1RegistrarAccountsById"}},"/v1/registrar/search":{"get":{"summary":"Availability and one-year price for a name across extensions","tags":["registrar"],"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"query","name":"accountId","required":true},{"schema":{"type":"string","minLength":1,"maxLength":63,"pattern":"^[a-z0-9-]+$"},"in":"query","name":"q","required":true},{"schema":{"default":"com,net,org,io,co","type":"string","maxLength":120},"in":"query","name":"tlds","required":false},{"schema":{"default":"false","type":"string","enum":["true","false"]},"in":"query","name":"similar","required":false},{"schema":{"type":"integer","minimum":1,"maximum":200},"in":"query","name":"limit","required":false,"description":"Page size; omitted returns the whole list"},{"schema":{"type":"string","pattern":"^\\d{1,9}$"},"in":"query","name":"cursor","required":false,"description":"Opaque: the `nextCursor` of the previous page"}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"items":{"type":"array","items":{"type":"object","properties":{"domain":{"type":"string"},"available":{"type":"boolean"},"premium":{"type":"boolean"},"price":{"nullable":true,"type":"string"},"currency":{"nullable":true,"type":"string"},"canBuy":{"type":"boolean"},"suggestion":{"default":false,"type":"boolean"}},"required":["domain","available","premium","price","currency","canBuy","suggestion"],"additionalProperties":false}},"nextCursor":{"nullable":true,"type":"string"}},"required":["items","nextCursor"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1RegistrarSearch"}},"/v1/registrar/purchase":{"post":{"summary":"Buy a domain for one year. confirmPrice must match the price quoted at this moment or nothing is bought","tags":["registrar"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"purchaseId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"accountId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"domain":{"type":"string","minLength":4,"maxLength":253,"pattern":"^(?!-)[a-z0-9-]+(\\.[a-z0-9-]+)+$"},"confirmPrice":{"type":"string","pattern":"^\\d{1,6}(\\.\\d{1,2})?$"},"confirmCurrency":{"type":"string","minLength":3,"maxLength":3}},"required":["purchaseId","accountId","domain","confirmPrice","confirmCurrency"]}}}},"responses":{"201":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PostV1RegistrarPurchaseResponse"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"postV1RegistrarPurchase"}},"/v1/registrar/domains":{"get":{"tags":["registrar"],"parameters":[{"schema":{"type":"integer","minimum":1,"maximum":200},"in":"query","name":"limit","required":false,"description":"Page size; omitted returns the whole list"},{"schema":{"type":"string","pattern":"^\\d{1,9}$"},"in":"query","name":"cursor","required":false,"description":"Opaque: the `nextCursor` of the previous page"}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"items":{"type":"array","items":{"$ref":"#/components/schemas/PostV1RegistrarPurchaseResponse"}},"nextCursor":{"nullable":true,"type":"string"}},"required":["items","nextCursor"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1RegistrarDomains"}},"/v1/registrar/domains/{id}/forwarding":{"put":{"summary":"Replace the email forwarding rules and the apex/www redirects","tags":["registrar"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"emails":{"maxItems":50,"type":"array","items":{"type":"object","properties":{"mailbox":{"type":"string","pattern":"^(\\*|[a-z0-9][a-z0-9._+-]{0,63})$"},"forwardTo":{"type":"string","format":"email","pattern":"^(?:[A-Za-z0-9_'+\\-]+\\.)*[A-Za-z0-9_'+\\-]*[A-Za-z0-9_+-]@(?:[A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$"}},"required":["mailbox","forwardTo"]}},"redirects":{"maxItems":2,"type":"array","items":{"type":"object","properties":{"host":{"type":"string","enum":["@","www"]},"url":{"type":"string","maxLength":500,"format":"uri"},"permanent":{"type":"boolean"}},"required":["host","url","permanent"]}}},"required":["emails","redirects"]}}}},"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PostV1RegistrarPurchaseResponse"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"putV1RegistrarDomainsByIdForwarding"}},"/v1/registrar/domains/{id}/dns":{"post":{"summary":"Publish DNS records at the registrar (for example SES DKIM/MAIL FROM) without touching other records","tags":["registrar"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"records":{"minItems":1,"maxItems":30,"type":"array","items":{"type":"object","properties":{"type":{"type":"string","enum":["A","AAAA","CNAME","MX","TXT"]},"name":{"type":"string","minLength":1,"maxLength":253},"value":{"type":"string","minLength":1,"maxLength":2000},"priority":{"type":"integer","minimum":0,"maximum":65535}},"required":["type","name","value"]}}},"required":["records"]}}}},"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"published":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["published"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"postV1RegistrarDomainsByIdDns"}},"/v1/events":{"post":{"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":128},"occurredAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"properties":{"type":"object","additionalProperties":{}},"value":{"type":"integer","minimum":0,"maximum":9007199254740991},"amount":{"type":"number","minimum":0,"maximum":1000000000000},"currency":{"type":"string","minLength":3,"maxLength":3},"dedupeKey":{"type":"string","minLength":1,"maxLength":256},"profile":{"type":"object","properties":{"email":{"type":"string"},"phone":{"type":"string"},"externalId":{"type":"string","maxLength":256},"firstName":{"type":"string","maxLength":128},"lastName":{"type":"string","maxLength":128},"locale":{"type":"string","maxLength":32},"location":{"type":"object","properties":{"city":{"type":"string","maxLength":128},"region":{"type":"string","maxLength":128},"country":{"type":"string","maxLength":64},"zip":{"type":"string","maxLength":32},"address1":{"type":"string","maxLength":256},"latitude":{"type":"number","minimum":-90,"maximum":90},"longitude":{"type":"number","minimum":-180,"maximum":180},"timezone":{"type":"string","maxLength":64}}},"attributes":{"type":"object","additionalProperties":{}}}},"correlationKey":{"type":"string","minLength":1,"maxLength":64},"correlationValue":{"anyOf":[{"type":"string","minLength":1,"maxLength":256},{"type":"number"}]},"anonymousId":{"type":"string","minLength":1,"maxLength":128},"context":{"type":"object","properties":{"page":{"type":"object","properties":{"url":{"type":"string","maxLength":2048},"referrer":{"type":"string","maxLength":2048},"title":{"type":"string","maxLength":512}}},"userAgent":{"type":"string","maxLength":512},"ip":{"type":"string","maxLength":64},"utm":{"type":"object","additionalProperties":{"type":"string","maxLength":256}}}}},"required":["name"]}}}},"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PostV1EventsResponse"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"postV1Events"},"get":{"summary":"Workspace-wide event list: filter by name, profile, time range, properties, journey or broadcast; sort by datetime; include=metric,profile","tags":["metrics"],"parameters":[{"schema":{"default":50,"type":"integer","minimum":1,"maximum":200},"in":"query","name":"limit","required":false},{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"query","name":"cursor","required":false},{"schema":{"type":"string","maxLength":128},"in":"query","name":"name","required":false},{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"query","name":"profileId","required":false},{"schema":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"in":"query","name":"from","required":false},{"schema":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"in":"query","name":"to","required":false},{"schema":{"type":"string","maxLength":4000},"in":"query","name":"filter","required":false},{"schema":{"type":"string","enum":["datetime","-datetime"]},"in":"query","name":"sort","required":false},{"schema":{"type":"string","maxLength":40,"pattern":"^(metric|profile)(,(metric|profile))?$"},"in":"query","name":"include","required":false},{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"query","name":"journeyId","required":false},{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"query","name":"broadcastId","required":false}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetV1EventsResponse"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1Events"}},"/v1/events/batch":{"post":{"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PostV1EventsBatchBody"}}}},"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PostV1EventsResponse"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"postV1EventsBatch"}},"/v1/events/batch/items":{"post":{"summary":"Same as /v1/events/batch, plus a status for every submitted event by position (a duplicate counts as stored: it was already there)","requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PostV1EventsBatchBody"}}}},"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"accepted":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"duplicates":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"rejected":{"$ref":"#/components/schemas/Rejected"},"items":{"type":"array","items":{"type":"object","properties":{"index":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"status":{"type":"string","enum":["stored","rejected"]},"reason":{"type":"string"}},"required":["index","status"],"additionalProperties":false}}},"required":["accepted","duplicates","rejected","items"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"postV1EventsBatchItems"}},"/v1/identify":{"post":{"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PostV1IdentifyBody"}}}},"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PostV1IdentifyResponse"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"postV1Identify"}},"/v1/events/settings":{"get":{"summary":"Whether server-side event ingest is on, and the custom field used as each person's primary key","responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetV1EventsSettingsResponse"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1EventsSettings"},"put":{"summary":"Turn server-side event ingest on or off (callers get 412 while off, nothing is dropped silently), or set the primary-key field","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"serverIngestEnabled":{"type":"boolean"},"primaryKeyAttribute":{"nullable":true,"type":"string","pattern":"^[A-Za-z][A-Za-z0-9_]{0,63}$"}}}}}},"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetV1EventsSettingsResponse"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"putV1EventsSettings"}},"/v1/event-definitions":{"get":{"parameters":[{"schema":{"type":"integer","minimum":1,"maximum":200},"in":"query","name":"limit","required":false,"description":"Page size; omitted returns the whole list"},{"schema":{"type":"string","pattern":"^\\d{1,9}$"},"in":"query","name":"cursor","required":false,"description":"Opaque: the `nextCursor` of the previous page"}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"items":{"type":"array","items":{"$ref":"#/components/schemas/ItemsItem26"}},"nextCursor":{"nullable":true,"type":"string"}},"required":["items","nextCursor"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1EventDefinitions"},"post":{"summary":"Declare an event (and optionally its properties) before it is first sent","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":128},"schema":{"type":"object","additionalProperties":{"type":"string","enum":["string","number","boolean","object","array"]}}},"required":["name"]}}}},"responses":{"201":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ItemsItem26"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"postV1EventDefinitions"}},"/v1/event-definitions/{name}":{"get":{"parameters":[{"schema":{"type":"string","minLength":1,"maxLength":128},"in":"path","name":"name","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ItemsItem26"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1EventDefinitionsByName"},"delete":{"summary":"Remove the declaration only; stored events stay","parameters":[{"schema":{"type":"string","minLength":1,"maxLength":128},"in":"path","name":"name","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"ok":{"type":"boolean","enum":[true]}},"required":["ok"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"deleteV1EventDefinitionsByName"},"patch":{"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"schema":{"nullable":true,"type":"object","additionalProperties":{"type":"string","enum":["string","number","boolean","object","array"]}},"enforce":{"type":"boolean"},"goal":{"type":"boolean"}}}}}},"parameters":[{"schema":{"type":"string","minLength":1,"maxLength":128},"in":"path","name":"name","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ItemsItem26"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"patchV1EventDefinitionsByName"}},"/v1/event-definitions/{name}/usage":{"get":{"summary":"Journeys that start on this event","parameters":[{"schema":{"type":"string","minLength":1,"maxLength":128},"in":"path","name":"name","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"workflows":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"status":{"type":"string"}},"required":["id","name","status"],"additionalProperties":false}}},"required":["workflows"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1EventDefinitionsByNameUsage"}},"/v1/event-definitions/{name}/properties/{prop}":{"put":{"summary":"Add or change one declared property type","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"type":{"type":"string","enum":["string","number","boolean","object","array"]}},"required":["type"]}}}},"parameters":[{"schema":{"type":"string","minLength":1,"maxLength":128},"in":"path","name":"name","required":true},{"schema":{"type":"string","minLength":1,"maxLength":128},"in":"path","name":"prop","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ItemsItem26"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"putV1EventDefinitionsByNamePropertiesByProp"},"delete":{"parameters":[{"schema":{"type":"string","minLength":1,"maxLength":128},"in":"path","name":"name","required":true},{"schema":{"type":"string","minLength":1,"maxLength":128},"in":"path","name":"prop","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ItemsItem26"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"deleteV1EventDefinitionsByNamePropertiesByProp"}},"/v1/profiles/{id}/events":{"get":{"parameters":[{"schema":{"default":50,"type":"integer","minimum":1,"maximum":200},"in":"query","name":"limit","required":false},{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"query","name":"cursor","required":false},{"schema":{"type":"string"},"in":"query","name":"name","required":false},{"schema":{"type":"string","enum":["true","false"]},"in":"query","name":"goal","required":false},{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetV1EventsResponse"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1ProfilesByIdEvents"}},"/ingest/v1/batch":{"post":{"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PostV1EventsBatchBody"}}}},"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PostV1EventsResponse"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"postIngestV1Batch"}},"/ingest/v1/identify":{"post":{"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PostV1IdentifyBody"}}}},"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PostV1IdentifyResponse"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"postIngestV1Identify"}},"/ingest/v1/segment":{"post":{"summary":"Segment/RudderStack-compatible track, identify, page","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"type":{"type":"string","enum":["track","identify","page","screen"]},"event":{"type":"string","maxLength":128},"name":{"type":"string","maxLength":128},"userId":{"nullable":true,"type":"string","maxLength":256},"anonymousId":{"nullable":true,"type":"string","maxLength":128},"messageId":{"type":"string","maxLength":256},"timestamp":{"type":"string"},"properties":{"type":"object","additionalProperties":{}},"traits":{"type":"object","additionalProperties":{}},"context":{"type":"object","properties":{"traits":{"type":"object","additionalProperties":{}},"userAgent":{"type":"string"},"ip":{"type":"string"},"page":{"type":"object","additionalProperties":{}}},"additionalProperties":{}},"consent":{"type":"object","properties":{"analytics":{"type":"boolean"},"marketing":{"type":"boolean"}}}},"required":["type"]}}}},"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"accepted":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"duplicates":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"rejected":{"$ref":"#/components/schemas/Rejected"},"profileId":{"type":"string"}},"required":["accepted","duplicates","rejected"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"postIngestV1Segment"}},"/v1/templates/github-sync":{"get":{"summary":"The GitHub repository templates sync with (the token is never returned)","tags":["templates"],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetV1TemplatesGithubSyncResponse"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1TemplatesGithubSync"},"put":{"summary":"Connect a GitHub repository with your own access token (sealed; write-only)","tags":["templates"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"repo":{"type":"string","pattern":"^[A-Za-z0-9_.-]{1,100}\\/[A-Za-z0-9_.-]{1,100}$"},"branch":{"default":"main","type":"string","pattern":"^[A-Za-z0-9._/-]{1,100}$"},"pathPrefix":{"default":"templates","type":"string","maxLength":200,"pattern":"^[A-Za-z0-9_./-]*$"},"token":{"type":"string","minLength":20,"maxLength":500}},"required":["repo"]}}}},"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetV1TemplatesGithubSyncResponse"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"putV1TemplatesGithubSync"},"delete":{"summary":"Disconnect GitHub sync (the saved token stays in Integrations > Secrets until you delete it)","tags":["templates"],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"ok":{"type":"boolean","enum":[true]}},"required":["ok"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"deleteV1TemplatesGithubSync"}},"/v1/templates/github-sync/push":{"post":{"summary":"Write every template, journey and segment to the repository as one JSON file each (unchanged files are skipped)","tags":["templates"],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PostV1TemplatesGithubSyncPushResponse"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"postV1TemplatesGithubSyncPush"}},"/v1/templates/github-sync/pull":{"post":{"summary":"Read files from the repository: new templates and changed template versions, journey drafts (never a published version) and segments (created or updated by id, else by name)","tags":["templates"],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PostV1TemplatesGithubSyncPushResponse"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"postV1TemplatesGithubSyncPull"}},"/v1/profiles/{id}/devices":{"get":{"summary":"Device records entered by hand for this person (flagged manual; real visits are in the device_* attributes)","tags":["profiles"],"parameters":[{"schema":{"type":"integer","minimum":1,"maximum":200},"in":"query","name":"limit","required":false,"description":"Page size; omitted returns the whole list"},{"schema":{"type":"string","pattern":"^\\d{1,9}$"},"in":"query","name":"cursor","required":false,"description":"Opaque: the `nextCursor` of the previous page"},{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"items":{"type":"array","items":{"$ref":"#/components/schemas/ItemsItem27"}},"nextCursor":{"nullable":true,"type":"string"}},"required":["items","nextCursor"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1ProfilesByIdDevices"},"post":{"summary":"Add a device record by hand (flagged manual)","tags":["profiles"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"type":{"type":"string","enum":["desktop","mobile","tablet","other"]},"os":{"type":"string","maxLength":256},"browser":{"type":"string","maxLength":256},"brand":{"type":"string","maxLength":256},"model":{"type":"string","maxLength":256}},"required":["type"]}}}},"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"201":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ItemsItem27"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"postV1ProfilesByIdDevices"}},"/v1/profiles/{id}/devices/{deviceId}":{"delete":{"tags":["profiles"],"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true},{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"deviceId","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"ok":{"type":"boolean","enum":[true]}},"required":["ok"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"deleteV1ProfilesByIdDevicesByDeviceId"}},"/v1/profiles/{id}/utm":{"get":{"summary":"UTM records entered by hand for this person (flagged manual)","tags":["profiles"],"parameters":[{"schema":{"type":"integer","minimum":1,"maximum":200},"in":"query","name":"limit","required":false,"description":"Page size; omitted returns the whole list"},{"schema":{"type":"string","pattern":"^\\d{1,9}$"},"in":"query","name":"cursor","required":false,"description":"Opaque: the `nextCursor` of the previous page"},{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"items":{"type":"array","items":{"$ref":"#/components/schemas/ItemsItem28"}},"nextCursor":{"nullable":true,"type":"string"}},"required":["items","nextCursor"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1ProfilesByIdUtm"},"post":{"summary":"Add a UTM record by hand. It is flagged manual and never feeds attribution, first touch or last touch","tags":["profiles"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"source":{"type":"string","maxLength":256},"medium":{"type":"string","maxLength":256},"campaign":{"type":"string","maxLength":256},"content":{"type":"string","maxLength":256},"term":{"type":"string","maxLength":256},"note":{"type":"string","maxLength":500}}}}}},"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"201":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ItemsItem28"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"postV1ProfilesByIdUtm"}},"/v1/profiles/{id}/utm/{utmId}":{"delete":{"tags":["profiles"],"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true},{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"utmId","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"ok":{"type":"boolean","enum":[true]}},"required":["ok"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"deleteV1ProfilesByIdUtmByUtmId"}},"/v1/upload-scan":{"get":{"summary":"Your ClamAV virus scanner for uploaded files (null = uploads are not scanned)","tags":["templates"],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetV1UploadScanResponse"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1UploadScan"},"put":{"summary":"Scan every uploaded file with your clamd host (public address required). A hit quarantines the file; an unreachable scanner refuses the upload","tags":["templates"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"host":{"type":"string","minLength":1,"maxLength":253},"port":{"default":3310,"type":"integer","minimum":1,"maximum":65535},"enabled":{"default":true,"type":"boolean"}},"required":["host"]}}}},"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetV1UploadScanResponse"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"putV1UploadScan"},"delete":{"summary":"Stop scanning uploads","tags":["templates"],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"ok":{"type":"boolean","enum":[true]}},"required":["ok"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"deleteV1UploadScan"}},"/v1/assets/uploads":{"post":{"summary":"Start a chunked upload of a large file","tags":["templates"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"filename":{"type":"string","minLength":1,"maxLength":200},"chunks":{"type":"integer","minimum":1,"maximum":100},"folderId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"access":{"type":"string","enum":["public_indexable","public_not_indexable","private"]}},"required":["filename","chunks"]}}}},"responses":{"201":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"uploadId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"chunkBytes":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["uploadId","chunkBytes"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"postV1AssetsUploads"}},"/v1/assets/uploads/{id}/chunks/{n}":{"put":{"summary":"Send chunk n (multipart field \"chunk\", at most 2 MB); resending a chunk replaces it","tags":["templates"],"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true},{"schema":{"type":"integer","minimum":0,"maximum":99},"in":"path","name":"n","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"ok":{"type":"boolean","enum":[true]}},"required":["ok"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"putV1AssetsUploadsByIdChunksByN"}},"/v1/assets/uploads/{id}/complete":{"post":{"summary":"Assemble the chunks into a library asset (same checks and limits as a normal upload)","tags":["templates"],"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"201":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PostV1AssetsUploadsByIdCompleteResponse"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"postV1AssetsUploadsByIdComplete"}},"/v1/jobs/{id}/stream":{"get":{"summary":"Live progress of a bulk job or export as server-sent events (event: progress, then event: done)","tags":["bulk"],"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1JobsByIdStream"}},"/v1/shares/{type}/{id}":{"get":{"summary":"Who a list, template, campaign or segment is shared with (none = open to all roles that can use it)","tags":["members"],"parameters":[{"schema":{"type":"string","enum":["list","template","campaign","segment"]},"in":"path","name":"type","required":true},{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"restricted":{"type":"boolean"},"items":{"type":"array","items":{"$ref":"#/components/schemas/ItemsItem29"}}},"required":["restricted","items"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1SharesByTypeById"}},"/v1/shares/{type}/{id}/{userId}":{"put":{"summary":"Share with one member (restricts the resource to admins and the people shared with)","tags":["members"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"level":{"type":"string","enum":["view","edit"]}},"required":["level"]}}}},"parameters":[{"schema":{"type":"string","enum":["list","template","campaign","segment"]},"in":"path","name":"type","required":true},{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true},{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"userId","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ItemsItem29"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"putV1SharesByTypeByIdByUserId"},"delete":{"summary":"Stop sharing with one member; when the last share goes the resource is open again","tags":["members"],"parameters":[{"schema":{"type":"string","enum":["list","template","campaign","segment"]},"in":"path","name":"type","required":true},{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true},{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"userId","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"ok":{"type":"boolean","enum":[true]}},"required":["ok"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"deleteV1SharesByTypeByIdByUserId"}},"/p/s/{token}":{"get":{"summary":"Public share link of a campaign report: the hosted copy, tracked","tags":["campaigns"],"parameters":[{"schema":{"type":"string","minLength":10,"maxLength":600},"in":"path","name":"token","required":true}],"security":[],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"string"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getPSByToken"}},"/p/s/{token}/c":{"get":{"summary":"A click on a link of the shared copy: recorded, then redirected (only to a link the copy really contains)","tags":["campaigns"],"parameters":[{"schema":{"type":"string","minLength":8,"maxLength":2000},"in":"query","name":"u","required":true},{"schema":{"type":"string","minLength":10,"maxLength":600},"in":"path","name":"token","required":true}],"security":[],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getPSByTokenC"}},"/v1/markdown/preview":{"post":{"summary":"Render Markdown the way a markdown template compiles it (live editor preview)","tags":["templates"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"source":{"type":"string","maxLength":200000}},"required":["source"]}}}},"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"html":{"type":"string"}},"required":["html"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"postV1MarkdownPreview"}},"/v1/templates":{"get":{"summary":"Filter by channel, folder, tag, text, creator (`createdBy=me`), format and creation date; sort newest, oldest, name or updated","tags":["templates"],"parameters":[{"schema":{"default":50,"type":"integer","minimum":1,"maximum":200},"in":"query","name":"limit","required":false},{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"query","name":"cursor","required":false},{"schema":{"type":"string","enum":["email","sms","whatsapp","push","postcard"]},"in":"query","name":"channel","required":false},{"schema":{"type":"string"},"in":"query","name":"folder","required":false},{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"query","name":"folderId","required":false},{"schema":{"type":"string","maxLength":64},"in":"query","name":"tag","required":false},{"schema":{"type":"string","maxLength":200},"in":"query","name":"q","required":false},{"schema":{"type":"string","enum":["true","false"]},"in":"query","name":"archived","required":false},{"schema":{"type":"string","maxLength":128},"in":"query","name":"createdBy","required":false},{"schema":{"type":"string","enum":["blocks","html","text","sms"]},"in":"query","name":"kind","required":false},{"schema":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"in":"query","name":"createdAfter","required":false},{"schema":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"in":"query","name":"createdBefore","required":false},{"schema":{"default":"newest","type":"string","enum":["newest","oldest","name","name_desc","updated"]},"in":"query","name":"sort","required":false}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"items":{"type":"array","items":{"$ref":"#/components/schemas/ItemsItem30"}},"nextCursor":{"nullable":true,"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},"required":["items","nextCursor"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1Templates"},"post":{"tags":["templates"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":200},"kind":{"type":"string","enum":["blocks","html","text","sms"]},"channel":{"type":"string","enum":["push"]},"folder":{"nullable":true,"type":"string","maxLength":200},"folderId":{"nullable":true,"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"tags":{"default":[],"maxItems":50,"type":"array","items":{"type":"string","maxLength":64}},"version":{"$ref":"#/components/schemas/Version"}},"required":["name","kind"]}}}},"responses":{"201":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ItemsItem30"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"postV1Templates"}},"/v1/templates/bulk-update":{"post":{"summary":"Move, tag, re-brand, set the topic of or archive up to 100 templates; each is applied or refused on its own","tags":["templates"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"ids":{"$ref":"#/components/schemas/ProfileIds"},"patch":{"type":"object","properties":{"folderId":{"nullable":true,"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"archived":{"type":"boolean"},"brandKitId":{"nullable":true,"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"topicId":{"nullable":true,"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"tags":{"maxItems":50,"type":"array","items":{"type":"string","maxLength":64}},"addTags":{"maxItems":50,"type":"array","items":{"type":"string","maxLength":64}},"removeTags":{"maxItems":50,"type":"array","items":{"type":"string","maxLength":64}}}}},"required":["ids","patch"]}}}},"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"updated":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"failed":{"$ref":"#/components/schemas/Failed"}},"required":["updated","failed"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"postV1TemplatesBulkUpdate"}},"/v1/templates/{id}":{"get":{"tags":["templates"],"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"workspaceId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"channel":{"type":"string","enum":["email","sms","whatsapp","push","postcard"]},"name":{"type":"string"},"kind":{"type":"string","enum":["blocks","html","text","sms"]},"folder":{"nullable":true,"type":"string"},"tags":{"type":"array","items":{"type":"string"}},"currentVersionId":{"nullable":true,"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"archived":{"type":"boolean"},"folderId":{"nullable":true,"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"brandKitId":{"nullable":true,"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"isDefault":{"default":false,"type":"boolean"},"topicId":{"default":null,"nullable":true,"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"createdBy":{"default":null,"nullable":true,"type":"string"},"createdAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"updatedAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"currentVersion":{"$ref":"#/components/schemas/CurrentVersion"}},"required":["id","workspaceId","channel","name","kind","folder","tags","currentVersionId","archived","folderId","brandKitId","isDefault","topicId","createdBy","createdAt","updatedAt","currentVersion"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1TemplatesById"},"patch":{"tags":["templates"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":200},"folder":{"nullable":true,"type":"string","maxLength":200},"tags":{"maxItems":50,"type":"array","items":{"type":"string","maxLength":64}},"archived":{"type":"boolean"},"folderId":{"nullable":true,"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"brandKitId":{"nullable":true,"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"topicId":{"nullable":true,"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"isDefault":{"type":"boolean"}}}}}},"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ItemsItem30"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"patchV1TemplatesById"},"delete":{"summary":"Archive a template (reversible; stored versions stay renderable)","tags":["templates"],"parameters":[{"schema":{"type":"string","enum":["true","false"]},"in":"query","name":"force","required":false},{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ItemsItem30"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"deleteV1TemplatesById"}},"/v1/templates/{id}/default-content":{"get":{"summary":"The fill-in parts of the current version: each block of a block design, or each marked region of HTML","tags":["templates"],"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"versionId":{"nullable":true,"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"subject":{"nullable":true,"type":"string"},"regions":{"type":"array","items":{"type":"object","properties":{"key":{"type":"string"},"kind":{"type":"string"},"content":{"type":"string"}},"required":["key","kind","content"],"additionalProperties":false}}},"required":["versionId","subject","regions"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1TemplatesByIdDefaultContent"}},"/v1/templates/{id}/versions":{"get":{"tags":["templates"],"parameters":[{"schema":{"default":50,"type":"integer","minimum":1,"maximum":200},"in":"query","name":"limit","required":false},{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"query","name":"cursor","required":false},{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetV1TemplatesByIdVersionsResponse"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1TemplatesByIdVersions"},"post":{"tags":["templates"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Version"}}}},"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"201":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ItemsItem31"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"postV1TemplatesByIdVersions"}},"/v1/templates/{id}/versions/{versionId}":{"get":{"tags":["templates"],"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true},{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"versionId","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ItemsItem31"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1TemplatesByIdVersionsByVersionId"},"delete":{"summary":"Not the current version and not an approved one","tags":["templates"],"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true},{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"versionId","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"ok":{"type":"boolean","enum":[true]}},"required":["ok"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"deleteV1TemplatesByIdVersionsByVersionId"}},"/v1/templates/{id}/preview":{"post":{"tags":["templates"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"versionId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"brandKitId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"strict":{"default":false,"type":"boolean"},"profile":{"type":"object","additionalProperties":{}},"vars":{"type":"object","additionalProperties":{}},"profileId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"segmentIds":{"$ref":"#/components/schemas/SegmentIds"},"darkMode":{"default":false,"type":"boolean"},"purpose":{"type":"string","enum":["marketing","prospecting","transactional","operational"]}}}}}},"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"channel":{"type":"string","enum":["email","sms","whatsapp","push","postcard"]},"subject":{"nullable":true,"type":"string"},"preheader":{"nullable":true,"type":"string"},"html":{"nullable":true,"type":"string"},"text":{"type":"string"},"links":{"type":"array","items":{"type":"object","properties":{"url":{"type":"string"},"position":{"type":"number"}},"required":["url","position"],"additionalProperties":false}},"warnings":{"type":"array","items":{"type":"string"}},"sms":{"nullable":true,"type":"object","properties":{"segments":{"type":"number"},"encoding":{"type":"string","enum":["GSM-7","UCS-2"]}},"required":["segments","encoding"],"additionalProperties":false},"lint":{"nullable":true,"type":"object","properties":{"errors":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["code","message"],"additionalProperties":false}},"warnings":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["code","message"],"additionalProperties":false}}},"required":["errors","warnings"],"additionalProperties":false},"qa":{"nullable":true,"type":"object","properties":{"clipping":{"type":"object","properties":{"bytes":{"type":"number"},"limit":{"type":"number"},"percent":{"type":"number"},"clipped":{"type":"boolean"}},"required":["bytes","limit","percent","clipped"],"additionalProperties":false},"accessibility":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["code","message"],"additionalProperties":false}},"spam":{"type":"object","properties":{"score":{"type":"number"},"hits":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"points":{"type":"number"}},"required":["code","message","points"],"additionalProperties":false}}},"required":["score","hits"],"additionalProperties":false},"css":{"default":[],"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["code","message"],"additionalProperties":false}}},"required":["clipping","accessibility","spam","css"],"additionalProperties":false}},"required":["channel","subject","preheader","html","text","links","warnings","sms","lint"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"postV1TemplatesByIdPreview"}},"/v1/snippets":{"get":{"tags":["templates"],"parameters":[{"schema":{"default":50,"type":"integer","minimum":1,"maximum":200},"in":"query","name":"limit","required":false},{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"query","name":"cursor","required":false}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"items":{"type":"array","items":{"$ref":"#/components/schemas/ItemsItem32"}},"nextCursor":{"nullable":true,"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},"required":["items","nextCursor"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1Snippets"},"post":{"tags":["templates"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PostV1SnippetsBody"}}}},"responses":{"201":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ItemsItem32"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"postV1Snippets"},"put":{"summary":"Create or update a snippet by key","tags":["templates"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PostV1SnippetsBody"}}}},"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ItemsItem32"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"putV1Snippets"}},"/v1/snippets/{id}":{"get":{"tags":["templates"],"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ItemsItem32"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1SnippetsById"},"patch":{"tags":["templates"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"body":{"type":"string","maxLength":50000}},"required":["body"]}}}},"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ItemsItem32"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"patchV1SnippetsById"},"delete":{"tags":["templates"],"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"ok":{"type":"boolean","enum":[true]}},"required":["ok"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"deleteV1SnippetsById"}},"/v1/snippets/{id}/lock":{"patch":{"summary":"Lock: blocks edits and deletes until unlocked","tags":["templates"],"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ItemsItem32"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"patchV1SnippetsByIdLock"}},"/v1/snippets/{id}/unlock":{"patch":{"tags":["templates"],"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ItemsItem32"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"patchV1SnippetsByIdUnlock"}},"/v1/snippets/bulk-delete":{"post":{"summary":"Delete up to 100 snippets; locked ones are skipped","tags":["templates"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PostV1SnippetsBulkDeleteBody"}}}},"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"deleted":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"skippedLocked":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["deleted","skippedLocked"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"postV1SnippetsBulkDelete"}},"/v1/brand-kits":{"get":{"tags":["templates"],"parameters":[{"schema":{"default":50,"type":"integer","minimum":1,"maximum":200},"in":"query","name":"limit","required":false},{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"query","name":"cursor","required":false}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"items":{"type":"array","items":{"$ref":"#/components/schemas/ItemsItem33"}},"nextCursor":{"nullable":true,"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},"required":["items","nextCursor"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1BrandKits"},"post":{"tags":["templates"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":200},"logoAssetId":{"default":null,"nullable":true,"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"logoUrl":{"default":null,"nullable":true,"type":"string","maxLength":2048},"colors":{"default":{},"type":"object","properties":{"primary":{"type":"string","maxLength":32},"text":{"type":"string","maxLength":32},"background":{"type":"string","maxLength":32},"accent":{"type":"string","maxLength":32}}},"fonts":{"default":{},"type":"object","properties":{"heading":{"type":"string","maxLength":100},"body":{"type":"string","maxLength":100}}},"footerHtml":{"default":null,"nullable":true,"type":"string","maxLength":20000},"postalAddress":{"default":null,"nullable":true,"type":"string","maxLength":500},"customCss":{"default":null,"nullable":true,"type":"string","maxLength":50000},"layoutHtml":{"default":null,"nullable":true,"type":"string","maxLength":50000},"isDefault":{"default":false,"type":"boolean"}},"required":["name"]}}}},"responses":{"201":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ItemsItem33"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"postV1BrandKits"}},"/v1/brand-kits/primary":{"get":{"summary":"The default brand kit","tags":["templates"],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ItemsItem33"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1BrandKitsPrimary"}},"/v1/brand-kits/{id}/primary":{"patch":{"summary":"Make this the default brand kit","tags":["templates"],"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ItemsItem33"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"patchV1BrandKitsByIdPrimary"}},"/v1/brand-kits/{id}":{"get":{"tags":["templates"],"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ItemsItem33"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1BrandKitsById"},"patch":{"tags":["templates"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":200},"logoAssetId":{"nullable":true,"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"logoUrl":{"nullable":true,"type":"string","maxLength":2048},"colors":{"type":"object","properties":{"primary":{"type":"string","maxLength":32},"text":{"type":"string","maxLength":32},"background":{"type":"string","maxLength":32},"accent":{"type":"string","maxLength":32}}},"fonts":{"type":"object","properties":{"heading":{"type":"string","maxLength":100},"body":{"type":"string","maxLength":100}}},"footerHtml":{"nullable":true,"type":"string","maxLength":20000},"postalAddress":{"nullable":true,"type":"string","maxLength":500},"customCss":{"nullable":true,"type":"string","maxLength":50000},"layoutHtml":{"nullable":true,"type":"string","maxLength":50000},"isDefault":{"type":"boolean"}}}}}},"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ItemsItem33"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"patchV1BrandKitsById"},"delete":{"tags":["templates"],"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"ok":{"type":"boolean","enum":[true]}},"required":["ok"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"deleteV1BrandKitsById"}},"/v1/template-folders":{"get":{"tags":["templates"],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"folders":{"type":"array","items":{"type":"string"}},"items":{"default":[],"type":"array","items":{"$ref":"#/components/schemas/ItemsItem34"}}},"required":["folders","items"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1TemplateFolders"},"post":{"tags":["templates"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PostV1TemplateFoldersBody"}}}},"responses":{"201":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ItemsItem34"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"postV1TemplateFolders"}},"/v1/templates/{id}/clone":{"post":{"tags":["templates"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":200}}}}}},"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"201":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ItemsItem30"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"postV1TemplatesByIdClone"}},"/v1/content-settings":{"get":{"tags":["templates"],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetV1ContentSettingsResponse"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1ContentSettings"},"patch":{"tags":["templates"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"approvalRequired":{"type":"boolean"},"campaignApprovalRequired":{"type":"boolean"},"uploadTypes":{"maxItems":7,"type":"array","items":{"type":"string","enum":["image","pdf","video","audio","document","text","archive"]}},"defaultAssetAccess":{"type":"string","enum":["public_indexable","public_not_indexable","private"]}}}}}},"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetV1ContentSettingsResponse"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"patchV1ContentSettings"}},"/v1/templates/{id}/versions/{versionId}/submit":{"post":{"tags":["templates"],"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true},{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"versionId","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ItemsItem31"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"postV1TemplatesByIdVersionsByVersionIdSubmit"}},"/v1/templates/{id}/versions/{versionId}/approve":{"post":{"tags":["templates"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"comment":{"nullable":true,"type":"string","maxLength":2000}}}}}},"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true},{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"versionId","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ItemsItem31"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"postV1TemplatesByIdVersionsByVersionIdApprove"}},"/v1/templates/{id}/versions/{versionId}/reject":{"post":{"tags":["templates"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"comment":{"nullable":true,"type":"string","maxLength":2000}}}}}},"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true},{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"versionId","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ItemsItem31"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"postV1TemplatesByIdVersionsByVersionIdReject"}},"/v1/templates/{id}/versions/{versionId}/link-check":{"post":{"summary":"Queue a HEAD check of every link in this version","tags":["templates"],"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true},{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"versionId","required":true}],"responses":{"202":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PostV1TemplatesByIdVersionsByVersionIdLinkCheckResponse"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"postV1TemplatesByIdVersionsByVersionIdLinkCheck"},"get":{"tags":["templates"],"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true},{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"versionId","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PostV1TemplatesByIdVersionsByVersionIdLinkCheckResponse"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1TemplatesByIdVersionsByVersionIdLinkCheck"}},"/v1/template-gallery":{"get":{"tags":["templates"],"parameters":[{"schema":{"type":"integer","minimum":1,"maximum":200},"in":"query","name":"limit","required":false,"description":"Page size; omitted returns the whole list"},{"schema":{"type":"string","pattern":"^\\d{1,9}$"},"in":"query","name":"cursor","required":false,"description":"Opaque: the `nextCursor` of the previous page"}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"items":{"type":"array","items":{"type":"object","properties":{"key":{"type":"string"},"name":{"type":"string"},"category":{"type":"string"},"description":{"type":"string"},"kind":{"type":"string","enum":["blocks","html","text","sms"]}},"required":["key","name","category","description","kind"],"additionalProperties":false}},"nextCursor":{"nullable":true,"type":"string"}},"required":["items","nextCursor"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1TemplateGallery"}},"/v1/template-gallery/{key}/instantiate":{"post":{"tags":["templates"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":200},"folder":{"nullable":true,"type":"string","maxLength":200}}}}}},"parameters":[{"schema":{"type":"string","maxLength":64},"in":"path","name":"key","required":true}],"responses":{"201":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ItemsItem30"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"postV1TemplateGalleryByKeyInstantiate"}},"/v1/assets":{"post":{"summary":"Upload a file (multipart field \"file\", optional fields folderId, filename, access first). Images up to 5 MB; other allowed types (Settings > Media) up to 25 MB","tags":["templates"],"responses":{"201":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PostV1AssetsUploadsByIdCompleteResponse"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"postV1Assets"},"get":{"tags":["templates"],"parameters":[{"schema":{"default":50,"type":"integer","minimum":1,"maximum":200},"in":"query","name":"limit","required":false},{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"query","name":"cursor","required":false},{"schema":{"type":"string","maxLength":200},"in":"query","name":"q","required":false},{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"query","name":"folderId","required":false},{"schema":{"type":"string","maxLength":64},"in":"query","name":"tag","required":false},{"schema":{"type":"string","maxLength":35},"in":"query","name":"language","required":false},{"schema":{"type":"string","enum":["image","pdf","video","audio","document","text","archive"]},"in":"query","name":"type","required":false},{"schema":{"type":"string","enum":["public_indexable","public_not_indexable","private"]},"in":"query","name":"access","required":false},{"schema":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"in":"query","name":"after","required":false},{"schema":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"in":"query","name":"before","required":false}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"items":{"type":"array","items":{"$ref":"#/components/schemas/PostV1AssetsUploadsByIdCompleteResponse"}},"nextCursor":{"nullable":true,"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},"required":["items","nextCursor"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1Assets"}},"/v1/assets/{id}":{"delete":{"tags":["templates"],"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"ok":{"type":"boolean","enum":[true]}},"required":["ok"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"deleteV1AssetsById"},"get":{"tags":["templates"],"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PostV1AssetsUploadsByIdCompleteResponse"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1AssetsById"},"patch":{"tags":["templates"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"filename":{"type":"string","minLength":1,"maxLength":200},"altText":{"nullable":true,"type":"string","maxLength":500},"folderId":{"nullable":true,"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"language":{"nullable":true,"type":"string","minLength":2,"maxLength":35},"tags":{"maxItems":50,"type":"array","items":{"type":"string","maxLength":64}},"access":{"type":"string","enum":["public_indexable","public_not_indexable","private"]}}}}}},"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PostV1AssetsUploadsByIdCompleteResponse"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"patchV1AssetsById"}},"/v1/tracking-domains":{"get":{"tags":["templates"],"parameters":[{"schema":{"default":50,"type":"integer","minimum":1,"maximum":200},"in":"query","name":"limit","required":false},{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"query","name":"cursor","required":false}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"items":{"type":"array","items":{"$ref":"#/components/schemas/ItemsItem36"}},"nextCursor":{"nullable":true,"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},"required":["items","nextCursor"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1TrackingDomains"},"post":{"tags":["templates"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"domain":{"type":"string","maxLength":253,"pattern":"^(?=.{1,253}$)([a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?\\.)+[a-z]{2,}$"}},"required":["domain"]}}}},"responses":{"201":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ItemsItem36"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"postV1TrackingDomains"}},"/v1/tracking-domains/{id}/verify":{"post":{"summary":"Queue a CNAME verification","tags":["templates"],"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"202":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ItemsItem36"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"postV1TrackingDomainsByIdVerify"}},"/v1/tracking-domains/{id}":{"get":{"tags":["templates"],"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ItemsItem36"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1TrackingDomainsById"},"delete":{"tags":["templates"],"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"ok":{"type":"boolean","enum":[true]}},"required":["ok"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"deleteV1TrackingDomainsById"}},"/v1/templates/{id}/test-send":{"post":{"summary":"Send the current version of a template to a seed list","tags":["templates"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"seedListId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"connectionId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"purpose":{"default":"marketing","type":"string","enum":["marketing","prospecting","transactional","operational"]}},"required":["seedListId","connectionId"]}}}},"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PostV1TemplatesByIdTestSendResponse"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"postV1TemplatesByIdTestSend"}},"/v1/saved-sections":{"get":{"summary":"Filter by name, block type and created / updated dates; sort newest, oldest, name or updated","tags":["templates"],"parameters":[{"schema":{"default":50,"type":"integer","minimum":1,"maximum":200},"in":"query","name":"limit","required":false},{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"query","name":"cursor","required":false},{"schema":{"type":"string","maxLength":200},"in":"query","name":"q","required":false},{"schema":{"type":"string","pattern":"^[a-z]{2,20}$"},"in":"query","name":"type","required":false},{"schema":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"in":"query","name":"createdAfter","required":false},{"schema":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"in":"query","name":"createdBefore","required":false},{"schema":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"in":"query","name":"updatedAfter","required":false},{"schema":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"in":"query","name":"updatedBefore","required":false},{"schema":{"default":"newest","type":"string","enum":["newest","oldest","name","updated"]},"in":"query","name":"sort","required":false}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetV1SavedSectionsResponse"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1SavedSections"},"post":{"tags":["templates"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":200},"blocks":{"minItems":1,"maxItems":50,"type":"array","items":{"$ref":"#/components/schemas/schema0"}}},"required":["name","blocks"]}}}},"responses":{"201":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ItemsItem37"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"postV1SavedSections"}},"/v1/saved-sections/{id}":{"get":{"tags":["templates"],"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ItemsItem37"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1SavedSectionsById"},"patch":{"tags":["templates"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":200},"blocks":{"minItems":1,"maxItems":50,"type":"array","items":{"$ref":"#/components/schemas/schema0"}}}}}}},"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ItemsItem37"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"patchV1SavedSectionsById"},"delete":{"tags":["templates"],"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"ok":{"type":"boolean","enum":[true]}},"required":["ok"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"deleteV1SavedSectionsById"}},"/v1/templates/translate-variant":{"post":{"summary":"Draft a language variant from base blocks with AI assist (opt-in per workspace; uses the brand voice)","tags":["templates","ai"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"blocks":{"maxItems":100,"type":"array","items":{"$ref":"#/components/schemas/schema0"}},"subject":{"type":"string","maxLength":998},"preheader":{"type":"string","maxLength":500},"targetLanguage":{"type":"string","minLength":2,"maxLength":50}},"required":["blocks","targetLanguage"]}}}},"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"blocks":{"type":"array","items":{"$ref":"#/components/schemas/schema0"}},"subject":{"type":"string"},"preheader":{"type":"string"},"model":{"type":"string"},"draft":{"type":"boolean","enum":[true]}},"required":["blocks","model","draft"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"postV1TemplatesTranslateVariant"}},"/v1/qa-preview/connection":{"get":{"tags":["templates"],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetV1QaPreviewConnectionResponse"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1QaPreviewConnection"},"put":{"summary":"Connect a real-client preview service. The API key is stored encrypted and never returned.","tags":["templates"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"vendor":{"type":"string","minLength":1,"maxLength":32},"name":{"type":"string","minLength":1,"maxLength":100},"apiKey":{"type":"string","minLength":1,"maxLength":500},"apiSecret":{"type":"string","minLength":1,"maxLength":500}},"required":["vendor","name"]}}}},"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetV1QaPreviewConnectionResponse"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"putV1QaPreviewConnection"},"delete":{"tags":["templates"],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetV1QaPreviewConnectionResponse"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"deleteV1QaPreviewConnection"}},"/v1/templates/{id}/client-previews":{"post":{"summary":"Submit the saved version to the connected preview service","tags":["templates"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"versionId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"clients":{"maxItems":100,"type":"array","items":{"type":"string","minLength":1,"maxLength":100}}}}}}},"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"202":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"externalId":{"type":"string"}},"required":["externalId"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"postV1TemplatesByIdClientPreviews"}},"/v1/qa-preview/clients":{"get":{"summary":"Mail clients the connected preview service offers, and its credit balance when it reports one","tags":["templates"],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"clients":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"platform":{"type":"string","enum":["web","desktop","mobile"]},"defaultSelected":{"type":"boolean"}},"required":["id","name","platform","defaultSelected"],"additionalProperties":false}},"credits":{"nullable":true,"type":"object","properties":{"remaining":{"type":"number"},"resetsAt":{"nullable":true,"type":"string"}},"required":["remaining","resetsAt"],"additionalProperties":false}},"required":["clients","credits"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1QaPreviewClients"}},"/v1/templates/{id}/client-preview-runs":{"get":{"summary":"Inbox preview run history for a template, newest first","tags":["templates"],"parameters":[{"schema":{"type":"integer","minimum":1,"maximum":200},"in":"query","name":"limit","required":false,"description":"Page size; omitted returns the whole list"},{"schema":{"type":"string","pattern":"^\\d{1,9}$"},"in":"query","name":"cursor","required":false,"description":"Opaque: the `nextCursor` of the previous page"},{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"items":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"templateId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"versionId":{"nullable":true,"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"vendor":{"type":"string"},"externalId":{"type":"string"},"clients":{"type":"array","items":{"type":"string"}},"status":{"type":"string","enum":["pending","done","failed"]},"shots":{"type":"array","items":{"type":"object","properties":{"client":{"type":"string"},"url":{"type":"string"}},"required":["client","url"],"additionalProperties":false}},"error":{"nullable":true,"type":"string"},"createdBy":{"nullable":true,"type":"string"},"createdAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"}},"required":["id","templateId","versionId","vendor","externalId","clients","status","shots","error","createdBy","createdAt"],"additionalProperties":false}},"nextCursor":{"nullable":true,"type":"string"}},"required":["items","nextCursor"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1TemplatesByIdClientPreviewRuns"}},"/v1/client-previews/{externalId}":{"post":{"summary":"Poll the preview service for a run and save its latest result","tags":["templates"],"parameters":[{"schema":{"type":"string","minLength":1,"maxLength":300},"in":"path","name":"externalId","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"string","enum":["pending","done","failed"]},"error":{"type":"string"},"shots":{"type":"array","items":{"type":"object","properties":{"client":{"type":"string"},"url":{"type":"string"}},"required":["client","url"],"additionalProperties":false}}},"required":["status","shots"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"postV1ClientPreviewsByExternalId"}},"/v1/templates/{id}/optimizer":{"get":{"summary":"Writing checks on the saved version, weighed by how similar senders' email campaigns perform (peer benchmarks, or the static reference ranges)","tags":["templates"],"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"query","name":"versionId","required":false},{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"score":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"contentScore":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"checks":{"$ref":"#/components/schemas/Checks"},"stats":{"$ref":"#/components/schemas/Stats"},"benchmark":{"type":"array","items":{"type":"object","properties":{"metric":{"type":"string","enum":["open","click"]},"feature":{"nullable":true,"type":"string"},"yours":{"nullable":true,"type":"number"},"typical":{"nullable":true,"type":"number"},"good":{"nullable":true,"type":"number"},"rank":{"nullable":true,"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"source":{"type":"string","enum":["network","local_peers","static_reference"]},"standing":{"type":"string","enum":["behind","level","ahead","unknown"]}},"required":["metric","feature","yours","typical","good","rank","source","standing"],"additionalProperties":false}},"optedIn":{"type":"boolean"}},"required":["score","contentScore","checks","stats","benchmark","optedIn"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1TemplatesByIdOptimizer"}},"/v1/template-folders/{id}":{"get":{"tags":["templates"],"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ItemsItem34"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1TemplateFoldersById"},"patch":{"tags":["templates"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PatchV1TemplateFoldersByIdBody"}}}},"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ItemsItem34"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"patchV1TemplateFoldersById"},"delete":{"tags":["templates"],"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"ok":{"type":"boolean","enum":[true]}},"required":["ok"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"deleteV1TemplateFoldersById"}},"/v1/asset-folders":{"get":{"tags":["templates"],"parameters":[{"schema":{"type":"integer","minimum":1,"maximum":200},"in":"query","name":"limit","required":false,"description":"Page size; omitted returns the whole list"},{"schema":{"type":"string","pattern":"^\\d{1,9}$"},"in":"query","name":"cursor","required":false,"description":"Opaque: the `nextCursor` of the previous page"}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"items":{"type":"array","items":{"$ref":"#/components/schemas/ItemsItem34"}},"nextCursor":{"nullable":true,"type":"string"}},"required":["items","nextCursor"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1AssetFolders"},"post":{"tags":["templates"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PostV1TemplateFoldersBody"}}}},"responses":{"201":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ItemsItem34"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"postV1AssetFolders"}},"/v1/asset-folders/{id}":{"get":{"tags":["templates"],"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ItemsItem34"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1AssetFoldersById"},"patch":{"tags":["templates"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PatchV1TemplateFoldersByIdBody"}}}},"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ItemsItem34"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"patchV1AssetFoldersById"},"delete":{"tags":["templates"],"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"ok":{"type":"boolean","enum":[true]}},"required":["ok"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"deleteV1AssetFoldersById"}},"/v1/brand-kits/{id}/items":{"get":{"tags":["templates"],"parameters":[{"schema":{"default":50,"type":"integer","minimum":1,"maximum":200},"in":"query","name":"limit","required":false},{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"query","name":"cursor","required":false},{"schema":{"type":"string","enum":["logo","color","font","button","social_group","email_default","company","competitor"]},"in":"query","name":"kind","required":false},{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"items":{"type":"array","items":{"$ref":"#/components/schemas/ItemsItem38"}},"nextCursor":{"nullable":true,"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},"required":["items","nextCursor"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1BrandKitsByIdItems"},"post":{"tags":["templates"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"kind":{"type":"string","enum":["logo","color","font","button","social_group","email_default","company","competitor"]},"name":{"type":"string","minLength":1,"maxLength":200},"data":{"default":{},"type":"object","additionalProperties":{}}},"required":["kind","name"]}}}},"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"201":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ItemsItem38"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"postV1BrandKitsByIdItems"}},"/v1/brand-items/{id}":{"get":{"tags":["templates"],"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ItemsItem38"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1BrandItemsById"},"patch":{"tags":["templates"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":200},"data":{"type":"object","additionalProperties":{}}}}}}},"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ItemsItem38"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"patchV1BrandItemsById"},"delete":{"tags":["templates"],"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"ok":{"type":"boolean","enum":[true]}},"required":["ok"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"deleteV1BrandItemsById"}},"/v1/translations":{"get":{"tags":["templates"],"parameters":[{"schema":{"default":50,"type":"integer","minimum":1,"maximum":200},"in":"query","name":"limit","required":false},{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"query","name":"cursor","required":false},{"schema":{"type":"string","enum":["template","saved_section","form","sms","workflow_message","campaign_variant"]},"in":"query","name":"resourceType","required":false},{"schema":{"type":"string","maxLength":128},"in":"query","name":"resourceId","required":false},{"schema":{"type":"string","maxLength":20,"pattern":"^[A-Za-z]{2,3}([-_][A-Za-z0-9]{2,8})*$"},"in":"query","name":"locale","required":false},{"schema":{"type":"string","enum":["draft","approved"]},"in":"query","name":"status","required":false},{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"query","name":"templateId","required":false}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"items":{"type":"array","items":{"$ref":"#/components/schemas/ItemsItem39"}},"nextCursor":{"nullable":true,"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},"required":["items","nextCursor"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1Translations"},"post":{"tags":["templates"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PostV1TranslationsBody"}}}},"responses":{"201":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ItemsItem39"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"postV1Translations"}},"/v1/translations/export":{"get":{"summary":"Export translations as importable JSON","tags":["templates"],"parameters":[{"schema":{"default":50,"type":"integer","minimum":1,"maximum":200},"in":"query","name":"limit","required":false},{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"query","name":"cursor","required":false},{"schema":{"type":"string","enum":["template","saved_section","form","sms","workflow_message","campaign_variant"]},"in":"query","name":"resourceType","required":false},{"schema":{"type":"string","maxLength":128},"in":"query","name":"resourceId","required":false},{"schema":{"type":"string","maxLength":20,"pattern":"^[A-Za-z]{2,3}([-_][A-Za-z0-9]{2,8})*$"},"in":"query","name":"locale","required":false},{"schema":{"type":"string","enum":["draft","approved"]},"in":"query","name":"status","required":false},{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"query","name":"templateId","required":false}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"items":{"type":"array","items":{"type":"object","properties":{"resourceType":{"type":"string","enum":["template","saved_section","form","sms","workflow_message","campaign_variant"]},"resourceId":{"type":"string","minLength":1,"maxLength":128},"locale":{"type":"string","maxLength":20,"pattern":"^[A-Za-z]{2,3}([-_][A-Za-z0-9]{2,8})*$"},"status":{"default":"draft","type":"string","enum":["draft","approved"]},"content":{"default":{},"type":"object","additionalProperties":{}}},"required":["resourceType","resourceId","locale","status","content"],"additionalProperties":false}}},"required":["items"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1TranslationsExport"}},"/v1/translations/import":{"post":{"tags":["templates"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"items":{"minItems":1,"maxItems":500,"type":"array","items":{"$ref":"#/components/schemas/PostV1TranslationsBody"}},"overwrite":{"default":true,"type":"boolean"}},"required":["items"]}}}},"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"created":{"type":"number"},"updated":{"type":"number"},"skipped":{"type":"number"}},"required":["created","updated","skipped"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"postV1TranslationsImport"}},"/v1/translations/{id}":{"get":{"tags":["templates"],"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ItemsItem39"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1TranslationsById"},"patch":{"tags":["templates"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"string","enum":["draft","approved"]},"content":{"type":"object","additionalProperties":{}}}}}}},"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ItemsItem39"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"patchV1TranslationsById"},"delete":{"tags":["templates"],"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"ok":{"type":"boolean","enum":[true]}},"required":["ok"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"deleteV1TranslationsById"}},"/v1/templates/{id}/archive":{"post":{"summary":"Blocked (412) while a scheduled campaign or live workflow uses it, unless force=true","tags":["templates"],"parameters":[{"schema":{"type":"string","enum":["true","false"]},"in":"query","name":"force","required":false},{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ItemsItem30"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"postV1TemplatesByIdArchive"}},"/v1/templates/{id}/unarchive":{"post":{"tags":["templates"],"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ItemsItem30"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"postV1TemplatesByIdUnarchive"}},"/v1/templates/{id}/convert":{"post":{"summary":"One-way copy into the other format: a block template into a new HTML template, an HTML template into a new drag-and-drop template","tags":["templates"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":200},"to":{"type":"string","enum":["html","blocks"]}}}}}},"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"201":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ItemsItem30"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"postV1TemplatesByIdConvert"}},"/v1/templates/{id}/render":{"post":{"summary":"Render a template by id with merge variables (no send, no tracking)","tags":["templates"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"versionId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"vars":{"type":"object","additionalProperties":{}},"profile":{"type":"object","additionalProperties":{}},"locale":{"type":"string","maxLength":20,"pattern":"^[A-Za-z]{2,3}([-_][A-Za-z0-9]{2,8})*$"},"strict":{"default":false,"type":"boolean"}}}}}},"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"subject":{"nullable":true,"type":"string"},"preheader":{"nullable":true,"type":"string"},"html":{"nullable":true,"type":"string"},"text":{"type":"string"},"warnings":{"type":"array","items":{"type":"string"}}},"required":["subject","preheader","html","text","warnings"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"postV1TemplatesByIdRender"}},"/v1/saved-sections/{id}/clone":{"post":{"tags":["templates"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":200}}}}}},"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"201":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ItemsItem37"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"postV1SavedSectionsByIdClone"}},"/v1/assets/import":{"post":{"summary":"Import an image from a public URL (SSRF-guarded, content-sniffed, 5 MB cap)","tags":["templates"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"url":{"type":"string","maxLength":2048,"format":"uri"},"filename":{"type":"string","minLength":1,"maxLength":200},"folderId":{"nullable":true,"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},"required":["url"]}}}},"responses":{"201":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PostV1AssetsUploadsByIdCompleteResponse"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"postV1AssetsImport"}},"/v1/tracking-settings":{"get":{"tags":["templates"],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetV1TrackingSettingsResponse"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1TrackingSettings"},"patch":{"tags":["templates"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"openTracking":{"type":"boolean"},"clickTracking":{"type":"boolean"},"smsClickTracking":{"type":"boolean"},"includeMachineOpens":{"type":"boolean"},"utmAutoTag":{"type":"boolean"},"utmParams":{"type":"object","additionalProperties":{"type":"string","maxLength":200}},"customParams":{"type":"object","additionalProperties":{"type":"string","maxLength":200}},"clickAllowlist":{"maxItems":50,"type":"array","items":{"type":"string","pattern":"^(?=.{3,253}$)([a-z0-9-]+\\.)+[a-z]{2,}$"}},"flowUtmParams":{"type":"object","additionalProperties":{"type":"string","maxLength":200}},"flowCustomParams":{"type":"object","additionalProperties":{"type":"string","maxLength":200}}}}}}},"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetV1TrackingSettingsResponse"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"patchV1TrackingSettings"}},"/v1/lists/{id}/optin-template":{"get":{"tags":["templates"],"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetV1ListsByIdOptinTemplateResponse"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1ListsByIdOptinTemplate"},"put":{"tags":["templates"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"subject":{"type":"string","minLength":1,"maxLength":300},"html":{"type":"string","minLength":1,"maxLength":100000},"text":{"nullable":true,"type":"string","maxLength":20000}},"required":["subject","html"]}}}},"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetV1ListsByIdOptinTemplateResponse"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"putV1ListsByIdOptinTemplate"},"delete":{"tags":["templates"],"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"ok":{"type":"boolean","enum":[true]}},"required":["ok"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"deleteV1ListsByIdOptinTemplate"}},"/v1/lists/{id}/optin-template/preview":{"post":{"tags":["templates"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"subject":{"type":"string","minLength":1,"maxLength":300},"html":{"type":"string","minLength":1,"maxLength":100000},"text":{"nullable":true,"type":"string","maxLength":20000}}}}}},"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"subject":{"type":"string"},"html":{"type":"string"},"text":{"type":"string"}},"required":["subject","html","text"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"postV1ListsByIdOptinTemplatePreview"}},"/v1/template-tags":{"get":{"tags":["templates"],"parameters":[{"schema":{"type":"integer","minimum":1,"maximum":200},"in":"query","name":"limit","required":false,"description":"Page size; omitted returns the whole list"},{"schema":{"type":"string","pattern":"^\\d{1,9}$"},"in":"query","name":"cursor","required":false,"description":"Opaque: the `nextCursor` of the previous page"}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"items":{"type":"array","items":{"type":"object","properties":{"tag":{"type":"string"},"count":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["tag","count"],"additionalProperties":false}},"nextCursor":{"nullable":true,"type":"string"}},"required":["items","nextCursor"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1TemplateTags"}},"/v1/templates/{id}/usage":{"get":{"summary":"Campaigns and workflows that use this template","tags":["templates"],"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"campaigns":{"$ref":"#/components/schemas/Campaigns"},"workflows":{"$ref":"#/components/schemas/Campaigns"},"blocking":{"type":"boolean"}},"required":["campaigns","workflows","blocking"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1TemplatesByIdUsage"}},"/v1/templates/{id}/publish-status":{"get":{"summary":"Live version, unpublished changes and versions waiting for approval","tags":["templates"],"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"templateId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"currentVersionId":{"nullable":true,"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"liveVersionId":{"nullable":true,"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"approvalRequired":{"type":"boolean"},"unpublishedChanges":{"type":"boolean"},"pendingVersionIds":{"$ref":"#/components/schemas/Conflicts"}},"required":["templateId","currentVersionId","liveVersionId","approvalRequired","unpublishedChanges","pendingVersionIds"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1TemplatesByIdPublishStatus"}},"/v1/templates/{id}/versions/{versionId}/publish":{"post":{"summary":"Make the version current; with approvals on, an unapproved one is submitted instead","tags":["templates"],"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true},{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"versionId","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"string","enum":["published","pending_approval"]},"version":{"$ref":"#/components/schemas/ItemsItem31"}},"required":["status","version"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"postV1TemplatesByIdVersionsByVersionIdPublish"}},"/v1/templates/{id}/versions/{versionId}/restore":{"post":{"summary":"Save a copy of an old version as the newest version","tags":["templates"],"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true},{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"versionId","required":true}],"responses":{"201":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ItemsItem31"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"postV1TemplatesByIdVersionsByVersionIdRestore"}},"/v1/templates/{id}/versions/{versionId}/regions":{"get":{"summary":"Editable regions: block ids, or mc:edit names in HTML","tags":["templates"],"parameters":[{"schema":{"type":"integer","minimum":1,"maximum":200},"in":"query","name":"limit","required":false,"description":"Page size; omitted returns the whole list"},{"schema":{"type":"string","pattern":"^\\d{1,9}$"},"in":"query","name":"cursor","required":false,"description":"Opaque: the `nextCursor` of the previous page"},{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true},{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"versionId","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"items":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"type":{"type":"string"}},"required":["id","type"],"additionalProperties":false}},"nextCursor":{"nullable":true,"type":"string"}},"required":["items","nextCursor"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1TemplatesByIdVersionsByVersionIdRegions"}},"/v1/templates/{id}/languages":{"get":{"tags":["templates"],"parameters":[{"schema":{"type":"integer","minimum":1,"maximum":200},"in":"query","name":"limit","required":false,"description":"Page size; omitted returns the whole list"},{"schema":{"type":"string","pattern":"^\\d{1,9}$"},"in":"query","name":"cursor","required":false,"description":"Opaque: the `nextCursor` of the previous page"},{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"items":{"type":"array","items":{"$ref":"#/components/schemas/ItemsItem40"}},"nextCursor":{"nullable":true,"type":"string"}},"required":["items","nextCursor"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1TemplatesByIdLanguages"},"post":{"tags":["templates"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"status":{"default":"draft","type":"string","enum":["draft","approved"]},"content":{"default":{},"type":"object","additionalProperties":{}},"locale":{"type":"string","maxLength":20,"pattern":"^[A-Za-z]{2,3}([-_][A-Za-z0-9]{2,8})*$"}},"required":["locale"]}}}},"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"201":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ItemsItem40"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"postV1TemplatesByIdLanguages"}},"/v1/templates/{id}/languages/{locale}":{"get":{"tags":["templates"],"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true},{"schema":{"type":"string","maxLength":20},"in":"path","name":"locale","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ItemsItem40"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1TemplatesByIdLanguagesByLocale"},"put":{"summary":"Create or replace the language variant","tags":["templates"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"status":{"default":"draft","type":"string","enum":["draft","approved"]},"content":{"default":{},"type":"object","additionalProperties":{}}}}}}},"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true},{"schema":{"type":"string","maxLength":20},"in":"path","name":"locale","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ItemsItem40"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"putV1TemplatesByIdLanguagesByLocale"},"delete":{"tags":["templates"],"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true},{"schema":{"type":"string","maxLength":20},"in":"path","name":"locale","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"ok":{"type":"boolean","enum":[true]}},"required":["ok"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"deleteV1TemplatesByIdLanguagesByLocale"}},"/v1/assets/{id}/content":{"put":{"summary":"Replace the file behind an asset (multipart field \"file\"); the id and its references stay","tags":["templates"],"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PostV1AssetsUploadsByIdCompleteResponse"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"putV1AssetsByIdContent"}},"/v1/assets/{id}/signed-url":{"get":{"tags":["templates"],"parameters":[{"schema":{"default":3600,"type":"integer","minimum":60,"maximum":604800},"in":"query","name":"expires","required":false},{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"url":{"type":"string"},"expiresInSec":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["url","expiresInSec"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1AssetsByIdSignedUrl"}},"/v1/assets/by-path":{"get":{"summary":"Look an asset up by /Folder/Sub/filename","tags":["templates"],"parameters":[{"schema":{"type":"string","minLength":1,"maxLength":1000},"in":"query","name":"path","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PostV1AssetsUploadsByIdCompleteResponse"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1AssetsByPath"}},"/v1/asset-folders/by-path":{"get":{"summary":"Look an asset folder up by /Parent/Child","tags":["templates"],"parameters":[{"schema":{"type":"string","minLength":1,"maxLength":1000},"in":"query","name":"path","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ItemsItem34"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1AssetFoldersByPath"},"delete":{"summary":"Delete an asset folder by /Parent/Child","tags":["integrations"],"parameters":[{"schema":{"type":"string","minLength":1,"maxLength":1000},"in":"query","name":"path","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"ok":{"type":"boolean","enum":[true]}},"required":["ok"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"deleteV1AssetFoldersByPath"}},"/v1/segments":{"get":{"tags":["segments"],"parameters":[{"schema":{"default":50,"type":"integer","minimum":1,"maximum":200},"in":"query","name":"limit","required":false},{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"query","name":"cursor","required":false},{"schema":{"type":"string","maxLength":200},"in":"query","name":"q","required":false},{"schema":{"type":"string","maxLength":4000},"in":"query","name":"ids","required":false},{"schema":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"in":"query","name":"createdFrom","required":false},{"schema":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"in":"query","name":"createdTo","required":false},{"schema":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"in":"query","name":"updatedFrom","required":false},{"schema":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"in":"query","name":"updatedTo","required":false},{"schema":{"type":"string","enum":["true","false"]},"in":"query","name":"active","required":false},{"schema":{"type":"string","enum":["true","false"]},"in":"query","name":"starred","required":false},{"schema":{"type":"string","enum":["name","-name","created_at","-created_at","updated_at","-updated_at","member_count","-member_count"]},"in":"query","name":"sort","required":false}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"items":{"type":"array","items":{"$ref":"#/components/schemas/ItemsItem41"}},"nextCursor":{"nullable":true,"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},"required":["items","nextCursor"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1Segments"},"post":{"tags":["segments"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PostV1SegmentsBody"}}}},"responses":{"201":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ItemsItem41"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"postV1Segments"},"put":{"summary":"Create or update by name: the live segment with this name (case-insensitive) gets these rules, else a new one is made","tags":["segments"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PostV1SegmentsBody"}}}},"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"name":{"type":"string"},"description":{"nullable":true,"type":"string"},"folder":{"nullable":true,"type":"string"},"definition":{"$ref":"#/components/schemas/Definition"},"status":{"type":"string","enum":["active","archived"]},"evalStatus":{"type":"string","enum":["pending","ready","failed"]},"lastEvaluatedAt":{"nullable":true,"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"memberCount":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"dependencyKeys":{"type":"array","items":{"type":"string"}},"version":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"subject":{"type":"string"},"starred":{"type":"boolean"},"tags":{"type":"array","items":{"type":"string"}},"createdAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"updatedAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"created":{"type":"boolean"}},"required":["id","name","description","folder","definition","status","evalStatus","lastEvaluatedAt","memberCount","dependencyKeys","version","subject","starred","createdAt","updatedAt","created"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"putV1Segments"}},"/v1/segments/{id}/clone":{"post":{"summary":"Copy a segment (rules, folder, tags) under a new name","tags":["segments"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":200}}}}}},"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"201":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ItemsItem41"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"postV1SegmentsByIdClone"}},"/v1/segments/preview":{"post":{"tags":["segments"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"definition":{"$ref":"#/components/schemas/Definition2"},"subject":{"type":"string","pattern":"^(profile|[a-z][a-z0-9_]{0,62})$"}},"required":["definition"]}}}},"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"count":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"sample":{"$ref":"#/components/schemas/Items"},"explanation":{"type":"array","items":{"type":"string"}},"evaluatedAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"}},"required":["count","sample","explanation","evaluatedAt"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"postV1SegmentsPreview"}},"/v1/segments/explain-match":{"post":{"summary":"Why a profile matches or does not match a draft definition: the verdict of each condition and group","tags":["segments"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"definition":{"$ref":"#/components/schemas/Definition2"},"profileId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},"required":["definition","profileId"]}}}},"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PostV1SegmentsExplainMatchResponse"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"postV1SegmentsExplainMatch"}},"/v1/segments/{id}/explain-match/{profileId}":{"get":{"summary":"Why a profile is or is not in this segment, condition by condition, next to its stored membership","tags":["segments"],"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true},{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"profileId","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PostV1SegmentsExplainMatchResponse"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1SegmentsByIdExplainMatchByProfileId"}},"/v1/segments/settings":{"get":{"summary":"Spend-tier boundaries and the geocoding provider","tags":["segments"],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetV1SegmentsSettingsResponse"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1SegmentsSettings"},"put":{"summary":"Change spend tiers or the geocoding provider; segments that use them recalculate","tags":["segments"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"spendTiers":{"type":"object","properties":{"mid":{"type":"number","minimum":0},"high":{"type":"number","minimum":0},"top":{"type":"number","minimum":0}},"required":["mid","high","top"]},"geocoder":{"type":"string","enum":["none","opencage"]},"geocoderKey":{"type":"string","maxLength":200}}}}}},"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetV1SegmentsSettingsResponse"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"putV1SegmentsSettings"}},"/v1/segments/places/check":{"post":{"summary":"Is a postal code placed on the map, and how many profiles can be located","tags":["segments"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"country":{"type":"string","minLength":2,"maxLength":2},"postalCode":{"type":"string","minLength":2,"maxLength":16}},"required":["country","postalCode"]}}}},"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PostV1SegmentsPlacesCheckResponse"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"postV1SegmentsPlacesCheck"}},"/v1/segments/places":{"post":{"summary":"Set the position of a postal code by hand","tags":["segments"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"country":{"type":"string","minLength":2,"maxLength":2},"postalCode":{"type":"string","minLength":2,"maxLength":16},"lat":{"type":"number","minimum":-90,"maximum":90},"lng":{"type":"number","minimum":-180,"maximum":180}},"required":["country","postalCode","lat","lng"]}}}},"responses":{"201":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"ok":{"type":"boolean","enum":[true]}},"required":["ok"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"postV1SegmentsPlaces"}},"/v1/segments/places/lookup":{"post":{"summary":"Place a postal code with the configured geocoding provider","tags":["segments"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"country":{"type":"string","minLength":2,"maxLength":2},"postalCode":{"type":"string","minLength":2,"maxLength":16}},"required":["country","postalCode"]}}}},"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PostV1SegmentsPlacesCheckResponse"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"postV1SegmentsPlacesLookup"}},"/v1/segments/places/geocode-missing":{"post":{"summary":"Place up to 25 postal codes that profiles carry but nobody has located","tags":["segments"],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"placed":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"failed":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"remaining":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["placed","failed","remaining"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"postV1SegmentsPlacesGeocodeMissing"}},"/v1/segments/suggest":{"get":{"summary":"Most common real values of an event property or profile field, for builder dropdowns","tags":["segments"],"parameters":[{"schema":{"type":"string","enum":["event","profile","consent"]},"in":"query","name":"source","required":true},{"schema":{"type":"string","maxLength":128},"in":"query","name":"name","required":false},{"schema":{"type":"string","minLength":1,"maxLength":300},"in":"query","name":"path","required":true},{"schema":{"type":"string","enum":["email","sms","whatsapp","push","postcard"]},"in":"query","name":"channel","required":false}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"values":{"$ref":"#/components/schemas/Values"}},"required":["values"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1SegmentsSuggest"}},"/v1/segments/{id}/export":{"get":{"summary":"Current members as CSV text (first 50,000); POST /v1/segments/:id/export-jobs exports every member as a file","tags":["segments"],"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetV1SegmentsByIdExportResponse"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1SegmentsByIdExport"}},"/v1/segments/{id}/export-jobs":{"post":{"summary":"Every current member as a CSV file, prepared in the background (poll GET /v1/exports/:id for the download link)","tags":["segments"],"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"202":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ItemsItem14"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"postV1SegmentsByIdExportJobs"}},"/v1/segments/{id}/translate":{"get":{"summary":"The definition as plain-language lines","tags":["segments"],"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"lines":{"type":"array","items":{"type":"string"}}},"required":["lines"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1SegmentsByIdTranslate"}},"/v1/segments/{id}":{"get":{"tags":["segments"],"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ItemsItem41"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1SegmentsById"},"patch":{"tags":["segments"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":200},"description":{"nullable":true,"type":"string","maxLength":2000},"folder":{"nullable":true,"type":"string","minLength":1,"maxLength":80},"definition":{"$ref":"#/components/schemas/Definition2"},"status":{"type":"string","enum":["active","archived"]},"starred":{"type":"boolean"},"tags":{"maxItems":50,"type":"array","items":{"type":"string","minLength":1,"maxLength":64}}}}}}},"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ItemsItem41"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"patchV1SegmentsById"},"delete":{"tags":["segments"],"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"ok":{"type":"boolean","enum":[true]}},"required":["ok"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"deleteV1SegmentsById"}},"/v1/segments/{id}/evaluate":{"post":{"tags":["segments"],"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"202":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"queued":{"type":"boolean","enum":[true]}},"required":["queued"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"postV1SegmentsByIdEvaluate"}},"/v1/segments/{id}/members":{"get":{"summary":"Current members with the time each joined; filter by email, phone or join date, sort by join date","tags":["segments"],"parameters":[{"schema":{"default":50,"type":"integer","minimum":1,"maximum":200},"in":"query","name":"limit","required":false},{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"query","name":"cursor","required":false},{"schema":{"type":"string","minLength":1,"maxLength":320},"in":"query","name":"email","required":false},{"schema":{"type":"string","minLength":1,"maxLength":32},"in":"query","name":"phone","required":false},{"schema":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"in":"query","name":"joinedFrom","required":false},{"schema":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"in":"query","name":"joinedTo","required":false},{"schema":{"type":"string","enum":["joined_at","-joined_at"]},"in":"query","name":"sort","required":false},{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"items":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"emailPrimary":{"nullable":true,"type":"string"},"phonePrimary":{"nullable":true,"type":"string"},"firstName":{"nullable":true,"type":"string"},"lastName":{"nullable":true,"type":"string"},"timezone":{"nullable":true,"type":"string"},"locale":{"nullable":true,"type":"string"},"country":{"nullable":true,"type":"string"},"city":{"nullable":true,"type":"string"},"region":{"nullable":true,"type":"string"},"source":{"nullable":true,"type":"string"},"lifecycleStage":{"nullable":true,"type":"string"},"ownerUserId":{"nullable":true,"type":"string"},"attributes":{"type":"object","additionalProperties":{}},"tags":{"type":"array","items":{"type":"string"}},"mergedIntoId":{"nullable":true,"type":"string"},"archivedAt":{"nullable":true,"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"createdAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"updatedAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"consentIgnored":{"type":"array","items":{"type":"string","enum":["email","sms","whatsapp","push","postcard"]}},"joinedAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"}},"required":["id","emailPrimary","phonePrimary","firstName","lastName","timezone","locale","country","city","region","source","lifecycleStage","ownerUserId","attributes","tags","mergedIntoId","createdAt","updatedAt","joinedAt"],"additionalProperties":false}},"nextCursor":{"nullable":true,"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},"required":["items","nextCursor"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1SegmentsByIdMembers"},"post":{"summary":"Add existing contacts to a hand-picked segment by profile id or email (grants no consent)","tags":["segments"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PostV1SegmentsByIdMembersBody"}}}},"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PostV1SegmentsByIdMembersResponse"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"postV1SegmentsByIdMembers"},"delete":{"summary":"Remove contacts from a hand-picked segment by profile id or email","tags":["segments"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PostV1SegmentsByIdMembersBody"}}}},"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PostV1SegmentsByIdMembersResponse"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"deleteV1SegmentsByIdMembers"}},"/v1/segments/{id}/objects":{"get":{"summary":"Members of an object segment, each with the profiles linked to it","tags":["segments"],"parameters":[{"schema":{"default":50,"type":"integer","minimum":1,"maximum":200},"in":"query","name":"limit","required":false},{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"query","name":"cursor","required":false},{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"items":{"type":"array","items":{"type":"object","properties":{"objectId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"externalId":{"nullable":true,"type":"string"},"name":{"type":"string"},"attributes":{"type":"object","additionalProperties":{}},"joinedAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"profileIds":{"$ref":"#/components/schemas/Conflicts"}},"required":["objectId","externalId","name","attributes","joinedAt","profileIds"],"additionalProperties":false}},"nextCursor":{"nullable":true,"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},"required":["items","nextCursor"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1SegmentsByIdObjects"}},"/v1/segments/{id}/snapshots":{"post":{"tags":["segments"],"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"201":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PostV1SegmentsByIdSnapshotsResponse"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"postV1SegmentsByIdSnapshots"},"get":{"summary":"Saved snapshots of a segment, newest first","tags":["segments"],"parameters":[{"schema":{"type":"integer","minimum":1,"maximum":200},"in":"query","name":"limit","required":false,"description":"Page size; omitted returns the whole list"},{"schema":{"type":"string","pattern":"^\\d{1,9}$"},"in":"query","name":"cursor","required":false,"description":"Opaque: the `nextCursor` of the previous page"},{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"items":{"type":"array","items":{"$ref":"#/components/schemas/PostV1SegmentsByIdSnapshotsResponse"}},"nextCursor":{"nullable":true,"type":"string"}},"required":["items","nextCursor"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1SegmentsByIdSnapshots"}},"/v1/segments/{id}/versions":{"get":{"tags":["segments"],"parameters":[{"schema":{"type":"integer","minimum":1,"maximum":200},"in":"query","name":"limit","required":false,"description":"Page size; omitted returns the whole list"},{"schema":{"type":"string","pattern":"^\\d{1,9}$"},"in":"query","name":"cursor","required":false,"description":"Opaque: the `nextCursor` of the previous page"},{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"items":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"segmentId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"n":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"definition":{"$ref":"#/components/schemas/Definition"},"createdBy":{"type":"string"},"createdAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"}},"required":["id","segmentId","n","definition","createdBy","createdAt"],"additionalProperties":false}},"nextCursor":{"nullable":true,"type":"string"}},"required":["items","nextCursor"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1SegmentsByIdVersions"}},"/v1/segments/{id}/versions/{n}/restore":{"post":{"summary":"Put an earlier version of the rules back as the current rules (recorded as a new version)","tags":["segments"],"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true},{"schema":{"type":"integer","minimum":1,"maximum":9007199254740991},"in":"path","name":"n","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ItemsItem41"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"postV1SegmentsByIdVersionsByNRestore"}},"/v1/segments/{id}/diff":{"get":{"summary":"Who joined and who left between two dates, from membership history","tags":["segments"],"parameters":[{"schema":{"$ref":"#/components/schemas/GetV1SegmentsByIdDiff"},"in":"query","name":"from","required":true},{"schema":{"$ref":"#/components/schemas/GetV1SegmentsByIdDiff"},"in":"query","name":"to","required":true},{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"segmentId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"from":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"to":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"joined":{"$ref":"#/components/schemas/Joined"},"left":{"$ref":"#/components/schemas/Joined"}},"required":["segmentId","from","to","joined","left"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1SegmentsByIdDiff"}},"/v1/messages":{"get":{"tags":["messages"],"parameters":[{"schema":{"default":50,"type":"integer","minimum":1,"maximum":200},"in":"query","name":"limit","required":false},{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"query","name":"cursor","required":false},{"schema":{"type":"string","enum":["createdAt","sentAt","status","destination"]},"in":"query","name":"sort","required":false},{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"query","name":"profileId","required":false},{"schema":{"type":"string","enum":["queued","deferred","blocked","sending","accepted","delivered","bounced","complained","failed","cancelled","needs_reconcile"]},"in":"query","name":"status","required":false},{"schema":{"type":"string","enum":["campaign","workflow","sequence","api"]},"in":"query","name":"sourceKind","required":false},{"schema":{"type":"string","maxLength":128},"in":"query","name":"sourceId","required":false},{"schema":{"type":"string","maxLength":200},"in":"query","name":"q","required":false},{"schema":{"type":"string","maxLength":64},"in":"query","name":"objectType","required":false},{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"query","name":"objectId","required":false},{"schema":{"default":"desc","type":"string","enum":["asc","desc"]},"in":"query","name":"order","required":false},{"schema":{"type":"string","minLength":1,"maxLength":50,"pattern":"^[\\w.:-]+$"},"in":"query","name":"tag","required":false},{"schema":{"type":"string","maxLength":500},"in":"query","name":"metadata","required":false},{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"query","name":"senderIdentityId","required":false},{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"query","name":"templateId","required":false},{"schema":{"type":"string","enum":["email","sms","whatsapp","push","postcard"]},"in":"query","name":"channel","required":false},{"schema":{"type":"string","format":"date-time"},"in":"query","name":"from","required":false},{"schema":{"type":"string","format":"date-time"},"in":"query","name":"to","required":false},{"schema":{"type":"string","maxLength":500},"in":"query","name":"vars","required":false},{"schema":{"type":"string","maxLength":40},"in":"query","name":"eventKind","required":false}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetV1MessagesResponse"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1Messages"}},"/v1/messages/{id}":{"get":{"tags":["messages"],"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"job":{"$ref":"#/components/schemas/ItemsItem42"},"attempts":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"jobId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"n":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"status":{"type":"string"},"errorClass":{"nullable":true,"type":"string"},"startedAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"finishedAt":{"nullable":true,"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"}},"required":["id","jobId","n","status","errorClass","startedAt","finishedAt"],"additionalProperties":false}},"events":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"jobId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"profileId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"kind":{"type":"string"},"source":{"type":"string"},"connectionId":{"nullable":true,"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"url":{"nullable":true,"type":"string"},"ua":{"nullable":true,"type":"string"},"isMachine":{"type":"boolean"},"occurredAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"}},"required":["id","jobId","profileId","kind","source","connectionId","url","ua","isMachine","occurredAt"],"additionalProperties":false}},"decisionLog":{"$ref":"#/components/schemas/DecisionLog"}},"required":["job","attempts","events","decisionLog"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1MessagesById"}},"/v1/messages/send":{"post":{"summary":"Send one message through the full consent/suppression/quiet-hours pipeline (idempotent on idempotencyKey). Purpose transactional/operational is a separate stream that still reaches people who unsubscribed from marketing, so it refuses (400) a template in a preference topic or used by a campaign, a topicId, and copy with {{ unsubscribe_url }}: send those as marketing","tags":["messages"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"purpose":{"type":"string","enum":["marketing","prospecting","transactional","operational"]},"channel":{"type":"string","enum":["email","sms","whatsapp","push","postcard"]},"profileId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"templateId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"versionId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"route":{"$ref":"#/components/schemas/Route"},"idempotencyKey":{"type":"string","minLength":1,"maxLength":200},"topicId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"scheduledFor":{"type":"string","format":"date-time"},"vars":{"type":"object","additionalProperties":{}}},"required":["purpose","channel","profileId","templateId","route"]}}}},"responses":{"202":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PostV1MessagesSendResponse"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"postV1MessagesSend"}},"/v1/profiles/{id}/engagement":{"delete":{"summary":"Delete a person's open and/or click history (privacy request); deliveries, bounces and consent stay","tags":["messages"],"parameters":[{"schema":{"default":"both","type":"string","enum":["open","click","both"]},"in":"query","name":"kind","required":false},{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"removed":{"type":"number"}},"required":["removed"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"deleteV1ProfilesByIdEngagement"}},"/v1/admin/messages/{id}/retry":{"post":{"summary":"Replay a dead-lettered message; re-runs every policy stage","tags":["messages"],"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"jobId":{"type":"string"},"status":{"type":"string"}},"required":["jobId","status"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"postV1AdminMessagesByIdRetry"}},"/v1/transactional/send":{"post":{"summary":"Transactional send to raw email/phone recipients: inline or template content, per-recipient vars, tags, metadata, attachments. Suppression still applies; idempotent on the key (per recipient). Merge tags (Liquid, strict): `{{ vars.<key> }}` reads the call-level `vars` merged with the recipient's own `vars`; `{{ vars.recipient.email }}`, `{{ vars.recipient.phone }}` and `{{ vars.recipient.name }}` are the recipient as given; `{{ profile.<field> }}` is the contact (firstName, lastName, emailPrimary, phonePrimary, timezone, locale, country, city, region, or a custom attribute). Bare names such as `{{ name }}` are not defined (except with mergeLanguage handlebars). A `vars.*` tag the send does not supply comes back per recipient as `invalid` before anything is queued. Transactional stream: this route still reaches people who unsubscribed from marketing, so it refuses (400) marketing content: a template in a preference topic or used by a campaign, and copy with `{{ unsubscribe_url }}` (or `*|UNSUB|*`). Send those through /v1/messages/send with purpose marketing.","tags":["transactional"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"channel":{"default":"email","type":"string","enum":["email","sms","whatsapp","push","postcard"]},"to":{"$ref":"#/components/schemas/To"},"templateId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"versionId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"subject":{"type":"string","maxLength":998},"html":{"type":"string","maxLength":512000},"text":{"type":"string","maxLength":100000},"vars":{"type":"object","additionalProperties":{}},"from":{"type":"object","properties":{"email":{"type":"string","format":"email","pattern":"^(?:[A-Za-z0-9_'+\\-]+\\.)*[A-Za-z0-9_'+\\-]*[A-Za-z0-9_+-]@(?:[A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$"},"name":{"type":"string","maxLength":200}},"required":["email"]},"replyTo":{"type":"string","maxLength":1000},"inReplyToId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"throttle":{"type":"object","properties":{"key":{"type":"string","pattern":"^[\\w.-]{1,40}$"},"windowMinutes":{"type":"integer","minimum":1,"maximum":43200}},"required":["key","windowMinutes"]},"headers":{"type":"object","additionalProperties":{"type":"string","maxLength":998,"pattern":"^[^\\r\\n]*$"}},"attachments":{"$ref":"#/components/schemas/Attachments"},"cc":{"$ref":"#/components/schemas/Cc"},"bcc":{"$ref":"#/components/schemas/Cc"},"templateContent":{"maxItems":50,"type":"array","items":{"type":"object","properties":{"name":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,64}$"},"content":{"type":"string","maxLength":512000}},"required":["name","content"]}},"attachmentUrls":{"maxItems":10,"type":"array","items":{"type":"object","properties":{"url":{"type":"string","maxLength":2048,"format":"uri"},"filename":{"type":"string","minLength":1,"maxLength":255},"cid":{"type":"string","maxLength":200}},"required":["url"]}},"messageVersions":{"maxItems":20,"type":"array","items":{"type":"object","properties":{"to":{"$ref":"#/components/schemas/To"},"subject":{"type":"string","maxLength":998},"templateId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"replyTo":{"type":"string","maxLength":1000},"vars":{"type":"object","additionalProperties":{}}},"required":["to"]}},"inlineCss":{"type":"boolean"},"urlStripQs":{"type":"boolean"},"preserveRecipients":{"type":"boolean"},"viewContentLink":{"type":"boolean"},"googleAnalyticsDomains":{"maxItems":50,"type":"array","items":{"type":"string","minLength":3,"maxLength":253,"pattern":"^(?!-)[a-z0-9-]+(\\.[a-z0-9-]+)+$"}},"googleAnalyticsCampaign":{"type":"string","minLength":1,"maxLength":200},"mergeLanguage":{"type":"string","enum":["liquid","mailchimp","handlebars"]},"recipientMetadata":{"maxItems":100,"type":"array","items":{"type":"object","properties":{"rcpt":{"type":"string","minLength":1,"maxLength":320},"values":{"type":"object","additionalProperties":{"type":"string","maxLength":255}}},"required":["rcpt","values"]}},"important":{"type":"boolean"},"subaccount":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"trackingDomain":{"type":"string","minLength":3,"maxLength":253,"pattern":"^(?!-)[a-z0-9-]+(\\.[a-z0-9-]+)+$"},"signingDomain":{"type":"string","minLength":3,"maxLength":253,"pattern":"^(?!-)[a-z0-9-]+(\\.[a-z0-9-]+)+$"},"returnPathDomain":{"type":"string","minLength":3,"maxLength":253,"pattern":"^(?!-)[a-z0-9-]+(\\.[a-z0-9-]+)+$"},"tags":{"maxItems":10,"type":"array","items":{"type":"string","minLength":1,"maxLength":50,"pattern":"^[\\w.:-]+$"}},"metadata":{"type":"object","additionalProperties":{"type":"string","maxLength":255}},"tracking":{"type":"object","properties":{"opens":{"type":"boolean"},"clicks":{"type":"boolean"}}},"scheduledFor":{"type":"string","format":"date-time"},"route":{"$ref":"#/components/schemas/Route"},"idempotencyKey":{"type":"string","minLength":1,"maxLength":200},"batchId":{"type":"string","pattern":"^[\\w.-]{1,40}$"}},"required":["to"]}}}},"responses":{"202":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PostV1TransactionalSendResponse"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"postV1TransactionalSend"}},"/v1/transactional/send-raw":{"post":{"summary":"Send a complete RFC 5322 (MIME) message; From must be a verified sender","tags":["transactional"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"rawMime":{"type":"string","minLength":20,"maxLength":15000000},"to":{"minItems":1,"maxItems":100,"type":"array","items":{"type":"string","format":"email","pattern":"^(?:[A-Za-z0-9_'+\\-]+\\.)*[A-Za-z0-9_'+\\-]*[A-Za-z0-9_+-]@(?:[A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$"}},"fromEmail":{"type":"string","maxLength":320,"format":"email","pattern":"^(?:[A-Za-z0-9_'+\\-]+\\.)*[A-Za-z0-9_'+\\-]*[A-Za-z0-9_+-]@(?:[A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$"},"fromName":{"type":"string","maxLength":200},"returnPathDomain":{"type":"string","minLength":3,"maxLength":253,"pattern":"^(?!-)[a-z0-9-]+(\\.[a-z0-9-]+)+$"},"important":{"type":"boolean"},"viewContentLink":{"type":"boolean"},"subaccount":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"tags":{"maxItems":10,"type":"array","items":{"type":"string","minLength":1,"maxLength":50,"pattern":"^[\\w.:-]+$"}},"metadata":{"type":"object","additionalProperties":{"type":"string","maxLength":255}},"tracking":{"type":"object","properties":{"opens":{"type":"boolean"},"clicks":{"type":"boolean"}}},"scheduledFor":{"type":"string","format":"date-time"},"route":{"$ref":"#/components/schemas/Route"},"idempotencyKey":{"type":"string","minLength":1,"maxLength":200},"batchId":{"type":"string","pattern":"^[\\w.-]{1,40}$"}},"required":["rawMime"]}}}},"responses":{"202":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PostV1TransactionalSendResponse"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"postV1TransactionalSendRaw"}},"/v1/messages/{id}/content":{"get":{"summary":"Rendered subject/body/headers of a sent message, while inside the retention window","tags":["transactional"],"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"jobId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"subject":{"nullable":true,"type":"string"},"text":{"nullable":true,"type":"string"},"html":{"nullable":true,"type":"string"},"headers":{"type":"object","additionalProperties":{"type":"string"}},"attachments":{"type":"array","items":{"type":"object","properties":{"filename":{"type":"string"},"contentType":{"type":"string"},"size":{"type":"number"},"cid":{"nullable":true,"type":"string"}},"required":["filename","contentType","size"],"additionalProperties":false}},"expiresAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"}},"required":["jobId","subject","text","html","headers","attachments","expiresAt"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1MessagesByIdContent"},"delete":{"summary":"Erase the stored body, headers and attachments of one message now; the delivery record and reporting stay","tags":["transactional"],"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"ok":{"type":"boolean","enum":[true]}},"required":["ok"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"deleteV1MessagesByIdContent"}},"/v1/transactional/scheduled":{"get":{"tags":["transactional"],"parameters":[{"schema":{"default":50,"type":"integer","minimum":1,"maximum":200},"in":"query","name":"limit","required":false},{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"query","name":"cursor","required":false},{"schema":{"type":"string","format":"date-time"},"in":"query","name":"from","required":false},{"schema":{"type":"string","format":"date-time"},"in":"query","name":"to","required":false}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"items":{"$ref":"#/components/schemas/Items13"}},"required":["items"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1TransactionalScheduled"}},"/v1/messages/{id}/cancel":{"post":{"summary":"Cancel one scheduled (queued/deferred) message","tags":["transactional"],"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"ok":{"type":"boolean","enum":[true]}},"required":["ok"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"postV1MessagesByIdCancel"}},"/v1/messages/{id}/reschedule":{"post":{"tags":["transactional"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"scheduledFor":{"type":"string","format":"date-time"}},"required":["scheduledFor"]}}}},"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string"},"scheduledFor":{"type":"string"}},"required":["id","scheduledFor"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"postV1MessagesByIdReschedule"}},"/v1/transactional/tags":{"get":{"tags":["transactional"],"parameters":[{"schema":{"type":"integer","minimum":1,"maximum":200},"in":"query","name":"limit","required":false,"description":"Page size; omitted returns the whole list"},{"schema":{"type":"string","pattern":"^\\d{1,9}$"},"in":"query","name":"cursor","required":false,"description":"Opaque: the `nextCursor` of the previous page"}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"items":{"type":"array","items":{"$ref":"#/components/schemas/ItemsItem43"}},"nextCursor":{"nullable":true,"type":"string"}},"required":["items","nextCursor"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1TransactionalTags"}},"/v1/transactional/tags/{tag}":{"get":{"tags":["transactional"],"parameters":[{"schema":{"type":"string","minLength":1,"maxLength":50},"in":"path","name":"tag","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ItemsItem43"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1TransactionalTagsByTag"},"delete":{"summary":"Remove a tag from every message that carries it","tags":["transactional"],"parameters":[{"schema":{"type":"string","minLength":1,"maxLength":50},"in":"path","name":"tag","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"messages":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["messages"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"deleteV1TransactionalTagsByTag"}},"/v1/transactional/stats":{"get":{"summary":"Daily send/delivery/bounce counts grouped by tag, sender, template or a metadata key","tags":["transactional"],"parameters":[{"schema":{"default":"tag","type":"string","enum":["tag","sender","template","metadata"]},"in":"query","name":"groupBy","required":false},{"schema":{"type":"string","maxLength":64},"in":"query","name":"key","required":false},{"schema":{"type":"string","format":"date-time"},"in":"query","name":"from","required":false},{"schema":{"type":"string","format":"date-time"},"in":"query","name":"to","required":false},{"schema":{"type":"string","minLength":1,"maxLength":50,"pattern":"^[\\w.:-]+$"},"in":"query","name":"tag","required":false},{"schema":{"type":"string","enum":["email","sms","whatsapp","push","postcard"]},"in":"query","name":"channel","required":false},{"schema":{"default":"day","type":"string","enum":["day","hour"]},"in":"query","name":"granularity","required":false},{"schema":{"type":"string","maxLength":40},"in":"query","name":"status","required":false},{"schema":{"type":"string","maxLength":200},"in":"query","name":"q","required":false},{"schema":{"type":"string","maxLength":500},"in":"query","name":"metadata","required":false},{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"query","name":"senderIdentityId","required":false},{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"query","name":"templateId","required":false},{"schema":{"type":"integer","minimum":1,"maximum":200},"in":"query","name":"limit","required":false,"description":"Page size; omitted returns the whole list"},{"schema":{"type":"string","pattern":"^\\d{1,9}$"},"in":"query","name":"cursor","required":false,"description":"Opaque: the `nextCursor` of the previous page"}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"items":{"type":"array","items":{"type":"object","properties":{"day":{"type":"string"},"group":{"type":"string"},"sent":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"delivered":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"bounced":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"complained":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["day","group","sent","delivered","bounced","complained"],"additionalProperties":false}},"nextCursor":{"nullable":true,"type":"string"}},"required":["items","nextCursor"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1TransactionalStats"}},"/v1/inbound/domains":{"get":{"tags":["transactional"],"parameters":[{"schema":{"type":"integer","minimum":1,"maximum":200},"in":"query","name":"limit","required":false,"description":"Page size; omitted returns the whole list"},{"schema":{"type":"string","pattern":"^\\d{1,9}$"},"in":"query","name":"cursor","required":false,"description":"Opaque: the `nextCursor` of the previous page"}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"items":{"type":"array","items":{"$ref":"#/components/schemas/ItemsItem44"}},"nextCursor":{"nullable":true,"type":"string"}},"required":["items","nextCursor"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1InboundDomains"},"post":{"summary":"Add an inbound domain; point its MX at expectedMx, then call /check","tags":["transactional"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"domain":{"type":"string","minLength":3,"maxLength":253}},"required":["domain"]}}}},"responses":{"201":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ItemsItem44"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"postV1InboundDomains"}},"/v1/inbound/domains/{id}/check":{"post":{"tags":["transactional"],"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ItemsItem44"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"postV1InboundDomainsByIdCheck"}},"/v1/inbound/domains/{id}":{"delete":{"tags":["transactional"],"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"ok":{"type":"boolean","enum":[true]}},"required":["ok"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"deleteV1InboundDomainsById"}},"/v1/inbound/routes":{"get":{"tags":["transactional"],"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"query","name":"domainId","required":false},{"schema":{"type":"integer","minimum":1,"maximum":200},"in":"query","name":"limit","required":false,"description":"Page size; omitted returns the whole list"},{"schema":{"type":"string","pattern":"^\\d{1,9}$"},"in":"query","name":"cursor","required":false,"description":"Opaque: the `nextCursor` of the previous page"}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"items":{"type":"array","items":{"$ref":"#/components/schemas/ItemsItem45"}},"nextCursor":{"nullable":true,"type":"string"}},"required":["items","nextCursor"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1InboundRoutes"},"post":{"tags":["transactional"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"domainId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"pattern":{"type":"string","minLength":1,"maxLength":100,"pattern":"^[\\w.*+-]+$"},"webhookUrl":{"type":"string","maxLength":2000,"format":"uri"}},"required":["domainId","pattern","webhookUrl"]}}}},"responses":{"201":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ItemsItem45"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"postV1InboundRoutes"}},"/v1/inbound/routes/{id}":{"patch":{"tags":["transactional"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"pattern":{"type":"string","minLength":1,"maxLength":100,"pattern":"^[\\w.*+-]+$"},"webhookUrl":{"type":"string","maxLength":2000,"format":"uri"},"enabled":{"type":"boolean"}}}}}},"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ItemsItem45"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"patchV1InboundRoutesById"},"delete":{"tags":["transactional"],"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"ok":{"type":"boolean","enum":[true]}},"required":["ok"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"deleteV1InboundRoutesById"}},"/v1/inbound/simulate":{"post":{"summary":"Run a fake inbound mail through the domain's routes (queues the webhook deliveries)","tags":["transactional"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"domainId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"from":{"type":"string","format":"email","pattern":"^(?:[A-Za-z0-9_'+\\-]+\\.)*[A-Za-z0-9_'+\\-]*[A-Za-z0-9_+-]@(?:[A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$"},"to":{"type":"string","format":"email","pattern":"^(?:[A-Za-z0-9_'+\\-]+\\.)*[A-Za-z0-9_'+\\-]*[A-Za-z0-9_+-]@(?:[A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$"},"subject":{"default":"","type":"string","maxLength":998},"text":{"type":"string","maxLength":100000},"html":{"type":"string","maxLength":512000},"rawMime":{"type":"string","maxLength":4000000}},"required":["domainId"]}}}},"responses":{"202":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"matched":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"events":{"$ref":"#/components/schemas/Events"}},"required":["matched","events"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"postV1InboundSimulate"}},"/v1/transactional/parse":{"post":{"summary":"Parse a raw MIME message into from, to, subject, text, html, headers and attachment metadata (nothing is stored or sent)","tags":["transactional"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"rawMessage":{"type":"string","minLength":1,"maxLength":5000000}},"required":["rawMessage"]}}}},"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"from":{"nullable":true,"type":"object","properties":{"email":{"type":"string"},"name":{"type":"string"}},"required":["email"],"additionalProperties":false},"to":{"type":"array","items":{"type":"string"}},"replyTo":{"nullable":true,"type":"string"},"subject":{"type":"string"},"text":{"nullable":true,"type":"string"},"html":{"nullable":true,"type":"string"},"headers":{"type":"object","additionalProperties":{"type":"string"}},"attachments":{"type":"array","items":{"type":"object","properties":{"filename":{"type":"string"},"contentType":{"type":"string"},"size":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["filename","contentType","size"],"additionalProperties":false}}},"required":["from","to","replyTo","subject","text","html","headers","attachments"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"postV1TransactionalParse"}},"/v1/inbound/events":{"get":{"tags":["transactional"],"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"query","name":"routeId","required":false},{"schema":{"type":"integer","minimum":1,"maximum":200},"in":"query","name":"limit","required":false,"description":"Page size; omitted returns the whole list"},{"schema":{"type":"string","pattern":"^\\d{1,9}$"},"in":"query","name":"cursor","required":false,"description":"Opaque: the `nextCursor` of the previous page"}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"items":{"$ref":"#/components/schemas/Events"},"nextCursor":{"nullable":true,"type":"string"}},"required":["items","nextCursor"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1InboundEvents"}},"/v1/sending-domains/{id}":{"get":{"summary":"One sending domain by id or name, with its last DNS check","tags":["connections"],"parameters":[{"schema":{"type":"string","minLength":1,"maxLength":253},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string"},"domain":{"type":"string"}},"required":["id","domain"],"additionalProperties":{}}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1SendingDomainsById"},"patch":{"summary":"Set open and click tracking for mail sent from this domain (null = follow the workspace setting)","tags":["connections"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"openTracking":{"nullable":true,"type":"boolean"},"clickTracking":{"nullable":true,"type":"boolean"}}}}}},"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string"},"domain":{"type":"string"}},"required":["id","domain"],"additionalProperties":{}}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"patchV1SendingDomainsById"},"delete":{"summary":"Delete a sending domain (refused while senders still use it)","tags":["connections"],"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"ok":{"type":"boolean","enum":[true]}},"required":["ok"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"deleteV1SendingDomainsById"}},"/v1/senders":{"get":{"summary":"Every sender identity in the workspace, across connections","tags":["connections"],"parameters":[{"schema":{"type":"string","enum":["email","sms","whatsapp","push","postcard"]},"in":"query","name":"channel","required":false},{"schema":{"type":"string","maxLength":253},"in":"query","name":"domain","required":false},{"schema":{"type":"string","enum":["true","false"]},"in":"query","name":"verified","required":false},{"schema":{"type":"string","maxLength":200},"in":"query","name":"q","required":false},{"schema":{"type":"integer","minimum":1,"maximum":200},"in":"query","name":"limit","required":false,"description":"Page size; omitted returns the whole list"},{"schema":{"type":"string","pattern":"^\\d{1,9}$"},"in":"query","name":"cursor","required":false,"description":"Opaque: the `nextCursor` of the previous page"}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"items":{"type":"array","items":{"$ref":"#/components/schemas/ItemsItem46"}},"nextCursor":{"nullable":true,"type":"string"}},"required":["items","nextCursor"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1Senders"}},"/v1/senders/{id}":{"get":{"tags":["connections"],"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ItemsItem46"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1SendersById"}},"/webhooks/inbound/{provider}/{workspaceId}/{domainId}/{sig}":{"post":{"summary":"Receive inbound mail from SendGrid Inbound Parse (raw MIME mode), Postmark, Mailgun routes or SES/SNS; queues the matching inbound routes","tags":["webhooks"],"parameters":[{"schema":{"type":"string","enum":["sendgrid","postmark","mailgun","ses"]},"in":"path","name":"provider","required":true},{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"workspaceId","required":true},{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"domainId","required":true},{"schema":{"type":"string","minLength":16,"maxLength":128},"in":"path","name":"sig","required":true}],"security":[],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"ok":{"type":"boolean","enum":[true]},"matched":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"duplicate":{"type":"boolean"},"confirmed":{"type":"boolean"}},"required":["ok","matched"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"postWebhooksInboundByProviderByWorkspaceIdByDomainIdBySig"}},"/v1/inbound/mail":{"get":{"tags":["transactional"],"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"query","name":"domainId","required":false},{"schema":{"type":"integer","minimum":1,"maximum":200},"in":"query","name":"limit","required":false,"description":"Page size; omitted returns the whole list"},{"schema":{"type":"string","pattern":"^\\d{1,9}$"},"in":"query","name":"cursor","required":false,"description":"Opaque: the `nextCursor` of the previous page"}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"items":{"type":"array","items":{"$ref":"#/components/schemas/ItemsItem47"}},"nextCursor":{"nullable":true,"type":"string"}},"required":["items","nextCursor"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1InboundMail"}},"/v1/inbound/mail/{id}":{"get":{"tags":["transactional"],"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ItemsItem47"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1InboundMailById"}},"/v1/inbound/mail/{id}/attachments/{index}":{"get":{"summary":"Download one attachment of a received inbound mail","tags":["transactional"],"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true},{"schema":{"type":"integer","minimum":0,"maximum":99},"in":"path","name":"index","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1InboundMailByIdAttachmentsByIndex"}},"/v1/inbound/events/{id}":{"get":{"tags":["transactional"],"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"routeId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"status":{"type":"string"},"attempts":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"lastError":{"nullable":true,"type":"string"},"createdAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"payload":{}},"required":["id","routeId","status","attempts","lastError","createdAt","payload"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1InboundEventsById"}},"/v1/transactional/definitions":{"get":{"tags":["transactional"],"parameters":[{"schema":{"default":50,"type":"integer","minimum":1,"maximum":200},"in":"query","name":"limit","required":false},{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"query","name":"cursor","required":false}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"items":{"type":"array","items":{"$ref":"#/components/schemas/ItemsItem48"}},"nextCursor":{"nullable":true,"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},"required":["items","nextCursor"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1TransactionalDefinitions"},"post":{"tags":["transactional"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":120},"description":{"nullable":true,"type":"string","maxLength":1000},"channel":{"default":"email","type":"string","enum":["email","sms","whatsapp","push","postcard"]},"templateId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"settings":{"default":{},"type":"object","properties":{"subject":{"type":"string","maxLength":998},"fromEmail":{"type":"string","format":"email","pattern":"^(?:[A-Za-z0-9_'+\\-]+\\.)*[A-Za-z0-9_'+\\-]*[A-Za-z0-9_+-]@(?:[A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$"},"fromName":{"type":"string","maxLength":200},"replyTo":{"type":"string","maxLength":1000},"cc":{"$ref":"#/components/schemas/Cc"},"bcc":{"$ref":"#/components/schemas/Cc"},"tags":{"maxItems":10,"type":"array","items":{"type":"string","minLength":1,"maxLength":50,"pattern":"^[\\w.:-]+$"}},"tracking":{"type":"object","properties":{"opens":{"type":"boolean"},"clicks":{"type":"boolean"}}},"route":{"$ref":"#/components/schemas/Route"}}}},"required":["name","templateId"]}}}},"responses":{"201":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ItemsItem48"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"postV1TransactionalDefinitions"}},"/v1/transactional/definitions/{id}":{"get":{"tags":["transactional"],"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ItemsItem48"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1TransactionalDefinitionsById"},"patch":{"tags":["transactional"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":120},"description":{"nullable":true,"type":"string","maxLength":1000},"templateId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"settings":{"type":"object","properties":{"subject":{"type":"string","maxLength":998},"fromEmail":{"type":"string","format":"email","pattern":"^(?:[A-Za-z0-9_'+\\-]+\\.)*[A-Za-z0-9_'+\\-]*[A-Za-z0-9_+-]@(?:[A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$"},"fromName":{"type":"string","maxLength":200},"replyTo":{"type":"string","maxLength":1000},"cc":{"$ref":"#/components/schemas/Cc"},"bcc":{"$ref":"#/components/schemas/Cc"},"tags":{"maxItems":10,"type":"array","items":{"type":"string","minLength":1,"maxLength":50,"pattern":"^[\\w.:-]+$"}},"tracking":{"type":"object","properties":{"opens":{"type":"boolean"},"clicks":{"type":"boolean"}}},"route":{"$ref":"#/components/schemas/Route"}}},"status":{"type":"string","enum":["active","archived"]}}}}}},"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ItemsItem48"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"patchV1TransactionalDefinitionsById"},"delete":{"tags":["transactional"],"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"ok":{"type":"boolean","enum":[true]}},"required":["ok"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"deleteV1TransactionalDefinitionsById"}},"/v1/transactional/definitions/{id}/send":{"post":{"summary":"Send a transactional definition by id: recipients and data in, template and settings from the definition. Merge tags (Liquid, strict): `{{ vars.<key> }}` reads the call-level `vars` merged with the recipient's own `vars`; `{{ vars.recipient.email }}`, `{{ vars.recipient.phone }}` and `{{ vars.recipient.name }}` are the recipient as given; `{{ profile.<field> }}` is the contact (firstName, lastName, emailPrimary, phonePrimary, timezone, locale, country, city, region, or a custom attribute). Bare names such as `{{ name }}` are not defined (except with mergeLanguage handlebars). A `vars.*` tag the send does not supply comes back per recipient as `invalid` before anything is queued. Transactional stream: this route still reaches people who unsubscribed from marketing, so it refuses (400) marketing content: a template in a preference topic or used by a campaign, and copy with `{{ unsubscribe_url }}` (or `*|UNSUB|*`). Send those through /v1/messages/send with purpose marketing.","tags":["transactional"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"to":{"$ref":"#/components/schemas/To"},"vars":{"type":"object","additionalProperties":{}},"tags":{"maxItems":10,"type":"array","items":{"type":"string","minLength":1,"maxLength":50,"pattern":"^[\\w.:-]+$"}},"metadata":{"type":"object","additionalProperties":{"type":"string","maxLength":255}},"scheduledFor":{"type":"string","format":"date-time"},"batchId":{"type":"string","pattern":"^[\\w.-]{1,40}$"},"attachments":{"$ref":"#/components/schemas/Attachments"},"idempotencyKey":{"type":"string","minLength":1,"maxLength":200}},"required":["to"]}}}},"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"202":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PostV1TransactionalSendResponse"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"postV1TransactionalDefinitionsByIdSend"}},"/v1/transactional/definitions/{id}/deliveries":{"get":{"summary":"Messages sent through this definition","tags":["transactional"],"parameters":[{"schema":{"default":50,"type":"integer","minimum":1,"maximum":200},"in":"query","name":"limit","required":false},{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"query","name":"cursor","required":false},{"schema":{"type":"string","enum":["createdAt","sentAt","status","destination"]},"in":"query","name":"sort","required":false},{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"query","name":"profileId","required":false},{"schema":{"type":"string","enum":["queued","deferred","blocked","sending","accepted","delivered","bounced","complained","failed","cancelled","needs_reconcile"]},"in":"query","name":"status","required":false},{"schema":{"type":"string","maxLength":200},"in":"query","name":"q","required":false},{"schema":{"type":"string","maxLength":64},"in":"query","name":"objectType","required":false},{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"query","name":"objectId","required":false},{"schema":{"default":"desc","type":"string","enum":["asc","desc"]},"in":"query","name":"order","required":false},{"schema":{"type":"string","minLength":1,"maxLength":50,"pattern":"^[\\w.:-]+$"},"in":"query","name":"tag","required":false},{"schema":{"type":"string","maxLength":500},"in":"query","name":"metadata","required":false},{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"query","name":"senderIdentityId","required":false},{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"query","name":"templateId","required":false},{"schema":{"type":"string","enum":["email","sms","whatsapp","push","postcard"]},"in":"query","name":"channel","required":false},{"schema":{"type":"string","format":"date-time"},"in":"query","name":"from","required":false},{"schema":{"type":"string","format":"date-time"},"in":"query","name":"to","required":false},{"schema":{"type":"string","maxLength":500},"in":"query","name":"vars","required":false},{"schema":{"type":"string","maxLength":40},"in":"query","name":"eventKind","required":false},{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetV1MessagesResponse"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1TransactionalDefinitionsByIdDeliveries"}},"/v1/transactional/definitions/{id}/links":{"get":{"tags":["transactional"],"parameters":[{"schema":{"type":"integer","minimum":1,"maximum":200},"in":"query","name":"limit","required":false,"description":"Page size; omitted returns the whole list"},{"schema":{"type":"string","pattern":"^\\d{1,9}$"},"in":"query","name":"cursor","required":false,"description":"Opaque: the `nextCursor` of the previous page"},{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"items":{"type":"array","items":{"type":"object","properties":{"url":{"type":"string"},"clicks":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"uniqueClickers":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["url","clicks","uniqueClickers"],"additionalProperties":false}},"nextCursor":{"nullable":true,"type":"string"}},"required":["items","nextCursor"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1TransactionalDefinitionsByIdLinks"}},"/v1/transactional/definitions/{id}/translations":{"get":{"tags":["transactional"],"parameters":[{"schema":{"type":"integer","minimum":1,"maximum":200},"in":"query","name":"limit","required":false,"description":"Page size; omitted returns the whole list"},{"schema":{"type":"string","pattern":"^\\d{1,9}$"},"in":"query","name":"cursor","required":false,"description":"Opaque: the `nextCursor` of the previous page"},{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetV1TransactionalDefinitionsByIdTranslationsResponse"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1TransactionalDefinitionsByIdTranslations"}},"/v1/transactional/definitions/{id}/translations/{locale}":{"put":{"tags":["transactional"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PutV1TransactionalDefinitionsByIdTranslationsByLocaleBody"}}}},"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true},{"schema":{"type":"string","minLength":2,"maxLength":12},"in":"path","name":"locale","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string"},"locale":{"type":"string"},"status":{"type":"string"}},"required":["id","locale","status"],"additionalProperties":{}}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"putV1TransactionalDefinitionsByIdTranslationsByLocale"}},"/v1/transactional/batches/{batchId}/cancel":{"post":{"summary":"Cancel every queued or deferred message sent with this batchId","tags":["transactional"],"parameters":[{"schema":{"type":"string","pattern":"^[\\w.-]{1,40}$"},"in":"path","name":"batchId","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"cancelled":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["cancelled"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"postV1TransactionalBatchesByBatchIdCancel"}},"/v1/transactional/summary":{"get":{"summary":"Sent/delivered/bounced/complained for today, 7, 30, 60 and 90 days; optionally one sender or channel (sender and account info rollups)","tags":["transactional"],"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"query","name":"senderIdentityId","required":false},{"schema":{"type":"string","enum":["email","sms","whatsapp","push","postcard"]},"in":"query","name":"channel","required":false},{"schema":{"type":"integer","minimum":1,"maximum":200},"in":"query","name":"limit","required":false,"description":"Page size; omitted returns the whole list"},{"schema":{"type":"string","pattern":"^\\d{1,9}$"},"in":"query","name":"cursor","required":false,"description":"Opaque: the `nextCursor` of the previous page"}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetV1TransactionalSummaryResponse"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1TransactionalSummary"}},"/v1/transactional/metadata-keys":{"get":{"tags":["transactional"],"parameters":[{"schema":{"type":"integer","minimum":1,"maximum":200},"in":"query","name":"limit","required":false,"description":"Page size; omitted returns the whole list"},{"schema":{"type":"string","pattern":"^\\d{1,9}$"},"in":"query","name":"cursor","required":false,"description":"Opaque: the `nextCursor` of the previous page"}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"items":{"type":"array","items":{"type":"object","properties":{"key":{"type":"string"},"messages":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["key","messages"],"additionalProperties":false}},"nextCursor":{"nullable":true,"type":"string"}},"required":["items","nextCursor"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1TransactionalMetadataKeys"}},"/v1/senders/{id}/stats":{"get":{"tags":["connections"],"parameters":[{"schema":{"type":"integer","minimum":1,"maximum":200},"in":"query","name":"limit","required":false,"description":"Page size; omitted returns the whole list"},{"schema":{"type":"string","pattern":"^\\d{1,9}$"},"in":"query","name":"cursor","required":false,"description":"Opaque: the `nextCursor` of the previous page"},{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetV1TransactionalSummaryResponse"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1SendersByIdStats"}},"/v1/messages/export":{"get":{"summary":"CSV export of messages with every message-search filter (tag, sender, state, recipient, metadata, channel, dates)","tags":["messages"],"parameters":[{"schema":{"type":"string","enum":["createdAt","sentAt","status","destination"]},"in":"query","name":"sort","required":false},{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"query","name":"profileId","required":false},{"schema":{"type":"string","enum":["queued","deferred","blocked","sending","accepted","delivered","bounced","complained","failed","cancelled","needs_reconcile"]},"in":"query","name":"status","required":false},{"schema":{"type":"string","enum":["campaign","workflow","sequence","api"]},"in":"query","name":"sourceKind","required":false},{"schema":{"type":"string","maxLength":128},"in":"query","name":"sourceId","required":false},{"schema":{"type":"string","maxLength":200},"in":"query","name":"q","required":false},{"schema":{"type":"string","maxLength":64},"in":"query","name":"objectType","required":false},{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"query","name":"objectId","required":false},{"schema":{"default":"desc","type":"string","enum":["asc","desc"]},"in":"query","name":"order","required":false},{"schema":{"type":"string","minLength":1,"maxLength":50,"pattern":"^[\\w.:-]+$"},"in":"query","name":"tag","required":false},{"schema":{"type":"string","maxLength":500},"in":"query","name":"metadata","required":false},{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"query","name":"senderIdentityId","required":false},{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"query","name":"templateId","required":false},{"schema":{"type":"string","enum":["email","sms","whatsapp","push","postcard"]},"in":"query","name":"channel","required":false},{"schema":{"type":"string","format":"date-time"},"in":"query","name":"from","required":false},{"schema":{"type":"string","format":"date-time"},"in":"query","name":"to","required":false},{"schema":{"type":"string","maxLength":500},"in":"query","name":"vars","required":false},{"schema":{"type":"string","maxLength":40},"in":"query","name":"eventKind","required":false}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1MessagesExport"}},"/v1/messages/events/export":{"get":{"summary":"CSV export of message events (delivered, bounced, opened, clicked...) for a date range","tags":["messages"],"parameters":[{"schema":{"type":"string","format":"date-time"},"in":"query","name":"from","required":false},{"schema":{"type":"string","format":"date-time"},"in":"query","name":"to","required":false},{"schema":{"type":"string","maxLength":40},"in":"query","name":"kind","required":false},{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"query","name":"jobId","required":false},{"schema":{"type":"string","enum":["email","sms","whatsapp","push","postcard"]},"in":"query","name":"channel","required":false}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1MessagesEventsExport"}},"/v1/smtp-credentials":{"get":{"tags":["transactional"],"parameters":[{"schema":{"type":"integer","minimum":1,"maximum":200},"in":"query","name":"limit","required":false,"description":"Page size; omitted returns the whole list"},{"schema":{"type":"string","pattern":"^\\d{1,9}$"},"in":"query","name":"cursor","required":false,"description":"Opaque: the `nextCursor` of the previous page"}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"items":{"type":"array","items":{"$ref":"#/components/schemas/ItemsItem51"}},"nextCursor":{"nullable":true,"type":"string"}},"required":["items","nextCursor"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1SmtpCredentials"},"post":{"summary":"Issue an SMTP relay credential; the secret is returned once","tags":["transactional"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":120}},"required":["name"]}}}},"responses":{"201":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PostV1SmtpCredentialsResponse"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"postV1SmtpCredentials"}},"/v1/smtp-credentials/{id}":{"get":{"tags":["transactional"],"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ItemsItem51"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1SmtpCredentialsById"},"delete":{"tags":["transactional"],"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"ok":{"type":"boolean","enum":[true]}},"required":["ok"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"deleteV1SmtpCredentialsById"}},"/v1/smtp-credentials/{id}/reset":{"post":{"summary":"Replace the secret in place; the old one stops working and the new one is returned once","tags":["transactional"],"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PostV1SmtpCredentialsResponse"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"postV1SmtpCredentialsByIdReset"}},"/v1/bounces":{"get":{"summary":"Bounce browser: hard/soft bounce events with recipient, filterable by type, recipient domain, connection and date","tags":["transactional"],"parameters":[{"schema":{"default":50,"type":"integer","minimum":1,"maximum":200},"in":"query","name":"limit","required":false},{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"query","name":"cursor","required":false},{"schema":{"type":"string","enum":["hard","soft"]},"in":"query","name":"type","required":false},{"schema":{"type":"string","maxLength":253},"in":"query","name":"domain","required":false},{"schema":{"type":"string","maxLength":200},"in":"query","name":"q","required":false},{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"query","name":"connectionId","required":false},{"schema":{"type":"string","format":"date-time"},"in":"query","name":"from","required":false},{"schema":{"type":"string","format":"date-time"},"in":"query","name":"to","required":false}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"items":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"jobId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"profileId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"destination":{"nullable":true,"type":"string"},"domain":{"nullable":true,"type":"string"},"type":{"type":"string","enum":["hard","soft"]},"occurredAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"connectionId":{"nullable":true,"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"subject":{"nullable":true,"type":"string"},"source":{"type":"string"}},"required":["id","jobId","profileId","destination","domain","type","occurredAt","connectionId","subject","source"],"additionalProperties":false}},"nextCursor":{"nullable":true,"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},"required":["items","nextCursor"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1Bounces"}},"/v1/bounces/suppress":{"post":{"summary":"Blocklist every recipient the bounce browser shows for this filter (up to 5000 addresses); lift later with a reason","tags":["transactional"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"type":{"type":"string","enum":["hard","soft"]},"domain":{"type":"string","maxLength":253},"q":{"type":"string","maxLength":200},"connectionId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"from":{"type":"string","format":"date-time"},"to":{"type":"string","format":"date-time"}}}}}},"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"suppressed":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["suppressed"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"postV1BouncesSuppress"}},"/v1/bounces/profiles/{id}":{"delete":{"summary":"Hide one profile's bounce history from the browser and reset the soft-bounce count (analytics keep the events); an existing suppression stays until lifted with a reason","tags":["transactional"],"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"deleted":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["deleted"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"deleteV1BouncesProfilesById"}},"/v1/developer/requests":{"get":{"summary":"API request log for debugging: method, route, status and duration of authenticated calls, kept 30 days","tags":["transactional"],"parameters":[{"schema":{"default":50,"type":"integer","minimum":1,"maximum":200},"in":"query","name":"limit","required":false},{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"query","name":"cursor","required":false},{"schema":{"type":"string","enum":["GET","POST","PUT","PATCH","DELETE"]},"in":"query","name":"method","required":false},{"schema":{"type":"string","maxLength":200},"in":"query","name":"path","required":false},{"schema":{"type":"string","enum":["ok","error"]},"in":"query","name":"status","required":false},{"schema":{"type":"string","format":"date-time"},"in":"query","name":"from","required":false},{"schema":{"type":"string","format":"date-time"},"in":"query","name":"to","required":false}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"items":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"method":{"type":"string"},"path":{"type":"string"},"status":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"durationMs":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"actorId":{"nullable":true,"type":"string"},"at":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"}},"required":["id","method","path","status","durationMs","actorId","at"],"additionalProperties":false}},"nextCursor":{"nullable":true,"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},"required":["items","nextCursor"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1DeveloperRequests"}},"/v1/delivery/settings":{"get":{"summary":"Soft-bounce escalation, unsubscribe mailbox and reserved transactional share","tags":["transactional"],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetV1DeliverySettingsResponse"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1DeliverySettings"},"put":{"tags":["transactional"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"softBounceThreshold":{"type":"integer","minimum":1,"maximum":20},"softBounceWindowDays":{"type":"integer","minimum":1,"maximum":365},"unsubscribeMailbox":{"nullable":true,"type":"string","maxLength":320,"format":"email","pattern":"^(?:[A-Za-z0-9_'+\\-]+\\.)*[A-Za-z0-9_'+\\-]*[A-Za-z0-9_+-]@(?:[A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$"},"transactionalReservePct":{"type":"integer","minimum":0,"maximum":90},"contentBlockScore":{"nullable":true,"type":"number","minimum":1,"maximum":20},"messageRatePerSec":{"nullable":true,"type":"integer","minimum":1,"maximum":1000},"windowMax":{"nullable":true,"type":"integer","minimum":1,"maximum":10000000},"windowSeconds":{"nullable":true,"type":"integer","minimum":1,"maximum":86400},"individualTracking":{"type":"boolean"},"maxRetries":{"nullable":true,"type":"integer","minimum":0,"maximum":10},"retryDelaySeconds":{"nullable":true,"type":"integer","minimum":1,"maximum":3600}}}}}},"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetV1DeliverySettingsResponse"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"putV1DeliverySettings"}},"/v1/messages/{id}/resend":{"post":{"summary":"Resend a stored transactional message under a new idempotency key derived from the original; consent and suppression run again","tags":["transactional"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"idempotencyKey":{"type":"string","minLength":1,"maxLength":100}}}}}},"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"202":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PostV1MessagesSendResponse"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"postV1MessagesByIdResend"}},"/v1/send-options/{sourceKind}/{sourceId}":{"get":{"summary":"Attachments and custom headers applied to every send of a campaign, journey or sequence","tags":["transactional"],"parameters":[{"schema":{"type":"string","enum":["campaign","workflow","sequence"]},"in":"path","name":"sourceKind","required":true},{"schema":{"type":"string","minLength":1,"maxLength":128},"in":"path","name":"sourceId","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetV1SendOptionsBySourceKindBySourceIdResponse"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1SendOptionsBySourceKindBySourceId"},"put":{"summary":"Replace the attachments (base64, stored in object storage) and allowlisted headers of a source; reserved headers are rejected","tags":["transactional"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"attachments":{"default":[],"maxItems":10,"type":"array","items":{"$ref":"#/components/schemas/AttachmentsItem"}},"headers":{"default":{},"type":"object","additionalProperties":{"type":"string","maxLength":998,"pattern":"^[^\\r\\n]*$"}},"cc":{"$ref":"#/components/schemas/Cc2"},"bcc":{"$ref":"#/components/schemas/Cc2"},"profileFileAttrs":{"default":[],"maxItems":5,"type":"array","items":{"type":"string","pattern":"^[A-Za-z][A-Za-z0-9_]{0,60}$"}}}}}}},"parameters":[{"schema":{"type":"string","enum":["campaign","workflow","sequence"]},"in":"path","name":"sourceKind","required":true},{"schema":{"type":"string","minLength":1,"maxLength":128},"in":"path","name":"sourceId","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetV1SendOptionsBySourceKindBySourceIdResponse"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"putV1SendOptionsBySourceKindBySourceId"},"delete":{"tags":["transactional"],"parameters":[{"schema":{"type":"string","enum":["campaign","workflow","sequence"]},"in":"path","name":"sourceKind","required":true},{"schema":{"type":"string","minLength":1,"maxLength":128},"in":"path","name":"sourceId","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"ok":{"type":"boolean","enum":[true]}},"required":["ok"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"deleteV1SendOptionsBySourceKindBySourceId"}},"/v1/send-options/{sourceKind}/{sourceId}/footer-address":{"put":{"summary":"Choose which saved address prints in the email footer of a campaign, journey or sequence (null = workspace address); attachments and headers are untouched","tags":["transactional"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"postalAddressId":{"nullable":true,"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},"required":["postalAddressId"]}}}},"parameters":[{"schema":{"type":"string","enum":["campaign","workflow","sequence"]},"in":"path","name":"sourceKind","required":true},{"schema":{"type":"string","minLength":1,"maxLength":128},"in":"path","name":"sourceId","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetV1SendOptionsBySourceKindBySourceIdResponse"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"putV1SendOptionsBySourceKindBySourceIdFooterAddress"}},"/v1/send-options/{sourceKind}/{sourceId}/to-name":{"put":{"summary":"Set the recipient display-name template for the To header of a campaign, journey or sequence (for example {{ profile.firstName }}; null clears it)","tags":["transactional"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"toName":{"nullable":true,"type":"string","maxLength":200}},"required":["toName"]}}}},"parameters":[{"schema":{"type":"string","enum":["campaign","workflow","sequence"]},"in":"path","name":"sourceKind","required":true},{"schema":{"type":"string","minLength":1,"maxLength":128},"in":"path","name":"sourceId","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetV1SendOptionsBySourceKindBySourceIdResponse"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"putV1SendOptionsBySourceKindBySourceIdToName"}},"/webhooks/bounce/{workspaceId}/{connectionId}/generic":{"post":{"summary":"Generic bounce intake (documented JSON, HMAC-signed with the connection webhook secret): bounces, complaints, deliveries","tags":["webhooks"],"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"workspaceId","required":true},{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"connectionId","required":true}],"security":[],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PostWebhooksBounceByWorkspaceIdByConnectionIdGenericResponse"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"postWebhooksBounceByWorkspaceIdByConnectionIdGeneric"}},"/webhooks/bounce/{workspaceId}/{connectionId}/azure":{"post":{"summary":"Azure Communication Services email delivery reports via Event Grid webhook; send header x-hermetica-token = connection webhook secret. Answers the Event Grid validation handshake","tags":["webhooks"],"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"workspaceId","required":true},{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"connectionId","required":true}],"security":[],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PostWebhooksBounceByWorkspaceIdByConnectionIdGenericResponse"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"postWebhooksBounceByWorkspaceIdByConnectionIdAzure"}},"/webhooks/bounce/{workspaceId}/{connectionId}/lettermint":{"post":{"summary":"Lettermint webhook (hard/soft bounce, spam complaint, delivered); X-Lettermint-Signature t=<unix>,v1=HMAC-SHA256 of \"<t>.<body>\" with the connection webhook secret","tags":["webhooks"],"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"workspaceId","required":true},{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"connectionId","required":true}],"security":[],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PostWebhooksBounceByWorkspaceIdByConnectionIdGenericResponse"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"postWebhooksBounceByWorkspaceIdByConnectionIdLettermint"}},"/webhooks/bounce/{workspaceId}/{connectionId}/forwardemail":{"post":{"summary":"Forward Email bounce webhook; X-Webhook-Signature = HMAC-SHA256 of the body with the connection webhook secret as the verification key","tags":["webhooks"],"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"workspaceId","required":true},{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"connectionId","required":true}],"security":[],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PostWebhooksBounceByWorkspaceIdByConnectionIdGenericResponse"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"postWebhooksBounceByWorkspaceIdByConnectionIdForwardemail"}},"/webhooks/bounce/{workspaceId}/{connectionId}/sparkpost":{"post":{"summary":"SparkPost events receiver; authenticate with the X-MessageSystems-Webhook-Token header (or basic auth) = connection webhook secret","tags":["webhooks"],"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"workspaceId","required":true},{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"connectionId","required":true}],"security":[],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PostWebhooksBounceByWorkspaceIdByConnectionIdGenericResponse"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"postWebhooksBounceByWorkspaceIdByConnectionIdSparkpost"}},"/webhooks/{workspaceId}/{connectionId}":{"post":{"summary":"Provider webhook receiver: verify signature, store raw events (deduped), process asynchronously","tags":["webhooks"],"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"workspaceId","required":true},{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"connectionId","required":true}],"security":[],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"anyOf":[{"type":"object","properties":{"ok":{"type":"boolean","enum":[true]},"received":{"type":"number"},"duplicates":{"type":"number"}},"required":["ok","received","duplicates"],"additionalProperties":false},{"type":"string"}]}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"postWebhooksByWorkspaceIdByConnectionId"},"get":{"summary":"WhatsApp (Meta) webhook verification handshake","tags":["webhooks"],"parameters":[{"schema":"object","in":"query","name":"type"},{"schema":{"type":"string"},"in":"query","name":"additionalProperties"},{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"workspaceId","required":true},{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"connectionId","required":true}],"security":[],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"string"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getWebhooksByWorkspaceIdByConnectionId"}},"/t/c/{token}":{"get":{"summary":"Click redirect (records a click event)","tags":["tracking"],"parameters":[{"schema":{"type":"string","minLength":10,"maxLength":600},"in":"path","name":"token","required":true}],"security":[],"responses":{"302":{"description":"Default Response","content":{"application/json":{"schema":{"type":"string"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getTCByToken"}},"/t/o/{*}":{"get":{"summary":"Open-tracking pixel (1x1 gif); always answers with the image","tags":["tracking"],"parameters":[{"schema":{"type":"string","minLength":10,"maxLength":600},"in":"path","name":"*","required":true}],"security":[],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getTOWildcard"}},"/u/{*}":{"get":{"summary":"Unsubscribe confirmation page (does not change state)","tags":["unsubscribe"],"parameters":[{"schema":{"type":"string","minLength":10,"maxLength":600},"in":"path","name":"*","required":true}],"security":[],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"string"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getUWildcard"},"post":{"summary":"Unsubscribe (RFC 8058 one-click); idempotent","tags":["unsubscribe"],"parameters":[{"schema":{"type":"string","minLength":10,"maxLength":600},"in":"path","name":"*","required":true}],"security":[],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"string"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"postUWildcard"}},"/p/{*}":{"get":{"summary":"Hosted preference page (channels, topics, frequency, unsubscribe all)","tags":["unsubscribe"],"parameters":[{"schema":{"type":"string","minLength":10,"maxLength":600},"in":"path","name":"*","required":true}],"security":[],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"string"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getPWildcard"},"post":{"summary":"Save preferences, or unsubscribe from everything","tags":["unsubscribe"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","additionalProperties":{}}}}},"parameters":[{"schema":{"type":"string","minLength":10,"maxLength":600},"in":"path","name":"*","required":true}],"security":[],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"string"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"postPWildcard"}},"/p/ec/{*}":{"get":{"summary":"Confirm a new email address (page only; does not change state)","tags":["unsubscribe"],"parameters":[{"schema":{"type":"string","minLength":10,"maxLength":1000},"in":"path","name":"*","required":true}],"security":[],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"string"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getPEcWildcard"},"post":{"summary":"Confirm a new email address; idempotent","tags":["unsubscribe"],"parameters":[{"schema":{"type":"string","minLength":10,"maxLength":1000},"in":"path","name":"*","required":true}],"security":[],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"string"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"postPEcWildcard"}},"/p/t/{*}":{"get":{"summary":"Remove-a-tag confirmation page (does not change state)","tags":["unsubscribe"],"parameters":[{"schema":{"type":"string","minLength":10,"maxLength":1000},"in":"path","name":"*","required":true}],"security":[],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"string"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getPTWildcard"},"post":{"summary":"Remove the tag from the contact the link was sent to; idempotent","tags":["unsubscribe"],"parameters":[{"schema":{"type":"string","minLength":10,"maxLength":1000},"in":"path","name":"*","required":true}],"security":[],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"string"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"postPTWildcard"}},"/v1/profiles/duplicates":{"get":{"summary":"Suggested duplicate groups (Gmail aliases, same name and city). Suggestions only: merge through POST /v1/profiles/:id/merge.","tags":["imports"],"parameters":[{"schema":{"default":50,"type":"integer","minimum":1,"maximum":100},"in":"query","name":"limit","required":false}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"items":{"type":"array","items":{"type":"object","properties":{"rule":{"type":"string","enum":["email_alias","same_name_city"]},"confidence":{"type":"string","enum":["high","medium"]},"suggestedSurvivorId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"profiles":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"email":{"nullable":true,"type":"string"},"phone":{"nullable":true,"type":"string"},"name":{"type":"string"},"city":{"nullable":true,"type":"string"},"createdAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"}},"required":["id","email","phone","name","city","createdAt"],"additionalProperties":false}}},"required":["rule","confidence","suggestedSurvivorId","profiles"],"additionalProperties":false}}},"required":["items"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1ProfilesDuplicates"}},"/v1/import-mapping-templates":{"get":{"tags":["imports"],"parameters":[{"schema":{"type":"integer","minimum":1,"maximum":200},"in":"query","name":"limit","required":false,"description":"Page size; omitted returns the whole list"},{"schema":{"type":"string","pattern":"^\\d{1,9}$"},"in":"query","name":"cursor","required":false,"description":"Opaque: the `nextCursor` of the previous page"}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"items":{"type":"array","items":{"$ref":"#/components/schemas/ItemsItem52"}},"nextCursor":{"nullable":true,"type":"string"}},"required":["items","nextCursor"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1ImportMappingTemplates"},"post":{"summary":"Save (or replace, by name) a column mapping for reuse in later imports","tags":["imports"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":100},"mapping":{"$ref":"#/components/schemas/Mapping"}},"required":["name","mapping"]}}}},"responses":{"201":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ItemsItem52"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"postV1ImportMappingTemplates"}},"/v1/import-mapping-templates/{id}":{"delete":{"tags":["imports"],"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"ok":{"type":"boolean","enum":[true]}},"required":["ok"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"deleteV1ImportMappingTemplatesById"}},"/v1/import-schedules":{"get":{"tags":["imports"],"parameters":[{"schema":{"type":"integer","minimum":1,"maximum":200},"in":"query","name":"limit","required":false,"description":"Page size; omitted returns the whole list"},{"schema":{"type":"string","pattern":"^\\d{1,9}$"},"in":"query","name":"cursor","required":false,"description":"Opaque: the `nextCursor` of the previous page"}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"items":{"type":"array","items":{"$ref":"#/components/schemas/ItemsItem53"}},"nextCursor":{"nullable":true,"type":"string"}},"required":["items","nextCursor"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1ImportSchedules"},"post":{"summary":"Import a CSV from an https URL daily or weekly","tags":["imports"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":100},"url":{"type":"string","maxLength":2000,"format":"uri"},"frequency":{"type":"string","enum":["daily","weekly"]},"meta":{"type":"object","properties":{"mapping":{"$ref":"#/components/schemas/Mapping"},"listId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"tags":{"default":[],"maxItems":20,"type":"array","items":{"type":"string","minLength":1,"maxLength":64}},"consentAssertion":{"$ref":"#/components/schemas/ConsentAssertion"},"verifyEmail":{"default":false,"type":"boolean"},"defaultCountry":{"type":"string","minLength":2,"maxLength":2},"delimiter":{"type":"string","enum":[",",";","\t","|"]},"listIds":{"$ref":"#/components/schemas/ListIds4"},"updateExisting":{"default":true,"type":"boolean"},"topicId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},"required":["mapping"]}},"required":["name","url","frequency","meta"]}}}},"responses":{"201":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ItemsItem53"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"postV1ImportSchedules"}},"/v1/import-schedules/{id}":{"patch":{"tags":["imports"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"enabled":{"type":"boolean"}},"required":["enabled"]}}}},"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ItemsItem53"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"patchV1ImportSchedulesById"},"delete":{"tags":["imports"],"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"ok":{"type":"boolean","enum":[true]}},"required":["ok"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"deleteV1ImportSchedulesById"}},"/v1/import-schedules/{id}/run":{"post":{"tags":["imports"],"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"202":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"queued":{"type":"boolean","enum":[true]}},"required":["queued"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"postV1ImportSchedulesByIdRun"}},"/v1/events/backfill":{"post":{"summary":"Upload a CSV of historic events (event, occurred_at, email|phone|external_id, value?, currency?, properties?); progress via GET /v1/profiles/bulk/:id","tags":["imports"],"responses":{"202":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ItemsItem14"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"postV1EventsBackfill"}},"/v1/analytics/messages":{"get":{"tags":["analytics"],"parameters":[{"schema":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}(?:[T ]\\d{2}:\\d{2}(?::\\d{2}(?:\\.\\d+)?)?(?:Z|[+-]\\d{2}:?\\d{2})?)?$","format":"date"},"in":"query","name":"from","required":true},{"schema":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}(?:[T ]\\d{2}:\\d{2}(?::\\d{2}(?:\\.\\d+)?)?(?:Z|[+-]\\d{2}:?\\d{2})?)?$","format":"date"},"in":"query","name":"to","required":true},{"schema":{"default":"day","type":"string","enum":["day","channel","source","variant"]},"in":"query","name":"groupBy","required":false},{"schema":{"type":"string","minLength":1,"maxLength":64},"in":"query","name":"sourceKind","required":false},{"schema":{"type":"string","minLength":1,"maxLength":128},"in":"query","name":"sourceId","required":false},{"schema":{"type":"string","enum":["email","sms","whatsapp","push","postcard"]},"in":"query","name":"channel","required":false},{"schema":{"type":"string","enum":["true","false"]},"in":"query","name":"includeMachineOpens","required":false}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"groupBy":{"type":"string"},"series":{"type":"array","items":{"type":"object","properties":{"key":{"type":"string"},"counts":{"$ref":"#/components/schemas/Counts"}},"required":["key","counts"],"additionalProperties":false}},"totals":{"$ref":"#/components/schemas/Counts"},"availability":{"$ref":"#/components/schemas/Availability"}},"required":["groupBy","series","totals","availability"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1AnalyticsMessages"}},"/v1/analytics/sources/{kind}/{id}/summary":{"get":{"tags":["analytics"],"parameters":[{"schema":{"type":"string","enum":["true","false"]},"in":"query","name":"includeMachineOpens","required":false},{"schema":{"type":"string","enum":["campaign","workflow","sequence","api","in_app"]},"in":"path","name":"kind","required":true},{"schema":{"type":"string","minLength":1,"maxLength":128},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetV1AnalyticsSourcesByKindByIdSummaryResponse"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1AnalyticsSourcesByKindByIdSummary"}},"/v1/analytics/predictions/status":{"get":{"summary":"Whether the workspace has enough order history for predictive analytics, and how many profiles are scored","tags":["analytics"],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"model":{"type":"string"},"orderEvent":{"type":"string"},"eligible":{"type":"boolean"},"reason":{"nullable":true,"type":"string"},"repeatCustomers":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"spanDays":{"type":"number"},"minRepeatCustomers":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"minSpanDays":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"predictedProfiles":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"lastComputedAt":{"nullable":true,"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"sufficiency":{"type":"string","enum":["none","prior_only","fitted"]},"fit":{"nullable":true,"type":"object","properties":{"version":{"type":"string"},"fittedAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"customers":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"repeatBuyers":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"priorUsed":{"type":"string"},"priorWeight":{"type":"number"},"networkCohort":{"nullable":true,"type":"string"},"params":{"type":"object","properties":{"r":{"type":"number"},"alpha":{"type":"number"},"a":{"type":"number"},"b":{"type":"number"}},"required":["r","alpha","a","b"],"additionalProperties":false},"spendParams":{"type":"object","properties":{"p":{"type":"number"},"q":{"type":"number"},"v":{"type":"number"}},"required":["p","q","v"],"additionalProperties":false},"holdout":{"nullable":true,"type":"object","properties":{"holdoutWeeks":{"type":"number"},"customers":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"mae":{"type":"number"},"baselineMae":{"type":"number"},"customerMae":{"type":"number"},"baselineCustomerMae":{"type":"number"},"priorMae":{"type":"number"},"totalPredicted":{"type":"number"},"totalActual":{"type":"number"},"beatsBaseline":{"type":"boolean"},"calibration":{"type":"array","items":{"type":"object","properties":{"bucket":{"type":"string"},"customers":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"predicted":{"type":"number"},"actual":{"type":"number"},"baseline":{"type":"number"}},"required":["bucket","customers","predicted","actual","baseline"],"additionalProperties":false}}},"required":["holdoutWeeks","customers","mae","baselineMae","customerMae","baselineCustomerMae","priorMae","totalPredicted","totalActual","beatsBaseline","calibration"],"additionalProperties":false}},"required":["version","fittedAt","customers","repeatBuyers","priorUsed","priorWeight","networkCohort","params","spendParams","holdout"],"additionalProperties":false},"lastAttempt":{"nullable":true,"type":"object","properties":{"fittedAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"promoted":{"type":"boolean"},"note":{"type":"string"}},"required":["fittedAt","promoted","note"],"additionalProperties":false}},"required":["model","orderEvent","eligible","reason","repeatCustomers","spanDays","minRepeatCustomers","minSpanDays","predictedProfiles","lastComputedAt","sufficiency","fit","lastAttempt"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1AnalyticsPredictionsStatus"}},"/v1/analytics/predictions/run":{"post":{"summary":"Refit the BG/NBD + Gamma-Gamma model (kept only if it beats the naive baseline on a holdout) and rescore every customer now; scores also refresh nightly","tags":["analytics"],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"ran":{"type":"boolean"},"profiles":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"reason":{"nullable":true,"type":"string"}},"required":["ran","profiles","reason"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"postV1AnalyticsPredictionsRun"}},"/v1/profiles/{id}/prediction":{"get":{"tags":["analytics"],"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"profileId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"model":{"type":"string"},"orderCount":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"avgOrderMinor":{"type":"number"},"avgIntervalDays":{"type":"number"},"historicClvMinor":{"type":"number"},"predictedClvMinor":{"type":"number"},"expectedNextOrderAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"churnRisk":{"type":"number"},"why":{"type":"string"},"computedAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"pAlive":{"nullable":true,"type":"number"},"expectedOrders":{"nullable":true,"type":"number"}},"required":["profileId","model","orderCount","avgOrderMinor","avgIntervalDays","historicClvMinor","predictedClvMinor","expectedNextOrderAt","churnRisk","why","computedAt"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1ProfilesByIdPrediction"}},"/v1/profiles/{id}/predicted-gender":{"get":{"summary":"Gender inferred from the first name (likely_female, likely_male or uncertain); an inference, not a stored fact","tags":["analytics"],"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"gender":{"type":"string","enum":["likely_female","likely_male","uncertain"]},"confidence":{"type":"number"},"computedAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"}},"required":["gender","confidence","computedAt"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1ProfilesByIdPredictedGender"}},"/v1/profiles/{id}/recommendations":{"get":{"summary":"Recommended products for this profile (item-to-item co-purchase, recency-weighted; popular items when there is no history)","tags":["analytics"],"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"profileId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"computedAt":{"nullable":true,"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"items":{"type":"array","items":{"type":"object","properties":{"productId":{"type":"string"},"title":{"nullable":true,"type":"string"},"score":{"type":"number"},"rank":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"basis":{"type":"string","enum":["co_purchase","popular"]}},"required":["productId","title","score","rank","basis"],"additionalProperties":false}}},"required":["profileId","computedAt","items"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1ProfilesByIdRecommendations"}},"/v1/analytics/funnels":{"post":{"summary":"Ordered event funnel: profiles reaching each step within a window of step 1","tags":["analytics"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"steps":{"minItems":2,"maxItems":6,"type":"array","items":{"type":"string","minLength":1,"maxLength":128}},"from":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}(?:[T ]\\d{2}:\\d{2}(?::\\d{2}(?:\\.\\d+)?)?(?:Z|[+-]\\d{2}:?\\d{2})?)?$","format":"date"},"to":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}(?:[T ]\\d{2}:\\d{2}(?::\\d{2}(?:\\.\\d+)?)?(?:Z|[+-]\\d{2}:?\\d{2})?)?$","format":"date"},"windowDays":{"default":30,"type":"integer","minimum":1,"maximum":365}},"required":["steps","from","to"]}}}},"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"steps":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string"},"profiles":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"conversionFromPrevious":{"nullable":true,"type":"number"},"conversionFromFirst":{"nullable":true,"type":"number"}},"required":["name","profiles","conversionFromPrevious","conversionFromFirst"],"additionalProperties":false}}},"required":["steps"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"postV1AnalyticsFunnels"}},"/v1/analytics/cohorts":{"post":{"summary":"Weekly retention by first-event cohort","tags":["analytics"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"anchorEvent":{"type":"string","minLength":1,"maxLength":128},"returnEvent":{"type":"string","minLength":1,"maxLength":128},"from":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}(?:[T ]\\d{2}:\\d{2}(?::\\d{2}(?:\\.\\d+)?)?(?:Z|[+-]\\d{2}:?\\d{2})?)?$","format":"date"},"to":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}(?:[T ]\\d{2}:\\d{2}(?::\\d{2}(?:\\.\\d+)?)?(?:Z|[+-]\\d{2}:?\\d{2})?)?$","format":"date"},"weeks":{"default":8,"type":"integer","minimum":1,"maximum":12}},"required":["anchorEvent","returnEvent","from","to"]}}}},"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"weeks":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"cohorts":{"type":"array","items":{"type":"object","properties":{"cohort":{"type":"string"},"size":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"retained":{"type":"array","items":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}}},"required":["cohort","size","retained"],"additionalProperties":false}}},"required":["weeks","cohorts"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"postV1AnalyticsCohorts"}},"/v1/campaigns":{"get":{"tags":["campaigns"],"parameters":[{"schema":{"default":50,"type":"integer","minimum":1,"maximum":200},"in":"query","name":"limit","required":false},{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"query","name":"cursor","required":false},{"schema":{"type":"string","enum":["draft","scheduled","sending","paused","completed","cancelled","failed"]},"in":"query","name":"status","required":false},{"schema":{"type":"string","maxLength":200},"in":"query","name":"q","required":false},{"schema":{"type":"string","enum":["email","sms","whatsapp","push","postcard"]},"in":"query","name":"channel","required":false},{"schema":{"type":"string","enum":["marketing","prospecting","transactional","operational"]},"in":"query","name":"purpose","required":false},{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"query","name":"folderId","required":false},{"schema":{"type":"string","maxLength":80},"in":"query","name":"tag","required":false},{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"query","name":"listId","required":false},{"schema":{"type":"string","format":"date-time"},"in":"query","name":"from","required":false},{"schema":{"type":"string","format":"date-time"},"in":"query","name":"to","required":false},{"schema":{"type":"string","format":"date-time"},"in":"query","name":"scheduledFrom","required":false},{"schema":{"type":"string","format":"date-time"},"in":"query","name":"scheduledTo","required":false},{"schema":{"type":"string","format":"date-time"},"in":"query","name":"updatedFrom","required":false},{"schema":{"type":"string","format":"date-time"},"in":"query","name":"updatedTo","required":false},{"schema":{"type":"string","format":"date-time"},"in":"query","name":"sentFrom","required":false},{"schema":{"type":"string","format":"date-time"},"in":"query","name":"sentTo","required":false},{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"query","name":"profileId","required":false},{"schema":{"type":"string","enum":["true","false"]},"in":"query","name":"archived","required":false},{"schema":{"type":"string","enum":["true","false"]},"in":"query","name":"deleted","required":false},{"schema":{"default":"created","type":"string","enum":["created","updated","name","scheduled"]},"in":"query","name":"sort","required":false},{"schema":{"default":"desc","type":"string","enum":["asc","desc"]},"in":"query","name":"order","required":false}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"items":{"type":"array","items":{"$ref":"#/components/schemas/ItemsItem54"}},"nextCursor":{"nullable":true,"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},"required":["items","nextCursor"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1Campaigns"},"post":{"tags":["campaigns"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":200},"channel":{"type":"string","enum":["email","sms","whatsapp","push","postcard"]},"purpose":{"default":"marketing","type":"string","enum":["marketing","prospecting"]},"audience":{"default":{"includeSegmentIds":[],"includeListIds":[],"excludeSegmentIds":[],"excludeListIds":[]},"type":"object","properties":{"includeSegmentIds":{"$ref":"#/components/schemas/IncludeSegmentIds"},"includeListIds":{"$ref":"#/components/schemas/IncludeSegmentIds"},"excludeSegmentIds":{"$ref":"#/components/schemas/IncludeSegmentIds"},"excludeListIds":{"$ref":"#/components/schemas/IncludeSegmentIds"},"onePerCompany":{"type":"boolean"},"everyone":{"type":"boolean"},"includeTags":{"maxItems":50,"type":"array","items":{"type":"string","minLength":1,"maxLength":64}},"excludeTags":{"maxItems":50,"type":"array","items":{"type":"string","minLength":1,"maxLength":64}}}},"templateId":{"nullable":true,"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"route":{"default":{},"type":"object","properties":{"connectionId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"poolId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"routePolicyId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}},"schedule":{"$ref":"#/components/schemas/Schedule2"},"utm":{"nullable":true,"type":"object","additionalProperties":{"type":"string"}},"topicId":{"nullable":true,"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"tracking":{"nullable":true,"type":"object","properties":{"opens":{"type":"boolean"},"clicks":{"type":"boolean"}}},"autoPause":{"$ref":"#/components/schemas/AutoPause2"},"slug":{"nullable":true,"type":"string","minLength":1,"maxLength":80,"pattern":"^[a-z0-9]+(?:-[a-z0-9]+)*$"},"archiveProfile":{"nullable":true,"type":"object","additionalProperties":{"type":"string","maxLength":200}},"inArchive":{"type":"boolean"},"variants":{"default":[],"maxItems":8,"type":"array","items":{"$ref":"#/components/schemas/VariantsItem2"}},"abTest":{"$ref":"#/components/schemas/AbTest2"},"reviewDrafts":{"type":"boolean"},"reviewDeadline":{"$ref":"#/components/schemas/ReviewDeadline2"}},"required":["name","channel"]}}}},"responses":{"201":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ItemsItem54"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"postV1Campaigns"}},"/v1/campaigns/{id}":{"get":{"tags":["campaigns"],"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ItemsItem54"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1CampaignsById"},"patch":{"tags":["campaigns"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":200},"purpose":{"type":"string","enum":["marketing","prospecting"]},"audience":{"$ref":"#/components/schemas/Audience2"},"templateId":{"nullable":true,"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"route":{"$ref":"#/components/schemas/Route"},"schedule":{"$ref":"#/components/schemas/Schedule2"},"utm":{"nullable":true,"type":"object","additionalProperties":{"type":"string"}},"topicId":{"nullable":true,"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"tracking":{"nullable":true,"type":"object","properties":{"opens":{"type":"boolean"},"clicks":{"type":"boolean"}}},"autoPause":{"$ref":"#/components/schemas/AutoPause2"},"slug":{"nullable":true,"type":"string","minLength":1,"maxLength":80,"pattern":"^[a-z0-9]+(?:-[a-z0-9]+)*$"},"archiveProfile":{"nullable":true,"type":"object","additionalProperties":{"type":"string","maxLength":200}},"inArchive":{"type":"boolean"},"variants":{"maxItems":8,"type":"array","items":{"$ref":"#/components/schemas/VariantsItem2"}},"abTest":{"$ref":"#/components/schemas/AbTest2"},"reviewDrafts":{"type":"boolean"},"reviewDeadline":{"$ref":"#/components/schemas/ReviewDeadline2"}}}}}},"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ItemsItem54"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"patchV1CampaignsById"},"delete":{"tags":["campaigns"],"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"ok":{"type":"boolean","enum":[true]}},"required":["ok"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"deleteV1CampaignsById"}},"/v1/campaigns/{id}/permanent":{"delete":{"tags":["campaigns"],"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"outcome":{"type":"string","enum":["deleted","content_erased"]}},"required":["outcome"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"deleteV1CampaignsByIdPermanent"}},"/v1/campaigns/bulk-delete":{"post":{"summary":"Soft-delete many drafts; non-drafts are skipped with a reason","tags":["campaigns"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PostV1CampaignsBulkDeleteBody"}}}},"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"deleted":{"$ref":"#/components/schemas/Conflicts"},"skipped":{"$ref":"#/components/schemas/Failed"}},"required":["deleted","skipped"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"postV1CampaignsBulkDelete"}},"/v1/campaigns/{id}/schedule":{"post":{"tags":["campaigns"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"schedule":{"type":"object","properties":{"at":{"type":"string","format":"date-time"},"tz":{"default":"UTC","type":"string","minLength":1,"maxLength":64},"recipientLocal":{"default":false,"type":"boolean"},"throttlePerHour":{"type":"integer","minimum":1,"maximum":1000000},"window":{"type":"object","properties":{"startMin":{"type":"integer","minimum":0,"maximum":1440},"endMin":{"type":"integer","minimum":0,"maximum":1440}},"required":["startMin","endMin"]},"sendTime":{"default":"fixed","type":"string","enum":["fixed","optimized"]},"pastZones":{"type":"string","enum":["immediately","tomorrow"]},"batchSize":{"type":"integer","minimum":10,"maximum":1000}},"required":["at"]}}}}}},"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ItemsItem54"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"postV1CampaignsByIdSchedule"}},"/v1/campaigns/{id}/send-now":{"post":{"tags":["campaigns"],"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ItemsItem54"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"postV1CampaignsByIdSendNow"}},"/v1/campaigns/{id}/approval/submit":{"post":{"tags":["campaigns"],"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ItemsItem54"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"postV1CampaignsByIdApprovalSubmit"}},"/v1/campaigns/{id}/approval/approve":{"post":{"summary":"Approve a pending campaign; the submitter cannot approve their own (needs campaigns:approve)","tags":["campaigns"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"comment":{"nullable":true,"type":"string","maxLength":2000}}}}}},"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ItemsItem54"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"postV1CampaignsByIdApprovalApprove"}},"/v1/campaigns/{id}/approval/reject":{"post":{"summary":"Send a pending campaign back with a comment (needs campaigns:approve)","tags":["campaigns"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"comment":{"nullable":true,"type":"string","maxLength":2000}}}}}},"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ItemsItem54"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"postV1CampaignsByIdApprovalReject"}},"/v1/campaigns/{id}/unschedule":{"post":{"tags":["campaigns"],"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ItemsItem54"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"postV1CampaignsByIdUnschedule"}},"/v1/campaigns/{id}/pause":{"post":{"tags":["campaigns"],"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ItemsItem54"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"postV1CampaignsByIdPause"}},"/v1/campaigns/{id}/resume":{"post":{"tags":["campaigns"],"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ItemsItem54"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"postV1CampaignsByIdResume"}},"/v1/campaigns/{id}/cancel":{"post":{"tags":["campaigns"],"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ItemsItem54"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"postV1CampaignsByIdCancel"}},"/v1/campaigns/{id}/restore":{"post":{"tags":["campaigns"],"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ItemsItem54"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"postV1CampaignsByIdRestore"}},"/v1/campaigns/{id}/clone":{"post":{"tags":["campaigns"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"nullable":true,"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":200}}}}}},"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"201":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ItemsItem54"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"postV1CampaignsByIdClone"}},"/v1/campaigns/{id}/checklist":{"get":{"tags":["campaigns"],"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"items":{"type":"array","items":{"type":"object","properties":{"key":{"type":"string"},"severity":{"type":"string","enum":["error","warning"]},"ok":{"type":"boolean"},"message":{"type":"string"}},"required":["key","severity","ok","message"],"additionalProperties":false}},"canSchedule":{"type":"boolean"}},"required":["items","canSchedule"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1CampaignsByIdChecklist"}},"/v1/campaigns/{id}/test-send":{"post":{"tags":["campaigns"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"seedListId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"emails":{"$ref":"#/components/schemas/Emails3"},"phones":{"default":[],"maxItems":20,"type":"array","items":{"type":"string","minLength":5,"maxLength":32}},"profileId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"pushToken":{"$ref":"#/components/schemas/PushToken"}}}}}},"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PostV1TemplatesByIdTestSendResponse"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"postV1CampaignsByIdTestSend"}},"/v1/campaigns/{id}/report":{"get":{"tags":["campaigns"],"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"campaignId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"recipients":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"byStatus":{"type":"object","additionalProperties":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"analytics":{"$ref":"#/components/schemas/GetV1AnalyticsSourcesByKindByIdSummaryResponse"}},"required":["campaignId","recipients","byStatus","analytics"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1CampaignsByIdReport"}},"/v1/campaigns/{id}/insights":{"get":{"tags":["campaigns"],"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"timeline":{"type":"array","items":{"type":"object","properties":{"hour":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"opens":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"clicks":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"unsubscribes":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["hour","opens","clicks","unsubscribes"],"additionalProperties":false}},"links":{"$ref":"#/components/schemas/Links"},"domains":{"type":"array","items":{"type":"object","properties":{"group":{"type":"string","enum":["gmail","outlook","yahoo","icloud","other"]},"sent":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"opened":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"clicked":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["group","sent","opened","clicked"],"additionalProperties":false}},"devices":{"type":"array","items":{"type":"object","properties":{"device":{"type":"string","enum":["mobile","desktop","webmail","unknown"]},"opens":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"clicks":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["device","opens","clicks"],"additionalProperties":false}},"machineEvents":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"problems":{"type":"object","properties":{"unsubscribes":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"complaints":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"bounces":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["unsubscribes","complaints","bounces"],"additionalProperties":false},"revenue":{"type":"object","properties":{"orders":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"revenueMinor":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["orders","revenueMinor"],"additionalProperties":false}},"required":["timeline","links","domains","devices","machineEvents","problems","revenue"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1CampaignsByIdInsights"}},"/v1/calendar":{"get":{"tags":["campaigns"],"parameters":[{"schema":{"type":"string","format":"date-time"},"in":"query","name":"from","required":true},{"schema":{"type":"string","format":"date-time"},"in":"query","name":"to","required":true},{"schema":{"type":"integer","minimum":1,"maximum":200},"in":"query","name":"limit","required":false,"description":"Page size; omitted returns the whole list"},{"schema":{"type":"string","pattern":"^\\d{1,9}$"},"in":"query","name":"cursor","required":false,"description":"Opaque: the `nextCursor` of the previous page"}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"items":{"type":"array","items":{"type":"object","properties":{"kind":{"type":"string","enum":["campaign","workflow"]},"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"name":{"type":"string"},"channel":{"nullable":true,"type":"string","enum":["email","sms","whatsapp","push","postcard"]},"status":{"type":"string"},"at":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"endAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"endEstimated":{"type":"boolean"}},"required":["kind","id","name","channel","status","at","endAt","endEstimated"],"additionalProperties":false}},"nextCursor":{"nullable":true,"type":"string"}},"required":["items","nextCursor"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1Calendar"}},"/v1/seed-lists":{"get":{"tags":["campaigns"],"parameters":[{"schema":{"default":50,"type":"integer","minimum":1,"maximum":200},"in":"query","name":"limit","required":false},{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"query","name":"cursor","required":false}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"items":{"type":"array","items":{"$ref":"#/components/schemas/ItemsItem55"}},"nextCursor":{"nullable":true,"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},"required":["items","nextCursor"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1SeedLists"},"post":{"tags":["campaigns"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PostV1SeedListsBody"}}}},"responses":{"201":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ItemsItem55"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"postV1SeedLists"}},"/v1/seed-lists/{id}":{"get":{"tags":["campaigns"],"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ItemsItem55"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1SeedListsById"},"put":{"tags":["campaigns"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PostV1SeedListsBody"}}}},"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ItemsItem55"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"putV1SeedListsById"},"delete":{"tags":["campaigns"],"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"ok":{"type":"boolean","enum":[true]}},"required":["ok"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"deleteV1SeedListsById"}},"/v1/campaigns/{id}/revisions":{"get":{"tags":["campaigns"],"parameters":[{"schema":{"default":50,"type":"integer","minimum":1,"maximum":200},"in":"query","name":"limit","required":false},{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"query","name":"cursor","required":false},{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"items":{"type":"array","items":{"$ref":"#/components/schemas/ItemsItem56"}},"nextCursor":{"nullable":true,"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},"required":["items","nextCursor"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1CampaignsByIdRevisions"}},"/v1/campaigns/{id}/revisions/{revisionId}/restore":{"post":{"tags":["campaigns"],"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true},{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"revisionId","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"ok":{"type":"boolean","enum":[true]}},"required":["ok"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"postV1CampaignsByIdRevisionsByRevisionIdRestore"}},"/v1/campaigns/{id}/revisions/{revisionId}":{"get":{"tags":["campaigns"],"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true},{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"revisionId","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ItemsItem56"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1CampaignsByIdRevisionsByRevisionId"}},"/v1/campaigns/{id}/draft/reset":{"post":{"summary":"Discard the latest edit: restore the newest kept revision (draft only; the current content is kept as a revision, so this can be undone)","tags":["campaigns"],"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"ok":{"type":"boolean","enum":[true]}},"required":["ok"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"postV1CampaignsByIdDraftReset"}},"/v1/campaign-folders/batch":{"post":{"summary":"create | read | update | archive up to 50 campaign folders in one transaction (archive keeps the campaigns, ungrouped)","tags":["campaigns"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"op":{"type":"string","enum":["create"]},"items":{"minItems":1,"maxItems":50,"type":"array","items":{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":120}},"required":["name"]}}},"required":["op","items"]},{"$ref":"#/components/schemas/PostV1CampaignFoldersBatchBodyVariant"},{"type":"object","properties":{"op":{"type":"string","enum":["update"]},"items":{"minItems":1,"maxItems":50,"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"name":{"type":"string","minLength":1,"maxLength":120}},"required":["id","name"]}}},"required":["op","items"]},{"$ref":"#/components/schemas/PostV1CampaignFoldersBatchBodyVariant2"}]}}}},"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"items":{"$ref":"#/components/schemas/Items16"},"archived":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["items","archived"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"postV1CampaignFoldersBatch"}},"/v1/campaign-folders":{"get":{"tags":["campaigns"],"parameters":[{"schema":{"default":50,"type":"integer","minimum":1,"maximum":200},"in":"query","name":"limit","required":false},{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"query","name":"cursor","required":false}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"items":{"$ref":"#/components/schemas/Items16"},"nextCursor":{"nullable":true,"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},"required":["items","nextCursor"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1CampaignFolders"},"post":{"tags":["campaigns"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":120},"owner":{"nullable":true,"type":"string","maxLength":120},"notes":{"nullable":true,"type":"string","maxLength":2000},"utmCampaign":{"nullable":true,"type":"string","maxLength":120},"startsOn":{"nullable":true,"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"},"endsOn":{"nullable":true,"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"}},"required":["name"]}}}},"responses":{"201":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ItemsItem57"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"postV1CampaignFolders"}},"/v1/campaign-folders/{id}":{"get":{"tags":["campaigns"],"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ItemsItem57"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1CampaignFoldersById"},"patch":{"tags":["campaigns"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":120},"owner":{"nullable":true,"type":"string","maxLength":120},"notes":{"nullable":true,"type":"string","maxLength":2000},"utmCampaign":{"nullable":true,"type":"string","maxLength":120},"startsOn":{"nullable":true,"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"},"endsOn":{"nullable":true,"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"}}}}}},"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ItemsItem57"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"patchV1CampaignFoldersById"},"delete":{"tags":["campaigns"],"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"ok":{"type":"boolean","enum":[true]}},"required":["ok"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"deleteV1CampaignFoldersById"}},"/v1/campaigns/{id}/folder":{"put":{"tags":["campaigns"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PutV1CampaignsByIdFolderBody"}}}},"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"folderId":{"nullable":true,"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},"required":["id","folderId"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"putV1CampaignsByIdFolder"}},"/v1/campaigns/{id}/details":{"put":{"summary":"Owner, planned start and end dates and notes for a campaign; allowed at any status","tags":["campaigns"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"ownerId":{"nullable":true,"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"startsOn":{"nullable":true,"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"},"endsOn":{"nullable":true,"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"},"notes":{"nullable":true,"type":"string","maxLength":5000}},"required":["ownerId","startsOn","endsOn","notes"]}}}},"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"ownerId":{"nullable":true,"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"startsOn":{"nullable":true,"type":"string"},"endsOn":{"nullable":true,"type":"string"},"notes":{"nullable":true,"type":"string"}},"required":["id","ownerId","startsOn","endsOn","notes"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"putV1CampaignsByIdDetails"}},"/v1/search/campaigns":{"get":{"tags":["campaigns"],"parameters":[{"schema":{"default":50,"type":"integer","minimum":1,"maximum":200},"in":"query","name":"limit","required":false},{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"query","name":"cursor","required":false},{"schema":{"type":"string","maxLength":20},"in":"query","name":"status","required":false},{"schema":{"type":"string","maxLength":200},"in":"query","name":"q","required":false},{"schema":{"type":"string","enum":["email","sms","whatsapp","push","postcard"]},"in":"query","name":"channel","required":false},{"schema":{"type":"string","enum":["marketing","prospecting","transactional","operational"]},"in":"query","name":"purpose","required":false},{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"query","name":"folderId","required":false},{"schema":{"type":"string","maxLength":80},"in":"query","name":"tag","required":false},{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"query","name":"listId","required":false},{"schema":{"type":"string","format":"date-time"},"in":"query","name":"from","required":false},{"schema":{"type":"string","format":"date-time"},"in":"query","name":"to","required":false},{"schema":{"type":"string","format":"date-time"},"in":"query","name":"scheduledFrom","required":false},{"schema":{"type":"string","format":"date-time"},"in":"query","name":"scheduledTo","required":false},{"schema":{"type":"string","format":"date-time"},"in":"query","name":"updatedFrom","required":false},{"schema":{"type":"string","format":"date-time"},"in":"query","name":"updatedTo","required":false},{"schema":{"type":"string","format":"date-time"},"in":"query","name":"sentFrom","required":false},{"schema":{"type":"string","format":"date-time"},"in":"query","name":"sentTo","required":false},{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"query","name":"profileId","required":false},{"schema":{"type":"string","enum":["true","false"]},"in":"query","name":"archived","required":false},{"schema":{"type":"string","enum":["true","false"]},"in":"query","name":"deleted","required":false},{"schema":{"default":"created","type":"string","enum":["created","updated","name","scheduled"]},"in":"query","name":"sort","required":false},{"schema":{"default":"desc","type":"string","enum":["asc","desc"]},"in":"query","name":"order","required":false}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"items":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"name":{"type":"string"},"channel":{"type":"string","enum":["email","sms","whatsapp","push","postcard"]},"purpose":{"type":"string","enum":["marketing","prospecting","transactional","operational"]},"status":{"type":"string","enum":["draft","scheduled","sending","paused","completed","cancelled","failed"]},"audience":{"$ref":"#/components/schemas/Audience"},"audienceFrozenAt":{"nullable":true,"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"templateId":{"nullable":true,"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"topicId":{"nullable":true,"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"route":{"$ref":"#/components/schemas/Route2"},"schedule":{"$ref":"#/components/schemas/Schedule"},"abTest":{"$ref":"#/components/schemas/AbTest"},"variants":{"$ref":"#/components/schemas/Variants"},"utm":{"nullable":true,"type":"object","additionalProperties":{"type":"string"}},"tracking":{"nullable":true,"type":"object","properties":{"opens":{"type":"boolean"},"clicks":{"type":"boolean"}},"additionalProperties":false},"autoPause":{"$ref":"#/components/schemas/AutoPause"},"slug":{"nullable":true,"type":"string"},"archiveProfile":{"nullable":true,"type":"object","additionalProperties":{"type":"string"}},"inArchive":{"type":"boolean"},"ownerId":{"nullable":true,"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"startsOn":{"nullable":true,"type":"string"},"endsOn":{"nullable":true,"type":"string"},"notes":{"nullable":true,"type":"string"},"approvalStatus":{"type":"string"},"approvedBy":{"nullable":true,"type":"string"},"approvalSubmittedBy":{"nullable":true,"type":"string"},"approvalComment":{"nullable":true,"type":"string"},"startedAt":{"nullable":true,"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"completedAt":{"nullable":true,"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"testSentAt":{"nullable":true,"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"contentErasedAt":{"nullable":true,"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"stats":{"type":"object","additionalProperties":{"type":"number"}},"archivedAt":{"nullable":true,"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"parentCampaignId":{"nullable":true,"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"reviewDrafts":{"type":"boolean"},"reviewDeadline":{"$ref":"#/components/schemas/ReviewDeadline"},"failureReason":{"nullable":true,"type":"string"},"createdAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"updatedAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"folderId":{"nullable":true,"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"tags":{"type":"array","items":{"type":"string"}}},"required":["id","name","channel","purpose","status","audience","audienceFrozenAt","templateId","topicId","route","schedule","abTest","utm","tracking","autoPause","slug","archiveProfile","inArchive","approvalStatus","approvedBy","startedAt","completedAt","testSentAt","stats","createdAt","updatedAt","tags"],"additionalProperties":false}},"nextCursor":{"nullable":true,"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},"required":["items","nextCursor"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1SearchCampaigns"}},"/v1/campaigns/{id}/tags":{"get":{"tags":["campaigns"],"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"tags":{"type":"array","items":{"type":"string"}}},"required":["tags"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1CampaignsByIdTags"},"put":{"tags":["campaigns"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"tags":{"maxItems":50,"type":"array","items":{"type":"string","minLength":1,"maxLength":64}}},"required":["tags"]}}}},"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"tags":{"type":"array","items":{"type":"string"}}},"required":["tags"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"putV1CampaignsByIdTags"}},"/v1/campaigns/{id}/messages":{"get":{"tags":["campaigns"],"parameters":[{"schema":{"type":"integer","minimum":1,"maximum":200},"in":"query","name":"limit","required":false,"description":"Page size; omitted returns the whole list"},{"schema":{"type":"string","pattern":"^\\d{1,9}$"},"in":"query","name":"cursor","required":false,"description":"Opaque: the `nextCursor` of the previous page"},{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"items":{"type":"array","items":{"$ref":"#/components/schemas/ItemsItem58"}},"nextCursor":{"nullable":true,"type":"string"}},"required":["items","nextCursor"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1CampaignsByIdMessages"},"post":{"tags":["campaigns"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"channel":{"type":"string","enum":["email","sms","whatsapp","push","postcard"]},"label":{"nullable":true,"type":"string","maxLength":120},"subject":{"nullable":true,"type":"string","maxLength":998},"previewText":{"nullable":true,"type":"string","maxLength":300},"fromName":{"nullable":true,"type":"string","maxLength":200},"replyTo":{"nullable":true,"type":"string","maxLength":1000},"templateId":{"nullable":true,"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"templateVersionId":{"nullable":true,"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"imageAssetId":{"nullable":true,"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"renderOptions":{"type":"object","additionalProperties":{}},"sendAt":{"nullable":true,"type":"string","format":"date-time"}}}}}},"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"201":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ItemsItem58"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"postV1CampaignsByIdMessages"}},"/v1/campaigns/{id}/messages/{messageId}":{"get":{"tags":["campaigns"],"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true},{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"messageId","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ItemsItem58"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1CampaignsByIdMessagesByMessageId"},"patch":{"tags":["campaigns"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"label":{"nullable":true,"type":"string","maxLength":120},"subject":{"nullable":true,"type":"string","maxLength":998},"previewText":{"nullable":true,"type":"string","maxLength":300},"fromName":{"nullable":true,"type":"string","maxLength":200},"replyTo":{"nullable":true,"type":"string","maxLength":1000},"templateId":{"nullable":true,"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"templateVersionId":{"nullable":true,"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"imageAssetId":{"nullable":true,"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"renderOptions":{"type":"object","additionalProperties":{}},"sendAt":{"nullable":true,"type":"string","format":"date-time"}}}}}},"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true},{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"messageId","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ItemsItem58"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"patchV1CampaignsByIdMessagesByMessageId"},"delete":{"tags":["campaigns"],"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true},{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"messageId","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"ok":{"type":"boolean","enum":[true]}},"required":["ok"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"deleteV1CampaignsByIdMessagesByMessageId"}},"/v1/campaigns/{id}/messages/{messageId}/clone":{"post":{"tags":["campaigns"],"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true},{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"messageId","required":true}],"responses":{"201":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ItemsItem58"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"postV1CampaignsByIdMessagesByMessageIdClone"}},"/v1/campaigns/{id}/content":{"get":{"tags":["campaigns"],"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetV1CampaignsByIdContentResponse"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1CampaignsByIdContent"},"put":{"tags":["campaigns"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PutV1CampaignsByIdContentBody"}}}},"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetV1CampaignsByIdContentResponse"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"putV1CampaignsByIdContent"}},"/v1/campaigns/{id}/recipient-estimations":{"post":{"tags":["campaigns"],"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"202":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PostV1CampaignsByIdRecipientEstimationsResponse"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"postV1CampaignsByIdRecipientEstimations"}},"/v1/campaigns/{id}/recipient-estimations/{jobId}":{"get":{"tags":["campaigns"],"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true},{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"jobId","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PostV1CampaignsByIdRecipientEstimationsResponse"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1CampaignsByIdRecipientEstimationsByJobId"}},"/v1/campaigns/{id}/send-job":{"get":{"tags":["campaigns"],"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"status":{"type":"string"},"startedAt":{"nullable":true,"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"completedAt":{"nullable":true,"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"recipients":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"byStatus":{"type":"object","additionalProperties":{"type":"number"}}},"required":["id","status","startedAt","completedAt","recipients","byStatus"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1CampaignsByIdSendJob"}},"/v1/campaigns/{id}/recipients":{"get":{"tags":["campaigns"],"parameters":[{"schema":{"default":50,"type":"integer","minimum":1,"maximum":200},"in":"query","name":"limit","required":false},{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"query","name":"cursor","required":false},{"schema":{"type":"string","maxLength":40},"in":"query","name":"status","required":false},{"schema":{"type":"string","enum":["opened","clicked","unsubscribed","bounced","complained"]},"in":"query","name":"engaged","required":false},{"schema":{"type":"string","maxLength":200},"in":"query","name":"q","required":false},{"schema":{"type":"string","maxLength":2000},"in":"query","name":"linkUrl","required":false},{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"items":{"type":"array","items":{"type":"object","properties":{"profileId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"destination":{"nullable":true,"type":"string"},"status":{"type":"string"},"sentAt":{"nullable":true,"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"opens":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"clicks":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"unsubscribed":{"type":"boolean"},"bounced":{"type":"boolean"},"complained":{"type":"boolean"},"lastActivityAt":{"nullable":true,"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"}},"required":["profileId","destination","status","sentAt","opens","clicks","unsubscribed","bounced","complained","lastActivityAt"],"additionalProperties":false}},"nextCursor":{"nullable":true,"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},"required":["items","nextCursor"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1CampaignsByIdRecipients"}},"/v1/campaigns/{id}/recipients.csv":{"get":{"tags":["campaigns"],"parameters":[{"schema":{"type":"string","maxLength":40},"in":"query","name":"status","required":false},{"schema":{"type":"string","enum":["opened","clicked","unsubscribed","bounced","complained"]},"in":"query","name":"engaged","required":false},{"schema":{"type":"string","maxLength":200},"in":"query","name":"q","required":false},{"schema":{"type":"string","maxLength":2000},"in":"query","name":"linkUrl","required":false},{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1CampaignsByIdRecipientsCsv"}},"/v1/campaigns/{id}/recipients/{profileId}/activity":{"get":{"tags":["campaigns"],"parameters":[{"schema":{"type":"integer","minimum":1,"maximum":200},"in":"query","name":"limit","required":false,"description":"Page size; omitted returns the whole list"},{"schema":{"type":"string","pattern":"^\\d{1,9}$"},"in":"query","name":"cursor","required":false,"description":"Opaque: the `nextCursor` of the previous page"},{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true},{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"profileId","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"items":{"type":"array","items":{"type":"object","properties":{"kind":{"type":"string"},"url":{"nullable":true,"type":"string"},"at":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"isMachine":{"type":"boolean"}},"required":["kind","url","at","isMachine"],"additionalProperties":false}},"nextCursor":{"nullable":true,"type":"string"}},"required":["items","nextCursor"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1CampaignsByIdRecipientsByProfileIdActivity"}},"/v1/campaigns/{id}/feedback":{"get":{"tags":["campaigns"],"parameters":[{"schema":{"default":50,"type":"integer","minimum":1,"maximum":200},"in":"query","name":"limit","required":false},{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"query","name":"cursor","required":false},{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"items":{"type":"array","items":{"$ref":"#/components/schemas/ItemsItem59"}},"nextCursor":{"nullable":true,"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},"required":["items","nextCursor"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1CampaignsByIdFeedback"},"post":{"tags":["campaigns"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"body":{"type":"string","minLength":1,"maxLength":5000},"parentId":{"nullable":true,"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},"required":["body"]}}}},"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"201":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ItemsItem59"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"postV1CampaignsByIdFeedback"}},"/v1/campaigns/{id}/feedback/{feedbackId}":{"get":{"tags":["campaigns"],"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true},{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"feedbackId","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ItemsItem59"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1CampaignsByIdFeedbackByFeedbackId"},"patch":{"tags":["campaigns"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"body":{"type":"string","minLength":1,"maxLength":5000},"resolved":{"type":"boolean"}}}}}},"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true},{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"feedbackId","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ItemsItem59"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"patchV1CampaignsByIdFeedbackByFeedbackId"},"delete":{"tags":["campaigns"],"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true},{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"feedbackId","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"ok":{"type":"boolean","enum":[true]}},"required":["ok"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"deleteV1CampaignsByIdFeedbackByFeedbackId"}},"/v1/campaigns/{id}/rss":{"get":{"tags":["campaigns"],"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetV1CampaignsByIdRssResponse"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1CampaignsByIdRss"},"put":{"tags":["campaigns"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"feedUrl":{"type":"string","maxLength":2000,"format":"uri"},"everyHours":{"default":24,"type":"integer","minimum":1,"maximum":720},"active":{"default":true,"type":"boolean"}},"required":["feedUrl"]}}}},"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetV1CampaignsByIdRssResponse"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"putV1CampaignsByIdRss"}},"/v1/campaigns/{id}/rss/pause":{"post":{"tags":["campaigns"],"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetV1CampaignsByIdRssResponse"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"postV1CampaignsByIdRssPause"}},"/v1/campaigns/{id}/rss/resume":{"post":{"tags":["campaigns"],"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetV1CampaignsByIdRssResponse"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"postV1CampaignsByIdRssResume"}},"/v1/campaigns/{id}/variants":{"get":{"tags":["campaigns"],"parameters":[{"schema":{"type":"integer","minimum":1,"maximum":200},"in":"query","name":"limit","required":false,"description":"Page size; omitted returns the whole list"},{"schema":{"type":"string","pattern":"^\\d{1,9}$"},"in":"query","name":"cursor","required":false,"description":"Opaque: the `nextCursor` of the previous page"},{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetV1CampaignsByIdVariantsResponse"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1CampaignsByIdVariants"}},"/v1/campaigns/{id}/variants/{key}":{"get":{"tags":["campaigns"],"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true},{"schema":{"type":"string","minLength":1,"maxLength":32},"in":"path","name":"key","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ItemsItem60"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1CampaignsByIdVariantsByKey"},"put":{"tags":["campaigns"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PutV1CampaignsByIdVariantsByKeyBody"}}}},"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true},{"schema":{"type":"string","minLength":1,"maxLength":32},"in":"path","name":"key","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ItemsItem60"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"putV1CampaignsByIdVariantsByKey"},"delete":{"tags":["campaigns"],"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true},{"schema":{"type":"string","minLength":1,"maxLength":32},"in":"path","name":"key","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"ok":{"type":"boolean","enum":[true]}},"required":["ok"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"deleteV1CampaignsByIdVariantsByKey"}},"/v1/campaigns/{id}/send-report":{"post":{"tags":["campaigns"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"emails":{"$ref":"#/components/schemas/Emails3"},"phones":{"default":[],"maxItems":20,"type":"array","items":{"type":"string","minLength":5,"maxLength":32}}}}}}},"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PostV1CampaignsByIdSendReportResponse"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"postV1CampaignsByIdSendReport"}},"/v1/campaigns/{id}/share":{"get":{"tags":["campaigns"],"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"url":{"type":"string"},"webVersionUrl":{"type":"string"},"expiresAt":{"type":"string"}},"required":["url","webVersionUrl","expiresAt"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1CampaignsByIdShare"}},"/v1/reports/{id}/products":{"get":{"tags":["campaigns"],"parameters":[{"schema":{"type":"integer","minimum":1,"maximum":200},"in":"query","name":"limit","required":false,"description":"Page size; omitted returns the whole list"},{"schema":{"type":"string","pattern":"^\\d{1,9}$"},"in":"query","name":"cursor","required":false,"description":"Opaque: the `nextCursor` of the previous page"},{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetV1ReportsByIdProductsResponse"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1ReportsByIdProducts"}},"/v1/lists/{id}/archive-url":{"get":{"tags":["campaigns"],"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"url":{"type":"string"}},"required":["url"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1ListsByIdArchiveUrl"}},"/v1/campaigns/{id}/triggers":{"post":{"tags":["campaigns"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"default":{},"type":"object","additionalProperties":{}},"recipients":{"default":{"ids":[],"emails":[],"perRecipient":[]},"type":"object","properties":{"ids":{"default":[],"maxItems":10000,"type":"array","items":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},"emails":{"$ref":"#/components/schemas/Emails5"},"segmentId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"perRecipient":{"default":[],"maxItems":10000,"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"email":{"type":"string","format":"email","pattern":"^(?:[A-Za-z0-9_'+\\-]+\\.)*[A-Za-z0-9_'+\\-]*[A-Za-z0-9_+-]@(?:[A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$"},"data":{"default":{},"type":"object","additionalProperties":{}}}}},"filter":{"type":"object","properties":{"audience":{"$ref":"#/components/schemas/Audience2"},"attributes":{"default":[],"maxItems":10,"type":"array","items":{"type":"object","properties":{"key":{"type":"string","minLength":1,"maxLength":100},"op":{"type":"string","enum":["eq","contains","gt","lt"]},"value":{"type":"string","maxLength":500}},"required":["key","op","value"]}}}}}},"dataFileUrl":{"type":"string","maxLength":2000,"format":"uri"},"idIgnoreMissing":{"default":false,"type":"boolean"}}}}}},"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"202":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PostV1CampaignsByIdTriggersResponse"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"postV1CampaignsByIdTriggers"},"get":{"tags":["campaigns"],"parameters":[{"schema":{"default":50,"type":"integer","minimum":1,"maximum":200},"in":"query","name":"limit","required":false},{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"query","name":"cursor","required":false},{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"items":{"type":"array","items":{"$ref":"#/components/schemas/PostV1CampaignsByIdTriggersResponse"}},"nextCursor":{"nullable":true,"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},"required":["items","nextCursor"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1CampaignsByIdTriggers"}},"/v1/campaigns/{id}/triggers/{triggerId}":{"get":{"tags":["campaigns"],"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true},{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"triggerId","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PostV1CampaignsByIdTriggersResponse"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1CampaignsByIdTriggersByTriggerId"}},"/v1/campaigns/{id}/triggers/{triggerId}/cancel":{"post":{"tags":["campaigns"],"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true},{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"triggerId","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PostV1CampaignsByIdTriggersResponse"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"postV1CampaignsByIdTriggersByTriggerIdCancel"}},"/p/v/{token}":{"get":{"summary":"Hosted web version of a campaign message","tags":["campaigns"],"parameters":[{"schema":{"type":"string","minLength":10,"maxLength":600},"in":"path","name":"token","required":true}],"security":[],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"string"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getPVByToken"}},"/p/a/{ref}":{"get":{"summary":"Public campaign archive of a list","tags":["campaigns"],"parameters":[{"schema":{"type":"string","pattern":"^[0-9a-f-]{36}\\.[0-9a-f-]{36}$"},"in":"path","name":"ref","required":true}],"security":[],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"string"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getPAByRef"}},"/p/a/{ref}/feed.xml":{"get":{"summary":"RSS feed of a list campaign archive","tags":["campaigns"],"parameters":[{"schema":{"type":"string","pattern":"^[0-9a-f-]{36}\\.[0-9a-f-]{36}$"},"in":"path","name":"ref","required":true}],"security":[],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"string"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getPAByRefFeedXml"}},"/p/a/{ref}/archive.json":{"get":{"summary":"JSON list of a list campaign archive","tags":["campaigns"],"parameters":[{"schema":{"type":"integer","minimum":1,"maximum":200},"in":"query","name":"limit","required":false,"description":"Page size; omitted returns the whole list"},{"schema":{"type":"string","pattern":"^\\d{1,9}$"},"in":"query","name":"cursor","required":false,"description":"Opaque: the `nextCursor` of the previous page"},{"schema":{"type":"string","pattern":"^[0-9a-f-]{36}\\.[0-9a-f-]{36}$"},"in":"path","name":"ref","required":true}],"security":[],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"items":{"type":"array","items":{"type":"object","properties":{"subject":{"type":"string"},"sentAt":{"nullable":true,"type":"string"},"url":{"type":"string"}},"required":["subject","sentAt","url"],"additionalProperties":false}},"nextCursor":{"nullable":true,"type":"string"}},"required":["items","nextCursor"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getPAByRefArchiveJson"}},"/p/a/{ref}/latest":{"get":{"summary":"Permalink that redirects to the newest campaign in the archive","tags":["campaigns"],"parameters":[{"schema":{"type":"string","pattern":"^[0-9a-f-]{36}\\.[0-9a-f-]{36}$"},"in":"path","name":"ref","required":true}],"security":[],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"string"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getPAByRefLatest"}},"/p/a/{ref}/{slug}":{"get":{"summary":"One archived campaign by slug","tags":["campaigns"],"parameters":[{"schema":{"type":"string","pattern":"^[0-9a-f-]{36}\\.[0-9a-f-]{36}$"},"in":"path","name":"ref","required":true},{"schema":{"type":"string","minLength":1,"maxLength":80,"pattern":"^[a-z0-9-]+$"},"in":"path","name":"slug","required":true}],"security":[],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"string"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getPAByRefBySlug"}},"/v1/workflows":{"get":{"tags":["workflows"],"parameters":[{"schema":{"default":50,"type":"integer","minimum":1,"maximum":200},"in":"query","name":"limit","required":false},{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"query","name":"cursor","required":false},{"schema":{"type":"string","enum":["draft","live","paused","archived"]},"in":"query","name":"status","required":false},{"schema":{"type":"string"},"in":"query","name":"folder","required":false},{"schema":{"type":"string","enum":["journey","sequence"]},"in":"query","name":"mode","required":false},{"schema":{"type":"string","maxLength":200},"in":"query","name":"q","required":false},{"schema":{"type":"string","enum":["true","false"]},"in":"query","name":"archived","required":false},{"schema":{"type":"string","maxLength":32},"in":"query","name":"triggerType","required":false},{"schema":{"type":"string","format":"date-time"},"in":"query","name":"createdFrom","required":false},{"schema":{"type":"string","format":"date-time"},"in":"query","name":"createdTo","required":false},{"schema":{"type":"string","format":"date-time"},"in":"query","name":"updatedFrom","required":false},{"schema":{"type":"string","format":"date-time"},"in":"query","name":"updatedTo","required":false},{"schema":{"type":"string","format":"date-time"},"in":"query","name":"startedFrom","required":false},{"schema":{"type":"string","format":"date-time"},"in":"query","name":"startedTo","required":false},{"schema":{"type":"string","enum":["created","-created","updated","-updated","name","-name"]},"in":"query","name":"sort","required":false}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"items":{"$ref":"#/components/schemas/Items19"},"nextCursor":{"nullable":true,"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},"required":["items","nextCursor"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1Workflows"},"post":{"tags":["workflows"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":200},"purpose":{"default":"marketing","type":"string","enum":["marketing","prospecting","transactional","operational"]},"mode":{"default":"journey","type":"string","enum":["journey","sequence"]},"folder":{"nullable":true,"type":"string","maxLength":100},"tags":{"default":[],"maxItems":50,"type":"array","items":{"type":"string","maxLength":64}},"definition":{"type":"object","properties":{"graph":{"$ref":"#/components/schemas/Graph"},"triggers":{"$ref":"#/components/schemas/Triggers"},"settings":{"$ref":"#/components/schemas/Settings4"}}}},"required":["name"]}}}},"responses":{"201":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ItemsItem62"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"postV1Workflows"}},"/v1/workflows/templates":{"get":{"tags":["workflows"],"parameters":[{"schema":{"type":"integer","minimum":1,"maximum":200},"in":"query","name":"limit","required":false,"description":"Page size; omitted returns the whole list"},{"schema":{"type":"string","pattern":"^\\d{1,9}$"},"in":"query","name":"cursor","required":false,"description":"Opaque: the `nextCursor` of the previous page"}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"items":{"type":"array","items":{"type":"object","properties":{"key":{"type":"string"},"name":{"type":"string"},"description":{"type":"string"},"definition":{"$ref":"#/components/schemas/Definition3"},"category":{"default":"lifecycle","type":"string"},"requires":{"default":[],"type":"array","items":{"type":"string"}},"missing":{"default":[],"type":"array","items":{"type":"string"}}},"required":["key","name","description","definition","category","requires","missing"],"additionalProperties":false}},"nextCursor":{"nullable":true,"type":"string"}},"required":["items","nextCursor"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1WorkflowsTemplates"}},"/v1/workflows/templates/{key}":{"post":{"tags":["workflows"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":200}}}}}},"parameters":[{"schema":{"type":"string"},"in":"path","name":"key","required":true}],"responses":{"201":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"name":{"type":"string"},"purpose":{"type":"string","enum":["marketing","prospecting","transactional","operational"]},"mode":{"type":"string","enum":["journey","sequence"]},"status":{"type":"string","enum":["draft","live","paused","archived"]},"publishedVersionId":{"nullable":true,"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"folder":{"nullable":true,"type":"string"},"tags":{"type":"array","items":{"type":"string"}},"color":{"nullable":true,"type":"string"},"draftGraph":{},"draftTriggers":{},"draftSettings":{},"ab":{"$ref":"#/components/schemas/Ab"},"createdAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"updatedAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"install":{"type":"object","properties":{"templatesCreated":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"missingEvents":{"type":"array","items":{"type":"string"}},"todo":{"type":"array","items":{"type":"string"}}},"required":["templatesCreated","missingEvents","todo"],"additionalProperties":false}},"required":["id","name","purpose","mode","status","publishedVersionId","folder","tags","draftGraph","draftTriggers","draftSettings","createdAt","updatedAt","install"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"postV1WorkflowsTemplatesByKey"}},"/v1/workflows/batch/read":{"post":{"summary":"Read several workflows by id in one call","tags":["workflows"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PostV1SnippetsBulkDeleteBody"}}}},"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"items":{"$ref":"#/components/schemas/Items19"}},"required":["items"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"postV1WorkflowsBatchRead"}},"/v1/workflows/emails":{"get":{"summary":"Every send step across live and paused journeys, with stats","tags":["workflows"],"parameters":[{"schema":{"type":"integer","minimum":1,"maximum":200},"in":"query","name":"limit","required":false,"description":"Page size; omitted returns the whole list"},{"schema":{"type":"string","pattern":"^\\d{1,9}$"},"in":"query","name":"cursor","required":false,"description":"Opaque: the `nextCursor` of the previous page"}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"items":{"type":"array","items":{"type":"object","properties":{"workflowId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},"required":["workflowId"],"additionalProperties":{}}},"nextCursor":{"nullable":true,"type":"string"}},"required":["items","nextCursor"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1WorkflowsEmails"}},"/v1/profiles/{id}/workflows":{"get":{"summary":"Which journeys is this contact in (or has been in)","tags":["workflows"],"parameters":[{"schema":{"default":50,"type":"integer","minimum":1,"maximum":200},"in":"query","name":"limit","required":false},{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"query","name":"cursor","required":false},{"schema":{"type":"string","enum":["active","waiting","completed","exited","failed","paused"]},"in":"query","name":"state","required":false},{"schema":{"type":"string","enum":["true"]},"in":"query","name":"live","required":false},{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"items":{"type":"array","items":{"type":"object","properties":{"enrollmentId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"workflowId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"workflowName":{"type":"string"},"workflowStatus":{"type":"string","enum":["draft","live","paused","archived"]},"state":{"type":"string","enum":["active","waiting","completed","exited","failed","paused"]},"currentNodeId":{"nullable":true,"type":"string"},"enteredAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"exitedAt":{"nullable":true,"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"exitedReason":{"nullable":true,"type":"string"},"goalReachedAt":{"nullable":true,"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"triggerType":{"type":"string"}},"required":["enrollmentId","workflowId","workflowName","workflowStatus","state","currentNodeId","enteredAt","exitedAt","exitedReason","goalReachedAt","triggerType"],"additionalProperties":false}},"nextCursor":{"nullable":true,"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},"required":["items","nextCursor"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1ProfilesByIdWorkflows"}},"/v1/workflows/{id}/enrollments/{enrollmentId}/steps":{"get":{"summary":"The step trail of one enrollment","tags":["workflows"],"parameters":[{"schema":{"default":50,"type":"integer","minimum":1,"maximum":200},"in":"query","name":"limit","required":false},{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"query","name":"cursor","required":false},{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true},{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"enrollmentId","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"items":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"nodeId":{"type":"string"},"stepSeq":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"kind":{"type":"string"},"handle":{"nullable":true,"type":"string"},"note":{"nullable":true,"type":"string"},"at":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"}},"required":["id","nodeId","stepSeq","kind","handle","note","at"],"additionalProperties":false}},"nextCursor":{"nullable":true,"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},"required":["items","nextCursor"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1WorkflowsByIdEnrollmentsByEnrollmentIdSteps"}},"/v1/workflows/import":{"post":{"tags":["workflows"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":200},"purpose":{"type":"string","enum":["marketing","prospecting","transactional","operational"]},"mode":{"type":"string","enum":["journey","sequence"]},"definition":{"$ref":"#/components/schemas/Definition4"}},"required":["name","purpose","mode","definition"]}}}},"responses":{"201":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ItemsItem62"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"postV1WorkflowsImport"}},"/v1/workflows/{id}":{"get":{"tags":["workflows"],"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ItemsItem62"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1WorkflowsById"},"patch":{"tags":["workflows"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":200},"color":{"nullable":true,"type":"string","pattern":"^#[0-9a-fA-F]{6}$"},"folder":{"nullable":true,"type":"string","maxLength":100},"tags":{"maxItems":50,"type":"array","items":{"type":"string","maxLength":64}},"definition":{"$ref":"#/components/schemas/Definition4"}}}}}},"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ItemsItem62"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"patchV1WorkflowsById"},"delete":{"summary":"Delete a draft or archived journey for good (versions and history go with it); archive a live one first","tags":["workflows"],"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"ok":{"type":"boolean","enum":[true]}},"required":["ok"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"deleteV1WorkflowsById"}},"/v1/workflows/{id}/validate":{"get":{"tags":["workflows"],"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetV1WorkflowsByIdValidateResponse"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1WorkflowsByIdValidate"},"post":{"summary":"Validate an inline draft (body.definition) or, without a body, the stored draft","tags":["workflows"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"definition":{"$ref":"#/components/schemas/Definition4"}}}}}},"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetV1WorkflowsByIdValidateResponse"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"postV1WorkflowsByIdValidate"}},"/v1/workflows/{id}/publish":{"post":{"summary":"Publish the draft as a new version; body.inFlight chooses stay / migrate / exit for enrollments already inside","tags":["workflows"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PostV1WorkflowsByIdPublishBody"}}}},"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PostV1WorkflowsByIdPublishResponse"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"postV1WorkflowsByIdPublish"}},"/v1/workflows/{id}/publish-impact":{"get":{"tags":["workflows"],"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"inFlight":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"removed":{"type":"array","items":{"type":"object","properties":{"nodeId":{"type":"string"},"holding":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["nodeId","holding"],"additionalProperties":false}}},"required":["inFlight","removed"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1WorkflowsByIdPublishImpact"}},"/v1/workflows/{id}/ab":{"put":{"summary":"Split new entrants across published versions","tags":["workflows"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"variants":{"minItems":2,"maxItems":5,"type":"array","items":{"type":"object","properties":{"versionId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"weight":{"type":"integer","minimum":1,"maximum":100}},"required":["versionId","weight"]}}},"required":["variants"]}}}},"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ItemsItem62"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"putV1WorkflowsByIdAb"},"delete":{"tags":["workflows"],"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ItemsItem62"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"deleteV1WorkflowsByIdAb"}},"/v1/workflows/{id}/ab/report":{"get":{"tags":["workflows"],"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"variants":{"type":"array","items":{"type":"object","properties":{"versionId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"n":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"weight":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"entered":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"completed":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"converted":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"conversionRate":{"type":"number"}},"required":["versionId","n","weight","entered","completed","converted","conversionRate"],"additionalProperties":false}}},"required":["variants"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1WorkflowsByIdAbReport"}},"/v1/workflows/{id}/ab/promote":{"post":{"tags":["workflows"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"versionId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},"required":["versionId"]}}}},"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ItemsItem62"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"postV1WorkflowsByIdAbPromote"}},"/v1/workflows/{id}/pause":{"post":{"tags":["workflows"],"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ItemsItem62"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"postV1WorkflowsByIdPause"}},"/v1/workflows/{id}/resume":{"post":{"tags":["workflows"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"policy":{"default":"run_now","type":"string","enum":["run_now","skip_missed_sends"]}}}}}},"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ItemsItem62"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"postV1WorkflowsByIdResume"}},"/v1/workflows/{id}/archive":{"post":{"tags":["workflows"],"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ItemsItem62"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"postV1WorkflowsByIdArchive"}},"/v1/workflows/{id}/clone":{"post":{"tags":["workflows"],"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"201":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ItemsItem62"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"postV1WorkflowsByIdClone"}},"/v1/workflows/{id}/export":{"get":{"tags":["workflows"],"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string"},"purpose":{"type":"string","enum":["marketing","prospecting","transactional","operational"]},"mode":{"type":"string","enum":["journey","sequence"]},"definition":{"$ref":"#/components/schemas/Definition3"}},"required":["name","purpose","mode","definition"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1WorkflowsByIdExport"}},"/v1/workflows/{id}/versions":{"get":{"tags":["workflows"],"parameters":[{"schema":{"type":"integer","minimum":1,"maximum":200},"in":"query","name":"limit","required":false,"description":"Page size; omitted returns the whole list"},{"schema":{"type":"string","pattern":"^\\d{1,9}$"},"in":"query","name":"cursor","required":false,"description":"Opaque: the `nextCursor` of the previous page"},{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"items":{"type":"array","items":{"$ref":"#/components/schemas/Version2"}},"nextCursor":{"nullable":true,"type":"string"}},"required":["items","nextCursor"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1WorkflowsByIdVersions"}},"/v1/workflows/{id}/simulate":{"post":{"tags":["workflows"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PostV1WorkflowsByIdSimulateBody"}}}},"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PostV1WorkflowsByIdSimulateResponse"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"postV1WorkflowsByIdSimulate"}},"/v1/workflows/{id}/fields":{"get":{"summary":"Data keys a step of this journey can use in conditions and merge tags: profile fields, properties of the events that start it, and enrollment variables","tags":["workflows"],"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"fields":{"type":"array","items":{"type":"object","properties":{"key":{"type":"string"},"source":{"type":"string","enum":["profile","event","enrollment"]},"type":{"type":"string"}},"required":["key","source","type"],"additionalProperties":false}}},"required":["fields"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1WorkflowsByIdFields"}},"/v1/workflows/{id}/report":{"get":{"tags":["workflows"],"parameters":[{"schema":{"type":"string","format":"date-time"},"in":"query","name":"from","required":false},{"schema":{"type":"string","format":"date-time"},"in":"query","name":"to","required":false},{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"workflowId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"nodes":{"type":"array","items":{"type":"object","properties":{"nodeId":{"type":"string"},"entered":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"completed":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"exited":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"errors":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"waiting":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"converted":{"default":0,"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["nodeId","entered","completed","exited","errors","waiting","converted"],"additionalProperties":false}},"paths":{"type":"object","additionalProperties":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"states":{"type":"object","additionalProperties":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"goal":{"type":"object","properties":{"conversions":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"timeToConvertP50Sec":{"nullable":true,"type":"number"},"timeToConvertP90Sec":{"nullable":true,"type":"number"}},"required":["conversions","timeToConvertP50Sec","timeToConvertP90Sec"],"additionalProperties":false},"messages":{"type":"object","additionalProperties":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}}},"required":["workflowId","nodes","paths","states","goal","messages"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1WorkflowsByIdReport"}},"/v1/workflows/{id}/enrollments":{"get":{"tags":["workflows"],"parameters":[{"schema":{"default":50,"type":"integer","minimum":1,"maximum":200},"in":"query","name":"limit","required":false},{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"query","name":"cursor","required":false},{"schema":{"type":"string","enum":["active","waiting","completed","exited","failed","paused"]},"in":"query","name":"state","required":false},{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"query","name":"profileId","required":false},{"schema":{"type":"string","minLength":1,"maxLength":64},"in":"query","name":"nodeId","required":false},{"schema":{"type":"string","maxLength":320},"in":"query","name":"email","required":false},{"schema":{"type":"string","enum":["true"]},"in":"query","name":"stuck","required":false},{"schema":{"type":"string","enum":["true"]},"in":"query","name":"removed","required":false},{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetV1WorkflowsByIdEnrollmentsResponse"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1WorkflowsByIdEnrollments"}},"/v1/workflows/{id}/enroll":{"post":{"tags":["workflows"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"profileIds":{"$ref":"#/components/schemas/ProfileIds2"},"triggerType":{"default":"api","type":"string","maxLength":32},"data":{"type":"object","additionalProperties":{}}},"required":["profileIds"]}}}},"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PostV1WorkflowsByIdEnrollResponse"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"postV1WorkflowsByIdEnroll"}},"/v1/workflows/{id}/enrollments/exit-all":{"post":{"summary":"Remove everyone still inside the journey (or only those at one step); up to 500 per call, `more` says to repeat","tags":["workflows"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"nodeId":{"type":"string","maxLength":64}}}}}},"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"exited":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"more":{"type":"boolean"}},"required":["exited","more"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"postV1WorkflowsByIdEnrollmentsExitAll"}},"/v1/workflows/{id}/enrollments/{enrollmentId}":{"delete":{"tags":["workflows"],"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true},{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"enrollmentId","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"ok":{"type":"boolean","enum":[true]}},"required":["ok"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"deleteV1WorkflowsByIdEnrollmentsByEnrollmentId"}},"/v1/workflows/{id}/enrollments/{enrollmentId}/jump":{"post":{"tags":["workflows"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"nodeId":{"type":"string","minLength":1,"maxLength":64}},"required":["nodeId"]}}}},"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true},{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"enrollmentId","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"ok":{"type":"boolean","enum":[true]}},"required":["ok"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"postV1WorkflowsByIdEnrollmentsByEnrollmentIdJump"}},"/v1/workflows/{id}/enrollments/{enrollmentId}/reschedule":{"post":{"summary":"Change when a waiting person wakes up (a delay, or the timeout of an event wait)","tags":["workflows"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"runAt":{"type":"string","format":"date-time"}},"required":["runAt"]}}}},"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true},{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"enrollmentId","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"ok":{"type":"boolean","enum":[true]}},"required":["ok"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"postV1WorkflowsByIdEnrollmentsByEnrollmentIdReschedule"}},"/v1/workflows/{id}/migrate":{"post":{"tags":["workflows"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"fromVersionId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"toVersionId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"nodeMap":{"default":{},"type":"object","additionalProperties":{"type":"string"}}},"required":["fromVersionId","toVersionId"]}}}},"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"moved":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"exitedUnmapped":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["moved","exitedUnmapped"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"postV1WorkflowsByIdMigrate"}},"/v1/workflows/{id}/nodes":{"get":{"summary":"Send steps of a journey with stats, queue size and pause state","tags":["workflows"],"parameters":[{"schema":{"type":"integer","minimum":1,"maximum":200},"in":"query","name":"limit","required":false,"description":"Page size; omitted returns the whole list"},{"schema":{"type":"string","pattern":"^\\d{1,9}$"},"in":"query","name":"cursor","required":false,"description":"Opaque: the `nextCursor` of the previous page"},{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"items":{"type":"array","items":{"$ref":"#/components/schemas/ItemsItem64"}},"nextCursor":{"nullable":true,"type":"string"}},"required":["items","nextCursor"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1WorkflowsByIdNodes"}},"/v1/workflows/{id}/nodes/{nodeId}":{"get":{"tags":["workflows"],"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true},{"schema":{"type":"string","minLength":1,"maxLength":64},"in":"path","name":"nodeId","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ItemsItem64"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1WorkflowsByIdNodesByNodeId"},"patch":{"summary":"Set a step live or paused (applies to a running journey)","tags":["workflows"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"string","enum":["live","paused"]},"mode":{"default":"wait","type":"string","enum":["wait","skip","review"]}},"required":["status"]}}}},"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true},{"schema":{"type":"string","minLength":1,"maxLength":64},"in":"path","name":"nodeId","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ItemsItem64"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"patchV1WorkflowsByIdNodesByNodeId"},"delete":{"summary":"Delete a step of a running journey; people waiting at it continue to the next step or leave","tags":["workflows"],"parameters":[{"schema":{"default":"new_entrants","type":"string","enum":["new_entrants","waiting"]},"in":"query","name":"apply","required":false},{"schema":{"default":"move_on","type":"string","enum":["move_on","exit"]},"in":"query","name":"waiting","required":false},{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true},{"schema":{"type":"string","minLength":1,"maxLength":64},"in":"path","name":"nodeId","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DeleteV1WorkflowsByIdNodesByNodeIdResponse"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"deleteV1WorkflowsByIdNodesByNodeId"}},"/v1/workflows/{id}/nodes/{nodeId}/content":{"put":{"summary":"Edit a step of a running journey; apply=waiting also moves people already inside onto the new version","tags":["workflows"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"config":{"type":"object","additionalProperties":{}},"apply":{"default":"new_entrants","type":"string","enum":["new_entrants","waiting"]}},"required":["config"]}}}},"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true},{"schema":{"type":"string","minLength":1,"maxLength":64},"in":"path","name":"nodeId","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DeleteV1WorkflowsByIdNodesByNodeIdResponse"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"putV1WorkflowsByIdNodesByNodeIdContent"}},"/v1/workflows/{id}/draft/nodes":{"post":{"summary":"Add one action to the draft; it must pass the same graph validation as a full save","tags":["workflows"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":64},"type":{"type":"string","minLength":1,"maxLength":64},"config":{"default":{},"type":"object","additionalProperties":{}},"position":{"type":"object","properties":{"x":{"type":"number"},"y":{"type":"number"}},"required":["x","y"]},"after":{"type":"object","properties":{"nodeId":{"type":"string","minLength":1,"maxLength":64},"handle":{"default":"next","type":"string","minLength":1,"maxLength":64}},"required":["nodeId"]}},"required":["type"]}}}},"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"201":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"nodeId":{"type":"string","minLength":1,"maxLength":64},"validation":{"$ref":"#/components/schemas/GetV1WorkflowsByIdValidateResponse"}},"required":["nodeId","validation"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"postV1WorkflowsByIdDraftNodes"}},"/v1/workflows/{id}/draft/nodes/{nodeId}":{"delete":{"summary":"Remove one action from the draft (single-exit steps are bypassed)","tags":["workflows"],"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true},{"schema":{"type":"string","minLength":1,"maxLength":64},"in":"path","name":"nodeId","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetV1WorkflowsByIdValidateResponse"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"deleteV1WorkflowsByIdDraftNodesByNodeId"}},"/v1/workflows/{id}/nodes/{nodeId}/pause":{"post":{"tags":["workflows"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"mode":{"default":"wait","type":"string","enum":["wait","skip","review"]}}}}}},"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true},{"schema":{"type":"string","minLength":1,"maxLength":64},"in":"path","name":"nodeId","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ItemsItem64"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"postV1WorkflowsByIdNodesByNodeIdPause"}},"/v1/workflows/{id}/nodes/{nodeId}/resume":{"post":{"tags":["workflows"],"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true},{"schema":{"type":"string","minLength":1,"maxLength":64},"in":"path","name":"nodeId","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ItemsItem64"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"postV1WorkflowsByIdNodesByNodeIdResume"}},"/v1/workflows/{id}/nodes/{nodeId}/queue":{"get":{"summary":"Subscribers currently at this step","tags":["workflows"],"parameters":[{"schema":{"default":50,"type":"integer","minimum":1,"maximum":200},"in":"query","name":"limit","required":false},{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"query","name":"cursor","required":false},{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"query","name":"profileId","required":false},{"schema":{"type":"string","maxLength":320},"in":"query","name":"email","required":false},{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true},{"schema":{"type":"string","minLength":1,"maxLength":64},"in":"path","name":"nodeId","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetV1WorkflowsByIdEnrollmentsResponse"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1WorkflowsByIdNodesByNodeIdQueue"},"post":{"summary":"Enrol subscribers and land them on this step","tags":["workflows"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PostV1ListsByIdMembersBody"}}}},"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true},{"schema":{"type":"string","minLength":1,"maxLength":64},"in":"path","name":"nodeId","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PostV1WorkflowsByIdEnrollResponse"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"postV1WorkflowsByIdNodesByNodeIdQueue"}},"/v1/workflows/{id}/nodes/{nodeId}/queue/{profileId}":{"get":{"tags":["workflows"],"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true},{"schema":{"type":"string","minLength":1,"maxLength":64},"in":"path","name":"nodeId","required":true},{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"profileId","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ItemsItem63"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1WorkflowsByIdNodesByNodeIdQueueByProfileId"},"delete":{"tags":["workflows"],"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true},{"schema":{"type":"string","minLength":1,"maxLength":64},"in":"path","name":"nodeId","required":true},{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"profileId","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"ok":{"type":"boolean","enum":[true]}},"required":["ok"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"deleteV1WorkflowsByIdNodesByNodeIdQueueByProfileId"}},"/v1/workflows/{id}/removed-subscribers":{"get":{"tags":["workflows"],"parameters":[{"schema":{"default":50,"type":"integer","minimum":1,"maximum":200},"in":"query","name":"limit","required":false},{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"query","name":"cursor","required":false},{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"query","name":"profileId","required":false},{"schema":{"type":"string","maxLength":320},"in":"query","name":"email","required":false},{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetV1WorkflowsByIdEnrollmentsResponse"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1WorkflowsByIdRemovedSubscribers"},"post":{"summary":"Remove a subscriber from the journey","tags":["workflows"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PostV1StagesByIdProfilesBody"}}}},"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"ok":{"type":"boolean","enum":[true]}},"required":["ok"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"postV1WorkflowsByIdRemovedSubscribers"}},"/v1/workflows/{id}/removed-subscribers/{profileId}":{"get":{"tags":["workflows"],"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true},{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"profileId","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ItemsItem63"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1WorkflowsByIdRemovedSubscribersByProfileId"}},"/v1/scores":{"get":{"tags":["scores"],"parameters":[{"schema":{"default":50,"type":"integer","minimum":1,"maximum":200},"in":"query","name":"limit","required":false},{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"query","name":"cursor","required":false},{"schema":{"type":"string","enum":["draft","active","inactive"]},"in":"query","name":"status","required":false}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"items":{"type":"array","items":{"$ref":"#/components/schemas/ItemsItem65"}},"nextCursor":{"nullable":true,"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},"required":["items","nextCursor"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1Scores"},"post":{"tags":["scores"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":200},"key":{"type":"string","pattern":"^[a-z][a-z0-9_]{0,63}$"},"definition":{"$ref":"#/components/schemas/Definition5"}},"required":["name","key"]}}}},"responses":{"201":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ItemsItem65"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"postV1Scores"}},"/v1/scores/values":{"get":{"summary":"Every score value one contact holds","tags":["scores"],"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"query","name":"profileId","required":true},{"schema":{"type":"integer","minimum":1,"maximum":200},"in":"query","name":"limit","required":false,"description":"Page size; omitted returns the whole list"},{"schema":{"type":"string","pattern":"^\\d{1,9}$"},"in":"query","name":"cursor","required":false,"description":"Opaque: the `nextCursor` of the previous page"}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"items":{"type":"array","items":{"type":"object","properties":{"modelId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"profileId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"value":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"updatedAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"fit":{"default":0,"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"engagement":{"default":0,"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"tier":{"default":null,"nullable":true,"type":"string"}},"required":["modelId","profileId","value","updatedAt","fit","engagement","tier"],"additionalProperties":false}},"nextCursor":{"nullable":true,"type":"string"}},"required":["items","nextCursor"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1ScoresValues"}},"/v1/scores/history":{"get":{"summary":"Why a contact's score moved, newest first","tags":["scores"],"parameters":[{"schema":{"default":50,"type":"integer","minimum":1,"maximum":200},"in":"query","name":"limit","required":false},{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"query","name":"cursor","required":false},{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"query","name":"profileId","required":true},{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"query","name":"modelId","required":false}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"items":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"modelId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"profileId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"delta":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"value":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"reason":{"type":"string"},"at":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"}},"required":["id","modelId","profileId","delta","value","reason","at"],"additionalProperties":false}},"nextCursor":{"nullable":true,"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},"required":["items","nextCursor"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1ScoresHistory"}},"/v1/scores/{id}":{"get":{"tags":["scores"],"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ItemsItem65"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1ScoresById"},"delete":{"tags":["scores"],"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"ok":{"type":"boolean","enum":[true]}},"required":["ok"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"deleteV1ScoresById"}},"/v1/scores/{id}/companies":{"get":{"summary":"Company scores rolled up from their contacts (sum, max or average), highest first","tags":["scores"],"parameters":[{"schema":{"default":"sum","type":"string","enum":["sum","max","avg"]},"in":"query","name":"agg","required":false},{"schema":{"default":100,"type":"integer","minimum":1,"maximum":500},"in":"query","name":"limit","required":false},{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"items":{"type":"array","items":{"type":"object","properties":{"companyId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"value":{"type":"number"},"contacts":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"tier":{"nullable":true,"type":"string"}},"required":["companyId","value","contacts","tier"],"additionalProperties":false}}},"required":["items"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1ScoresByIdCompanies"}},"/v1/scores/{id}/draft":{"get":{"tags":["scores"],"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Draft"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1ScoresByIdDraft"},"put":{"tags":["scores"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":200},"definition":{"$ref":"#/components/schemas/Definition5"}},"required":["definition"]}}}},"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ItemsItem65"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"putV1ScoresByIdDraft"}},"/v1/scores/{id}/adjust":{"post":{"summary":"Add or take points from one contact (history reason manual)","tags":["scores"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"profileId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"delta":{"type":"integer","minimum":-100000,"maximum":100000},"operator":{"default":"add","type":"string","enum":["add","set","multiply","divide"]},"amount":{"type":"number","minimum":-100000,"maximum":100000},"reason":{"type":"string","minLength":1,"maxLength":500}},"required":["profileId"]}}}},"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"modelId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"profileId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"value":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["modelId","profileId","value"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"postV1ScoresByIdAdjust"}},"/v1/scores/{id}/draft/publish":{"post":{"summary":"Make the draft the running model","tags":["scores"],"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ItemsItem65"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"postV1ScoresByIdDraftPublish"}},"/v1/scores/{id}/draft/reset":{"post":{"summary":"Throw the draft away: back to the published model","tags":["scores"],"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ItemsItem65"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"postV1ScoresByIdDraftReset"}},"/v1/scores/{id}/deactivate":{"post":{"summary":"Stop scoring; values and history are kept","tags":["scores"],"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ItemsItem65"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"postV1ScoresByIdDeactivate"}},"/v1/scores/{id}/recompute":{"post":{"summary":"Rebuild every contact's value in the background from the last 90 days of events and current attributes (the first publish does this too); manual adjustments are dropped","tags":["scores"],"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ItemsItem65"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"postV1ScoresByIdRecompute"}},"/v1/scores/{id}/clone":{"post":{"tags":["scores"],"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"201":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ItemsItem65"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"postV1ScoresByIdClone"}},"/v1/workflows/goal-completions":{"get":{"summary":"Everyone who reached a journey goal, across journeys","tags":["workflows"],"parameters":[{"schema":{"default":50,"type":"integer","minimum":1,"maximum":200},"in":"query","name":"limit","required":false},{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"query","name":"cursor","required":false},{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"query","name":"workflowId","required":false},{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"query","name":"profileId","required":false},{"schema":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"in":"query","name":"since","required":false}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"items":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"enrollmentId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"workflowId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"workflowName":{"type":"string"},"profileId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"profileEmail":{"nullable":true,"type":"string"},"reachedAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"enteredAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"endedBy":{"nullable":true,"type":"string"},"state":{"type":"string"},"appliedTags":{"default":[],"type":"array","items":{"type":"string"}},"appliedListIds":{"default":[],"type":"array","items":{"type":"string"}}},"required":["id","enrollmentId","workflowId","workflowName","profileId","profileEmail","reachedAt","enteredAt","endedBy","state","appliedTags","appliedListIds"],"additionalProperties":false}},"nextCursor":{"nullable":true,"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},"required":["items","nextCursor"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1WorkflowsGoalCompletions"}},"/v1/workflows/activity-log":{"get":{"summary":"Flat step log across journeys, filterable by journey, contact, step and kind","tags":["workflows"],"parameters":[{"schema":{"default":50,"type":"integer","minimum":1,"maximum":200},"in":"query","name":"limit","required":false},{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"query","name":"cursor","required":false},{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"query","name":"workflowId","required":false},{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"query","name":"profileId","required":false},{"schema":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"in":"query","name":"since","required":false},{"schema":{"type":"string","enum":["entered","completed","branched","waiting","resumed","skipped","error","exited"]},"in":"query","name":"kind","required":false},{"schema":{"type":"string","maxLength":64},"in":"query","name":"nodeId","required":false}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"items":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"enrollmentId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"workflowId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"workflowName":{"type":"string"},"profileId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"profileEmail":{"nullable":true,"type":"string"},"nodeId":{"type":"string"},"kind":{"type":"string"},"handle":{"nullable":true,"type":"string"},"note":{"nullable":true,"type":"string"},"at":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"}},"required":["id","enrollmentId","workflowId","workflowName","profileId","profileEmail","nodeId","kind","handle","note","at"],"additionalProperties":false}},"nextCursor":{"nullable":true,"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},"required":["items","nextCursor"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1WorkflowsActivityLog"}},"/v1/workflows/bulk-edit":{"post":{"summary":"Archive, pause, tag or move several journeys at once","tags":["workflows"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"ids":{"$ref":"#/components/schemas/ProfileIds"},"action":{"type":"string","enum":["archive","pause","add_tags","remove_tags","set_folder"]},"tags":{"maxItems":50,"type":"array","items":{"type":"string","minLength":1,"maxLength":64}},"folder":{"nullable":true,"type":"string","maxLength":100}},"required":["ids","action"]}}}},"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"done":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"failed":{"$ref":"#/components/schemas/Failed"}},"required":["done","failed"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"postV1WorkflowsBulkEdit"}},"/v1/workflows/{id}/goals":{"get":{"summary":"Flow goal, goal steps and the conversion count","tags":["workflows"],"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetV1WorkflowsByIdGoalsResponse"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1WorkflowsByIdGoals"}},"/v1/workflows/{id}/goals/flow":{"put":{"summary":"Set the draft flow goal (applies on next publish)","tags":["workflows"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Goal"}}}},"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetV1WorkflowsByIdGoalsResponse"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"putV1WorkflowsByIdGoalsFlow"},"delete":{"tags":["workflows"],"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetV1WorkflowsByIdGoalsResponse"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"deleteV1WorkflowsByIdGoalsFlow"}},"/v1/workflows/{id}/goals/{nodeId}":{"patch":{"summary":"Edit a goal step of the draft","tags":["workflows"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","maxLength":64},"skipAhead":{"type":"boolean"},"match":{"nullable":true,"type":"object","properties":{"kind":{"type":"string","enum":["event","segment"]},"eventName":{"type":"string","maxLength":128},"filter":{"type":"object","additionalProperties":{}},"definition":{"$ref":"#/components/schemas/Definition2"}},"required":["kind"]}}}}}},"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true},{"schema":{"type":"string","minLength":1,"maxLength":64},"in":"path","name":"nodeId","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetV1WorkflowsByIdGoalsResponse"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"patchV1WorkflowsByIdGoalsByNodeId"}},"/v1/workflows/{id}/enrollments/{enrollmentId}/pause":{"post":{"summary":"Hold one enrollment where it is","tags":["workflows"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"reason":{"default":"manual","type":"string","minLength":1,"maxLength":100}}}}}},"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true},{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"enrollmentId","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"ok":{"type":"boolean","enum":[true]}},"required":["ok"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"postV1WorkflowsByIdEnrollmentsByEnrollmentIdPause"}},"/v1/workflows/{id}/enrollments/{enrollmentId}/resume":{"post":{"summary":"Release a held enrollment","tags":["workflows"],"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true},{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"enrollmentId","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"ok":{"type":"boolean","enum":[true]}},"required":["ok"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"postV1WorkflowsByIdEnrollmentsByEnrollmentIdResume"}},"/v1/workflows/{id}/step-report":{"get":{"summary":"Per-step sends, opens, clicks and attributed revenue for one journey over a date range","tags":["workflows"],"parameters":[{"schema":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}(?:[T ]\\d{2}:\\d{2}(?::\\d{2}(?:\\.\\d+)?)?(?:Z|[+-]\\d{2}:?\\d{2})?)?$","format":"date"},"in":"query","name":"from","required":true},{"schema":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}(?:[T ]\\d{2}:\\d{2}(?::\\d{2}(?:\\.\\d+)?)?(?:Z|[+-]\\d{2}:?\\d{2})?)?$","format":"date"},"in":"query","name":"to","required":true},{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"workflowId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"from":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},"to":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},"steps":{"type":"array","items":{"type":"object","properties":{"nodeId":{"type":"string"},"sent":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"delivered":{"default":0,"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"opened":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"clicked":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"revenue":{"$ref":"#/components/schemas/Revenue"}},"required":["nodeId","sent","delivered","opened","clicked","revenue"],"additionalProperties":false}},"revenue":{"$ref":"#/components/schemas/Revenue"}},"required":["workflowId","from","to","steps","revenue"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1WorkflowsByIdStepReport"}},"/v1/workflows/{id}/preview":{"post":{"summary":"Walk one real person (and optionally one of their real events) through the journey without sending anything","tags":["workflows"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"profileId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"eventId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"definition":{"$ref":"#/components/schemas/Definition4"},"waitOutcomes":{"type":"object","additionalProperties":{"type":"string","enum":["happens","never"]}}},"required":["profileId"]}}}},"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"traces":{"$ref":"#/components/schemas/Traces"},"nodeCounts":{"type":"object","additionalProperties":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"pathCounts":{"type":"object","additionalProperties":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"warnings":{"$ref":"#/components/schemas/Errors"},"profile":{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":64},"fields":{"default":{},"type":"object","additionalProperties":{}},"tags":{"default":[],"type":"array","items":{"type":"string"}},"listIds":{"default":[],"type":"array","items":{"type":"string"}},"segmentIds":{"default":[],"type":"array","items":{"type":"string"}},"timezone":{"default":"UTC","type":"string"},"consents":{"default":[],"type":"array","items":{"type":"string"}}},"required":["id","fields","tags","listIds","segmentIds","timezone","consents"],"additionalProperties":false},"triggerEvent":{"nullable":true,"type":"object","additionalProperties":{}}},"required":["traces","nodeCounts","pathCounts","warnings","profile","triggerEvent"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"postV1WorkflowsByIdPreview"}},"/v1/workflows/reviews":{"get":{"summary":"Messages waiting for a decision at Manual-review steps","tags":["workflows"],"parameters":[{"schema":{"default":50,"type":"integer","minimum":1,"maximum":200},"in":"query","name":"limit","required":false},{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"query","name":"cursor","required":false},{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"query","name":"workflowId","required":false},{"schema":{"type":"string","minLength":1,"maxLength":64},"in":"query","name":"nodeId","required":false},{"schema":{"default":"pending","type":"string","enum":["pending","approved","skipped","done"]},"in":"query","name":"status","required":false}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"items":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"workflowId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"workflowName":{"type":"string"},"nodeId":{"type":"string","minLength":1,"maxLength":64},"templateId":{"nullable":true,"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"enrollmentId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"profileId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"profileEmail":{"nullable":true,"type":"string"},"profileName":{"nullable":true,"type":"string"},"status":{"type":"string","enum":["pending","approved","skipped","done"]},"subject":{"nullable":true,"type":"string"},"body":{"nullable":true,"type":"string"},"html":{"nullable":true,"type":"string"},"templateHtml":{"nullable":true,"type":"string"},"templateSubject":{"nullable":true,"type":"string"},"templateText":{"nullable":true,"type":"string"},"templateDoc":{"$ref":"#/components/schemas/TemplateDoc"},"doc":{"$ref":"#/components/schemas/TemplateDoc"},"createdAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"decidedAt":{"nullable":true,"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"}},"required":["id","workflowId","workflowName","nodeId","templateId","enrollmentId","profileId","profileEmail","profileName","status","subject","body","html","templateHtml","templateSubject","templateText","templateDoc","doc","createdAt","decidedAt"],"additionalProperties":false}},"nextCursor":{"nullable":true,"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},"required":["items","nextCursor"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1WorkflowsReviews"}},"/v1/workflows/reviews/decide-all":{"post":{"summary":"Approve or skip every waiting message of a journey (or one step)","tags":["workflows"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"workflowId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"nodeId":{"type":"string","minLength":1,"maxLength":64},"action":{"type":"string","enum":["approve","skip"]}},"required":["workflowId","action"]}}}},"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"decided":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"more":{"type":"boolean"}},"required":["decided","more"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"postV1WorkflowsReviewsDecideAll"}},"/v1/workflows/reviews/{reviewId}/decide":{"post":{"summary":"Approve (optionally edited) or skip one person’s message; consent is rechecked at send","tags":["workflows"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"action":{"type":"string","enum":["approve","skip"]},"subject":{"type":"string","maxLength":998},"body":{"type":"string","maxLength":100000},"html":{"type":"string","maxLength":512000},"doc":{"$ref":"#/components/schemas/Doc"}},"required":["action"]}}}},"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"reviewId","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"ok":{"type":"boolean","enum":[true]}},"required":["ok"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"postV1WorkflowsReviewsByReviewIdDecide"}},"/v1/webhooks/endpoints":{"get":{"tags":["webhooks"],"parameters":[{"schema":{"default":50,"type":"integer","minimum":1,"maximum":200},"in":"query","name":"limit","required":false},{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"query","name":"cursor","required":false}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"items":{"type":"array","items":{"$ref":"#/components/schemas/ItemsItem66"}},"nextCursor":{"nullable":true,"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},"required":["items","nextCursor"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1WebhooksEndpoints"},"post":{"tags":["webhooks"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"url":{"type":"string","maxLength":2048,"format":"uri"},"topics":{"minItems":1,"maxItems":50,"type":"array","items":{"type":"string","maxLength":100,"pattern":"^(\\*|[a-z_]+(\\.[a-z_]+)*(\\.\\*)?)$"}},"description":{"type":"string","maxLength":500},"filters":{"$ref":"#/components/schemas/Filters2"},"listIds":{"maxItems":100,"type":"array","items":{"type":"string","minLength":1,"maxLength":128}},"sources":{"maxItems":100,"type":"array","items":{"type":"string","minLength":1,"maxLength":128}},"sequenceIds":{"maxItems":100,"type":"array","items":{"type":"string","minLength":1,"maxLength":128}},"bodyTemplate":{"type":"string","maxLength":8000},"authHeaders":{"$ref":"#/components/schemas/AuthHeaders"},"throttleSeconds":{"type":"integer","minimum":0,"maximum":86400},"throttleTopics":{"maxItems":50,"type":"array","items":{"type":"string","maxLength":100,"pattern":"^(\\*|[a-z_]+(\\.[a-z_]+)*(\\.\\*)?)$"}}},"required":["url","topics"]}}}},"responses":{"201":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PostV1WebhooksEndpointsResponse"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"postV1WebhooksEndpoints"},"delete":{"summary":"Delete every webhook subscription in the workspace (pending deliveries are cancelled)","tags":["webhooks"],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"deleted":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["deleted"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"deleteV1WebhooksEndpoints"}},"/v1/webhooks/endpoints/{id}":{"get":{"tags":["webhooks"],"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ItemsItem66"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1WebhooksEndpointsById"},"patch":{"tags":["webhooks"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"url":{"type":"string","maxLength":2048,"format":"uri"},"topics":{"minItems":1,"maxItems":50,"type":"array","items":{"type":"string","maxLength":100,"pattern":"^(\\*|[a-z_]+(\\.[a-z_]+)*(\\.\\*)?)$"}},"filters":{"$ref":"#/components/schemas/Filters2"},"listIds":{"maxItems":100,"type":"array","items":{"type":"string","minLength":1,"maxLength":128}},"sources":{"maxItems":100,"type":"array","items":{"type":"string","minLength":1,"maxLength":128}},"sequenceIds":{"maxItems":100,"type":"array","items":{"type":"string","minLength":1,"maxLength":128}},"description":{"nullable":true,"type":"string","maxLength":500},"bodyTemplate":{"nullable":true,"type":"string","maxLength":8000},"authHeaders":{"$ref":"#/components/schemas/AuthHeaders"},"throttleSeconds":{"type":"integer","minimum":0,"maximum":86400},"throttleTopics":{"maxItems":50,"type":"array","items":{"type":"string","maxLength":100,"pattern":"^(\\*|[a-z_]+(\\.[a-z_]+)*(\\.\\*)?)$"}},"status":{"type":"string","enum":["active","disabled"]}}}}}},"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ItemsItem66"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"patchV1WebhooksEndpointsById"},"delete":{"tags":["webhooks"],"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"ok":{"type":"boolean","enum":[true]}},"required":["ok"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"deleteV1WebhooksEndpointsById"}},"/v1/webhooks/endpoints/{id}/rotate-secret":{"post":{"tags":["webhooks"],"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"secret":{"type":"string"}},"required":["secret"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"postV1WebhooksEndpointsByIdRotateSecret"}},"/v1/webhooks/endpoints/{id}/test":{"post":{"tags":["webhooks"],"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PostV1WebhooksEndpointsByIdTestResponse"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"postV1WebhooksEndpointsByIdTest"}},"/v1/webhooks/topics":{"get":{"summary":"Every webhook topic with description, payload schema and example","tags":["webhooks"],"parameters":[{"schema":{"type":"integer","minimum":1,"maximum":200},"in":"query","name":"limit","required":false,"description":"Page size; omitted returns the whole list"},{"schema":{"type":"string","pattern":"^\\d{1,9}$"},"in":"query","name":"cursor","required":false,"description":"Opaque: the `nextCursor` of the previous page"}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"items":{"type":"array","items":{"$ref":"#/components/schemas/ItemsItem67"}},"nextCursor":{"nullable":true,"type":"string"}},"required":["items","nextCursor"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1WebhooksTopics"}},"/v1/webhooks/topics/{topic}":{"get":{"tags":["webhooks"],"parameters":[{"schema":{"type":"string","minLength":1,"maxLength":100},"in":"path","name":"topic","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ItemsItem67"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1WebhooksTopicsByTopic"}},"/v1/webhooks/endpoints/{id}/test-topic":{"post":{"summary":"Send a topic's example payload to this endpoint (signed like a real delivery, logged, never retried)","tags":["webhooks"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"topic":{"type":"string","minLength":1,"maxLength":100}},"required":["topic"]}}}},"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PostV1WebhooksEndpointsByIdTestResponse"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"postV1WebhooksEndpointsByIdTestTopic"}},"/v1/webhooks/endpoints/{id}/deliveries":{"get":{"tags":["webhooks"],"parameters":[{"schema":{"default":50,"type":"integer","minimum":1,"maximum":200},"in":"query","name":"limit","required":false},{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"query","name":"cursor","required":false},{"schema":{"type":"string","enum":["pending","succeeded","failed"]},"in":"query","name":"status","required":false},{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"items":{"type":"array","items":{"$ref":"#/components/schemas/PostV1WebhooksEndpointsByIdTestResponse"}},"nextCursor":{"nullable":true,"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},"required":["items","nextCursor"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1WebhooksEndpointsByIdDeliveries"}},"/v1/webhooks/endpoints/{id}/resume":{"post":{"tags":["webhooks"],"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ItemsItem66"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"postV1WebhooksEndpointsByIdResume"}},"/v1/webhooks/endpoints/{id}/retrigger-failed":{"post":{"summary":"Requeue this endpoint's failed deliveries with a fresh retry window","tags":["webhooks"],"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"202":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requeued":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["requeued"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"postV1WebhooksEndpointsByIdRetriggerFailed"}},"/v1/integrations/secrets":{"get":{"summary":"Secret names (values are never returned)","tags":["webhooks"],"parameters":[{"schema":{"type":"integer","minimum":1,"maximum":200},"in":"query","name":"limit","required":false,"description":"Page size; omitted returns the whole list"},{"schema":{"type":"string","pattern":"^\\d{1,9}$"},"in":"query","name":"cursor","required":false,"description":"Opaque: the `nextCursor` of the previous page"}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"items":{"type":"array","items":{"$ref":"#/components/schemas/ItemsItem68"}},"nextCursor":{"nullable":true,"type":"string"}},"required":["items","nextCursor"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1IntegrationsSecrets"}},"/v1/integrations/secrets/{name}":{"put":{"summary":"Create or replace a secret","tags":["webhooks"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"value":{"type":"string","minLength":1,"maxLength":4096},"description":{"nullable":true,"type":"string","maxLength":300}},"required":["value"]}}}},"parameters":[{"schema":{"type":"string","pattern":"^[a-z0-9][a-z0-9_.-]{0,99}$"},"in":"path","name":"name","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ItemsItem68"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"putV1IntegrationsSecretsByName"},"delete":{"summary":"Delete a secret no endpoint uses","tags":["webhooks"],"parameters":[{"schema":{"type":"string","pattern":"^[a-z0-9][a-z0-9_.-]{0,99}$"},"in":"path","name":"name","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"ok":{"type":"boolean","enum":[true]}},"required":["ok"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"deleteV1IntegrationsSecretsByName"}},"/v1/webhooks/journal":{"get":{"summary":"Events after an offset, optionally as one endpoint would have received them","tags":["webhooks"],"parameters":[{"schema":{"default":100,"type":"integer","minimum":1,"maximum":500},"in":"query","name":"limit","required":false},{"schema":{"type":"integer","minimum":0,"maximum":9007199254740991},"in":"query","name":"after","required":false},{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"query","name":"endpointId","required":false},{"schema":{"type":"string","maxLength":100,"pattern":"^(\\*|[a-z_]+(\\.[a-z_]+)*(\\.\\*)?)$"},"in":"query","name":"topic","required":false}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"items":{"$ref":"#/components/schemas/Items21"},"nextOffset":{"nullable":true,"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["items","nextOffset"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1WebhooksJournal"}},"/v1/webhooks/journal/snapshots":{"post":{"summary":"Write the current state of listed contacts into the journal as crm.snapshot entries, or freeze a segment and queue its entries for the worker","tags":["webhooks"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"segmentId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"profileIds":{"$ref":"#/components/schemas/ProfileIds5"}}}}}},"responses":{"201":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"snapshotId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"records":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"entries":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"queued":{"type":"boolean"}},"required":["snapshotId","records","entries","queued"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"postV1WebhooksJournalSnapshots"}},"/v1/webhooks/journal/bounds":{"get":{"tags":["webhooks"],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"earliest":{"nullable":true,"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"latest":{"nullable":true,"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["earliest","latest"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1WebhooksJournalBounds"}},"/v1/webhooks/journal/earliest/{count}":{"get":{"tags":["webhooks"],"parameters":[{"schema":{"type":"integer","minimum":1,"maximum":200},"in":"query","name":"limit","required":false,"description":"Page size; omitted returns the whole list"},{"schema":{"type":"string","pattern":"^\\d{1,9}$"},"in":"query","name":"cursor","required":false,"description":"Opaque: the `nextCursor` of the previous page"},{"schema":{"type":"integer","minimum":1,"maximum":500},"in":"path","name":"count","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetV1WebhooksJournalEarliestByCountResponse"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1WebhooksJournalEarliestByCount"}},"/v1/webhooks/journal/latest/{count}":{"get":{"tags":["webhooks"],"parameters":[{"schema":{"type":"integer","minimum":1,"maximum":200},"in":"query","name":"limit","required":false,"description":"Page size; omitted returns the whole list"},{"schema":{"type":"string","pattern":"^\\d{1,9}$"},"in":"query","name":"cursor","required":false,"description":"Opaque: the `nextCursor` of the previous page"},{"schema":{"type":"integer","minimum":1,"maximum":500},"in":"path","name":"count","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetV1WebhooksJournalEarliestByCountResponse"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1WebhooksJournalLatestByCount"}},"/v1/webhooks/journal/batch-read":{"post":{"tags":["webhooks"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"offsets":{"minItems":1,"maxItems":500,"type":"array","items":{"type":"integer","minimum":0,"maximum":9007199254740991}}},"required":["offsets"]}}}},"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"items":{"$ref":"#/components/schemas/Items21"}},"required":["items"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"postV1WebhooksJournalBatchRead"}},"/v1/webhooks/summary":{"get":{"tags":["webhooks"],"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"query","name":"endpointId","required":false},{"schema":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"in":"query","name":"since","required":false},{"schema":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"in":"query","name":"until","required":false}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"total":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"succeeded":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"failed":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"pending":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"avgLatencyMs":{"nullable":true,"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["total","succeeded","failed","pending","avgLatencyMs"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1WebhooksSummary"}},"/v1/webhooks/summary-by-date":{"get":{"tags":["webhooks"],"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"query","name":"endpointId","required":false},{"schema":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"in":"query","name":"since","required":false},{"schema":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"in":"query","name":"until","required":false},{"schema":{"type":"integer","minimum":1,"maximum":200},"in":"query","name":"limit","required":false,"description":"Page size; omitted returns the whole list"},{"schema":{"type":"string","pattern":"^\\d{1,9}$"},"in":"query","name":"cursor","required":false,"description":"Opaque: the `nextCursor` of the previous page"}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"items":{"type":"array","items":{"type":"object","properties":{"total":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"succeeded":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"failed":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"pending":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"avgLatencyMs":{"nullable":true,"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"date":{"type":"string"}},"required":["total","succeeded","failed","pending","avgLatencyMs","date"],"additionalProperties":false}},"nextCursor":{"nullable":true,"type":"string"}},"required":["items","nextCursor"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1WebhooksSummaryByDate"}},"/v1/webhooks/deliveries/export":{"get":{"summary":"Download the delivery log (NDJSON with payloads, or CSV)","tags":["webhooks"],"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"query","name":"endpointId","required":false},{"schema":{"type":"string","enum":["pending","succeeded","failed"]},"in":"query","name":"status","required":false},{"schema":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"in":"query","name":"since","required":false},{"schema":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"in":"query","name":"until","required":false},{"schema":{"default":"ndjson","type":"string","enum":["ndjson","csv"]},"in":"query","name":"format","required":false}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1WebhooksDeliveriesExport"}},"/v1/webhooks/deliveries/{id}/replay":{"post":{"tags":["webhooks"],"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"202":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PostV1WebhooksEndpointsByIdTestResponse"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"postV1WebhooksDeliveriesByIdReplay"}},"/v1/webhook-templates":{"get":{"tags":["webhooks"],"parameters":[{"schema":{"type":"integer","minimum":1,"maximum":200},"in":"query","name":"limit","required":false,"description":"Page size; omitted returns the whole list"},{"schema":{"type":"string","pattern":"^\\d{1,9}$"},"in":"query","name":"cursor","required":false,"description":"Opaque: the `nextCursor` of the previous page"}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"items":{"type":"array","items":{"$ref":"#/components/schemas/ItemsItem70"}},"nextCursor":{"nullable":true,"type":"string"}},"required":["items","nextCursor"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1WebhookTemplates"},"post":{"tags":["webhooks"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":100},"url":{"default":"","anyOf":[{"type":"string","maxLength":2000,"format":"uri"},{"type":"string","enum":[""]}]},"method":{"default":"POST","type":"string","enum":["POST","PUT","PATCH","DELETE","GET","HEAD","OPTIONS"]},"headers":{"default":{},"type":"object","additionalProperties":{"type":"string","maxLength":500}},"body":{"default":null,"nullable":true,"type":"object","additionalProperties":{}},"authHeaders":{"$ref":"#/components/schemas/AuthHeaders4"},"description":{"default":"","type":"string","maxLength":300},"inputs":{"default":[],"maxItems":20,"type":"array","items":{"$ref":"#/components/schemas/InputsItem2"}},"outputs":{"default":[],"maxItems":20,"type":"array","items":{"$ref":"#/components/schemas/OutputsItem2"}},"kind":{"default":"webhook","type":"string","enum":["webhook","code"]},"status":{"default":"published","type":"string","enum":["draft","published","archived"]},"labels":{"default":{},"type":"object","additionalProperties":{"type":"string","maxLength":100}},"executionRules":{"default":[],"maxItems":20,"type":"array","items":{"$ref":"#/components/schemas/ExecutionRulesItem2"}},"code":{"default":null,"nullable":true,"type":"string","maxLength":100000},"preActionCode":{"default":null,"nullable":true,"type":"string","maxLength":50000},"allowedHosts":{"default":[],"maxItems":20,"type":"array","items":{"type":"string","pattern":"^(\\*\\.)?[a-z0-9-]+(\\.[a-z0-9-]+)+$"}},"secretNames":{"default":[],"maxItems":10,"type":"array","items":{"type":"string","minLength":1,"maxLength":100}},"timeoutMs":{"default":5000,"type":"integer","minimum":100,"maximum":30000},"memoryMb":{"default":64,"type":"integer","minimum":16,"maximum":256}},"required":["name"]}}}},"responses":{"201":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ItemsItem70"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"postV1WebhookTemplates"}},"/v1/webhook-templates/{id}":{"get":{"tags":["webhooks"],"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ItemsItem70"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1WebhookTemplatesById"},"patch":{"tags":["webhooks"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":100},"url":{"anyOf":[{"type":"string","maxLength":2000,"format":"uri"},{"type":"string","enum":[""]}]},"method":{"type":"string","enum":["POST","PUT","PATCH","DELETE","GET","HEAD","OPTIONS"]},"headers":{"type":"object","additionalProperties":{"type":"string","maxLength":500}},"body":{"nullable":true,"type":"object","additionalProperties":{}},"authHeaders":{"$ref":"#/components/schemas/AuthHeaders"},"description":{"type":"string","maxLength":300},"inputs":{"maxItems":20,"type":"array","items":{"$ref":"#/components/schemas/InputsItem2"}},"outputs":{"maxItems":20,"type":"array","items":{"$ref":"#/components/schemas/OutputsItem2"}},"kind":{"type":"string","enum":["webhook","code"]},"status":{"type":"string","enum":["draft","published","archived"]},"labels":{"type":"object","additionalProperties":{"type":"string","maxLength":100}},"executionRules":{"maxItems":20,"type":"array","items":{"$ref":"#/components/schemas/ExecutionRulesItem2"}},"code":{"nullable":true,"type":"string","maxLength":100000},"preActionCode":{"nullable":true,"type":"string","maxLength":50000},"allowedHosts":{"maxItems":20,"type":"array","items":{"type":"string","pattern":"^(\\*\\.)?[a-z0-9-]+(\\.[a-z0-9-]+)+$"}},"secretNames":{"maxItems":10,"type":"array","items":{"type":"string","minLength":1,"maxLength":100}},"timeoutMs":{"type":"integer","minimum":100,"maximum":30000},"memoryMb":{"type":"integer","minimum":16,"maximum":256}}}}}},"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ItemsItem70"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"patchV1WebhookTemplatesById"},"delete":{"tags":["webhooks"],"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"ok":{"type":"boolean","enum":[true]}},"required":["ok"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"deleteV1WebhookTemplatesById"}},"/v1/webhook-templates/{id}/inputs/{key}/options":{"get":{"summary":"Dropdown values for an enum input (fixed options, or loaded from its options URL)","tags":["webhooks"],"parameters":[{"schema":{"type":"integer","minimum":1,"maximum":200},"in":"query","name":"limit","required":false,"description":"Page size; omitted returns the whole list"},{"schema":{"type":"string","pattern":"^\\d{1,9}$"},"in":"query","name":"cursor","required":false,"description":"Opaque: the `nextCursor` of the previous page"},{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true},{"schema":{"type":"string","minLength":1,"maxLength":40},"in":"path","name":"key","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"items":{"type":"array","items":{"type":"object","properties":{"label":{"type":"string"},"value":{"type":"string"}},"required":["label","value"],"additionalProperties":false}},"nextCursor":{"nullable":true,"type":"string"}},"required":["items","nextCursor"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1WebhookTemplatesByIdInputsByKeyOptions"}},"/v1/webhook-templates/test":{"post":{"summary":"Make a real test call (saved template or ad-hoc), SSRF-guarded, never retried","tags":["webhooks"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"templateId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"url":{"type":"string","maxLength":2000,"format":"uri"},"method":{"type":"string","enum":["POST","PUT","PATCH","DELETE","GET","HEAD","OPTIONS"]},"headers":{"default":{},"type":"object","additionalProperties":{"type":"string","maxLength":500}},"body":{"nullable":true,"type":"object","additionalProperties":{}},"authHeaders":{"$ref":"#/components/schemas/AuthHeaders4"}}}}}},"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"ok":{"type":"boolean"},"status":{"nullable":true,"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"error":{"nullable":true,"type":"string"},"blocked":{"type":"boolean"},"response":{}},"required":["ok","status","error","blocked"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"postV1WebhookTemplatesTest"}},"/v1/webhooks/journal/exports":{"post":{"summary":"Start a background export of the journal (optionally as one endpoint would receive it); poll GET /v1/webhooks/journal/exports/:id","tags":["webhooks"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"after":{"type":"integer","minimum":0,"maximum":9007199254740991},"endpointId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"topic":{"type":"string","maxLength":100,"pattern":"^(\\*|[a-z_]+(\\.[a-z_]+)*(\\.\\*)?)$"}}}}}},"responses":{"202":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ItemsItem14"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"postV1WebhooksJournalExports"}},"/v1/webhooks/journal/exports/{id}":{"get":{"summary":"Status with progress and error; downloadUrl is set once the job is completed","tags":["webhooks"],"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ItemsItem14"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1WebhooksJournalExportsById"}},"/v1/object-types":{"get":{"tags":["objects"],"parameters":[{"schema":{"type":"integer","minimum":1,"maximum":200},"in":"query","name":"limit","required":false,"description":"Page size; omitted returns the whole list"},{"schema":{"type":"string","pattern":"^\\d{1,9}$"},"in":"query","name":"cursor","required":false,"description":"Opaque: the `nextCursor` of the previous page"}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"items":{"type":"array","items":{"$ref":"#/components/schemas/ItemsItem71"}},"nextCursor":{"nullable":true,"type":"string"}},"required":["items","nextCursor"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1ObjectTypes"},"post":{"tags":["objects"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"key":{"type":"string","pattern":"^[a-z][a-z0-9_]{0,62}$"},"name":{"type":"string","minLength":1,"maxLength":128},"fields":{"default":{},"type":"object","additionalProperties":{"type":"string","enum":["string","number","boolean","date"]}}},"required":["key","name"]}}}},"responses":{"201":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ItemsItem71"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"postV1ObjectTypes"}},"/v1/objects/{type}":{"get":{"tags":["objects"],"parameters":[{"schema":{"default":50,"type":"integer","minimum":1,"maximum":200},"in":"query","name":"limit","required":false},{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"query","name":"cursor","required":false},{"schema":{"type":"string","pattern":"^[a-z][a-z0-9_]{0,62}$"},"in":"path","name":"type","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetV1ObjectsByTypeResponse"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1ObjectsByType"},"post":{"tags":["objects"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"externalId":{"type":"string","minLength":1,"maxLength":256},"name":{"type":"string","minLength":1,"maxLength":256},"attributes":{"default":{},"type":"object","additionalProperties":{}}},"required":["name"]}}}},"parameters":[{"schema":{"type":"string","pattern":"^[a-z][a-z0-9_]{0,62}$"},"in":"path","name":"type","required":true}],"responses":{"201":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ItemsItem72"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"postV1ObjectsByType"}},"/v1/objects/{type}/external/{externalId}":{"get":{"summary":"Look up by your own external id","tags":["objects"],"parameters":[{"schema":{"type":"string","pattern":"^[a-z][a-z0-9_]{0,62}$"},"in":"path","name":"type","required":true},{"schema":{"type":"string","minLength":1,"maxLength":256},"in":"path","name":"externalId","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetV1ObjectsByTypeExternalByExternalIdResponse"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1ObjectsByTypeExternalByExternalId"},"delete":{"tags":["objects"],"parameters":[{"schema":{"type":"string","pattern":"^[a-z][a-z0-9_]{0,62}$"},"in":"path","name":"type","required":true},{"schema":{"type":"string","minLength":1,"maxLength":256},"in":"path","name":"externalId","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"ok":{"type":"boolean","enum":[true]}},"required":["ok"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"deleteV1ObjectsByTypeExternalByExternalId"}},"/v1/objects/{type}/{id}":{"get":{"tags":["objects"],"parameters":[{"schema":{"type":"string","pattern":"^[a-z][a-z0-9_]{0,62}$"},"in":"path","name":"type","required":true},{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetV1ObjectsByTypeExternalByExternalIdResponse"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1ObjectsByTypeById"},"patch":{"tags":["objects"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":256},"attributes":{"type":"object","additionalProperties":{}}}}}}},"parameters":[{"schema":{"type":"string","pattern":"^[a-z][a-z0-9_]{0,62}$"},"in":"path","name":"type","required":true},{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ItemsItem72"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"patchV1ObjectsByTypeById"},"delete":{"tags":["objects"],"parameters":[{"schema":{"type":"string","pattern":"^[a-z][a-z0-9_]{0,62}$"},"in":"path","name":"type","required":true},{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"ok":{"type":"boolean","enum":[true]}},"required":["ok"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"deleteV1ObjectsByTypeById"}},"/v1/objects/{type}/{id}/links":{"post":{"tags":["objects"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"profileId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"role":{"type":"string","maxLength":64}},"required":["profileId"]}}}},"parameters":[{"schema":{"type":"string","pattern":"^[a-z][a-z0-9_]{0,62}$"},"in":"path","name":"type","required":true},{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"ok":{"type":"boolean","enum":[true]}},"required":["ok"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"postV1ObjectsByTypeByIdLinks"}},"/v1/objects/{type}/{id}/links/{profileId}":{"delete":{"tags":["objects"],"parameters":[{"schema":{"type":"string","pattern":"^[a-z][a-z0-9_]{0,62}$"},"in":"path","name":"type","required":true},{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true},{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"profileId","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"ok":{"type":"boolean","enum":[true]}},"required":["ok"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"deleteV1ObjectsByTypeByIdLinksByProfileId"}},"/v1/imports":{"post":{"summary":"Upload a CSV, an Excel .xlsx (first sheet) or a ZIP containing a CSV (multipart: file + mapping, delimiter?, listId?, tags?, consentAssertion?, verifyEmail?, defaultCountry?)","tags":["imports"],"responses":{"201":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PostV1ImportsResponse"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"postV1Imports"},"get":{"tags":["imports"],"parameters":[{"schema":{"default":50,"type":"integer","minimum":1,"maximum":200},"in":"query","name":"limit","required":false},{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"query","name":"cursor","required":false}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"items":{"type":"array","items":{"$ref":"#/components/schemas/PostV1ImportsResponse"}},"nextCursor":{"nullable":true,"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},"required":["items","nextCursor"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1Imports"}},"/v1/imports/{id}":{"get":{"tags":["imports"],"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PostV1ImportsResponse"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1ImportsById"}},"/v1/imports/{id}/preview":{"get":{"summary":"First 20 rows as they would be imported, with per-row errors","tags":["imports"],"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"headers":{"type":"array","items":{"type":"string"}},"rows":{"type":"array","items":{"type":"object","properties":{"row":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"identifiers":{"type":"object","additionalProperties":{"type":"string"}},"standard":{"type":"object","additionalProperties":{"type":"string"}},"attributes":{"type":"object","additionalProperties":{"type":"string"}},"errors":{"type":"array","items":{"type":"string"}},"warnings":{"type":"array","items":{"type":"string"}}},"required":["row","identifiers","standard","attributes","errors","warnings"],"additionalProperties":false}}},"required":["headers","rows"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1ImportsByIdPreview"}},"/v1/imports/{id}/append":{"post":{"summary":"Add more CSV rows (no header line) to an upload that has not been committed yet; send big files in several calls, then commit","tags":["imports"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"csv":{"type":"string","minLength":1,"maxLength":5000000}},"required":["csv"]}}}},"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PostV1ImportsResponse"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"postV1ImportsByIdAppend"}},"/v1/imports/{id}/commit":{"post":{"tags":["imports"],"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"202":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PostV1ImportsResponse"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"postV1ImportsByIdCommit"}},"/v1/imports/{id}/cancel":{"post":{"summary":"Stop an import that has not finished (a running one stops at its next batch)","tags":["imports"],"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PostV1ImportsResponse"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"postV1ImportsByIdCancel"}},"/v1/imports/{id}/rollback":{"post":{"summary":"Undo a completed import within 7 days: deletes the profiles it created","tags":["imports"],"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PostV1ImportsResponse"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"postV1ImportsByIdRollback"}},"/v1/profiles/bulk":{"post":{"summary":"Tag, untag, add/remove list, subscribe, unsubscribe, suppress, unsuppress or delete many profiles as a background job","tags":["bulk"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"op":{"type":"string","enum":["tag"]},"selector":{"$ref":"#/components/schemas/Selector"},"tags":{"minItems":1,"maxItems":20,"type":"array","items":{"type":"string","minLength":1,"maxLength":64}}},"required":["op","selector","tags"]},{"type":"object","properties":{"op":{"type":"string","enum":["untag"]},"selector":{"$ref":"#/components/schemas/Selector"},"tags":{"minItems":1,"maxItems":20,"type":"array","items":{"type":"string","minLength":1,"maxLength":64}}},"required":["op","selector","tags"]},{"type":"object","properties":{"op":{"type":"string","enum":["add_list"]},"selector":{"$ref":"#/components/schemas/Selector"},"listId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},"required":["op","selector","listId"]},{"type":"object","properties":{"op":{"type":"string","enum":["remove_list"]},"selector":{"$ref":"#/components/schemas/Selector"},"listId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},"required":["op","selector","listId"]},{"type":"object","properties":{"op":{"type":"string","enum":["suppress"]},"selector":{"$ref":"#/components/schemas/Selector"}},"required":["op","selector"]},{"type":"object","properties":{"op":{"type":"string","enum":["delete"]},"selector":{"$ref":"#/components/schemas/Selector"}},"required":["op","selector"]},{"type":"object","properties":{"op":{"type":"string","enum":["archive"]},"selector":{"$ref":"#/components/schemas/Selector"}},"required":["op","selector"]},{"type":"object","properties":{"op":{"type":"string","enum":["restore"]},"selector":{"$ref":"#/components/schemas/Selector"}},"required":["op","selector"]},{"type":"object","properties":{"op":{"type":"string","enum":["set_frequency"]},"selector":{"$ref":"#/components/schemas/Selector"},"emailFrequency":{"type":"string","enum":["all","daily","weekly","monthly"]},"smsFrequency":{"type":"string","enum":["all","daily","weekly","monthly"]}},"required":["op","selector"]},{"type":"object","properties":{"op":{"type":"string","enum":["set_tracking_opt_out"]},"selector":{"$ref":"#/components/schemas/Selector"},"optOut":{"type":"boolean"}},"required":["op","selector","optOut"]},{"type":"object","properties":{"op":{"type":"string","enum":["subscribe"]},"selector":{"$ref":"#/components/schemas/Selector"},"consentAssertion":{"$ref":"#/components/schemas/ConsentAssertion"},"topicId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},"required":["op","selector","consentAssertion"]},{"type":"object","properties":{"op":{"type":"string","enum":["unsubscribe"]},"selector":{"$ref":"#/components/schemas/Selector"},"channel":{"type":"string","enum":["email","sms","whatsapp","push","postcard"]},"purpose":{"default":"marketing","type":"string","enum":["marketing","prospecting","transactional","operational"]},"topicId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},"required":["op","selector","channel"]},{"type":"object","properties":{"op":{"type":"string","enum":["unsuppress"]},"selector":{"$ref":"#/components/schemas/Selector"},"channel":{"type":"string","enum":["email","sms","whatsapp","push","postcard"]},"reason":{"type":"string","minLength":1,"maxLength":500}},"required":["op","selector","reason"]}]}}}},"responses":{"202":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ItemsItem14"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"postV1ProfilesBulk"}},"/v1/profiles/bulk/{id}":{"get":{"tags":["bulk"],"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ItemsItem14"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1ProfilesBulkById"}},"/v1/exports/{id}":{"get":{"tags":["bulk"],"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ItemsItem14"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1ExportsById"}},"/v1/files":{"get":{"tags":["bulk"],"parameters":[{"schema":{"type":"string","minLength":1,"maxLength":512},"in":"query","name":"key","required":true},{"schema":{"type":"number"},"in":"query","name":"exp","required":true},{"schema":{"type":"string","minLength":1,"maxLength":128},"in":"query","name":"sig","required":true}],"security":[],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1Files"}},"/v1/forms":{"get":{"summary":"Filter by name, status, kind, ad id and created/updated ranges; sort by created, updated or name","tags":["forms"],"parameters":[{"schema":{"default":50,"type":"integer","minimum":1,"maximum":200},"in":"query","name":"limit","required":false},{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"query","name":"cursor","required":false},{"schema":{"type":"string","minLength":1,"maxLength":200},"in":"query","name":"name","required":false},{"schema":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"in":"query","name":"createdFrom","required":false},{"schema":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"in":"query","name":"createdTo","required":false},{"schema":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"in":"query","name":"updatedFrom","required":false},{"schema":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"in":"query","name":"updatedTo","required":false},{"schema":{"default":"-created","type":"string","enum":["created","-created","updated","-updated","name","-name"]},"in":"query","name":"sort","required":false},{"schema":{"type":"string","enum":["draft","published","archived"]},"in":"query","name":"status","required":false},{"schema":{"type":"string","enum":["embed","popup","flyout","full_page","preference_center","bar"]},"in":"query","name":"kind","required":false},{"schema":{"type":"string","minLength":1,"maxLength":128},"in":"query","name":"ad_id","required":false}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"items":{"type":"array","items":{"$ref":"#/components/schemas/ItemsItem73"}},"nextCursor":{"nullable":true,"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},"required":["items","nextCursor"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1Forms"},"post":{"tags":["forms"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":200},"kind":{"default":"full_page","type":"string","enum":["embed","popup","flyout","full_page","preference_center","bar"]},"definition":{"$ref":"#/components/schemas/Definition6"},"targeting":{"$ref":"#/components/schemas/Targeting"},"adId":{"nullable":true,"type":"string","minLength":1,"maxLength":128}},"required":["name","definition"]}}}},"responses":{"201":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ItemsItem73"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"postV1Forms"}},"/v1/forms/{id}":{"get":{"tags":["forms"],"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ItemsItem73"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1FormsById"},"patch":{"tags":["forms"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":200},"definition":{"$ref":"#/components/schemas/Definition6"},"targeting":{"$ref":"#/components/schemas/Targeting2"},"adId":{"nullable":true,"type":"string","minLength":1,"maxLength":128}}}}}},"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ItemsItem73"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"patchV1FormsById"},"put":{"summary":"Replace the draft (name, definition, targeting)","tags":["forms"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":200},"definition":{"$ref":"#/components/schemas/Definition6"},"targeting":{"$ref":"#/components/schemas/Targeting"},"adId":{"nullable":true,"type":"string","minLength":1,"maxLength":128}},"required":["name","definition"]}}}},"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ItemsItem73"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"putV1FormsById"},"delete":{"tags":["forms"],"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"ok":{"type":"boolean","enum":[true]}},"required":["ok"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"deleteV1FormsById"}},"/v1/forms/{id}/publish":{"post":{"tags":["forms"],"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string"}},"required":["id"],"additionalProperties":{}}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"postV1FormsByIdPublish"}},"/v1/forms/{id}/ab":{"post":{"tags":["forms"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","maxLength":200},"variants":{"minItems":2,"maxItems":10,"type":"array","items":{"type":"object","properties":{"formId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"weight":{"type":"integer","minimum":1,"maximum":1000}},"required":["formId","weight"]}}},"required":["variants"]}}}},"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"201":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string"}},"required":["id"],"additionalProperties":{}}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"postV1FormsByIdAb"}},"/v1/forms/{id}/ab-report":{"get":{"tags":["forms"],"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{},"additionalProperties":{}}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1FormsByIdAbReport"}},"/v1/forms/{id}/ab-promote":{"post":{"tags":["forms"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"winnerFormId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},"required":["winnerFormId"]}}}},"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string"}},"required":["id"],"additionalProperties":{}}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"postV1FormsByIdAbPromote"}},"/v1/forms/{id}/unpublish":{"post":{"tags":["forms"],"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ItemsItem73"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"postV1FormsByIdUnpublish"}},"/v1/forms/{id}/versions":{"get":{"summary":"Published versions, newest first; includes the A/B experiment the form belongs to","tags":["forms"],"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"abExperimentId":{"nullable":true,"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"items":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"formId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"publishedAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"live":{"type":"boolean"}},"required":["id","formId","publishedAt","live"],"additionalProperties":{}}}},"required":["abExperimentId","items"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1FormsByIdVersions"}},"/v1/forms/{id}/versions/{versionId}":{"get":{"tags":["forms"],"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true},{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"versionId","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string"}},"required":["id"],"additionalProperties":{}}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1FormsByIdVersionsByVersionId"}},"/v1/forms/{id}/versions/{versionId}/restore":{"post":{"summary":"Copy a version into the draft; publish to make it live","tags":["forms"],"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true},{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"versionId","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ItemsItem73"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"postV1FormsByIdVersionsByVersionIdRestore"}},"/v1/forms/{id}/step-funnel":{"get":{"summary":"Per-step funnel of a multi-step form (on-site form_step events): visitors who reached, completed and skipped each step, from..to inclusive (UTC days)","tags":["forms"],"parameters":[{"schema":{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"},"in":"query","name":"from","required":true},{"schema":{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"},"in":"query","name":"to","required":true},{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"steps":{"type":"array","items":{"type":"object","properties":{"step":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"reached":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"completed":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"skipped":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["step","reached","completed","skipped"],"additionalProperties":false}}},"required":["steps"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1FormsByIdStepFunnel"}},"/v1/forms/{id}/summary":{"get":{"tags":["forms"],"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"total":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"fields":{"type":"array","items":{"type":"object","properties":{"key":{"type":"string"},"label":{"type":"string"},"type":{"type":"string"},"answered":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"counts":{"$ref":"#/components/schemas/Values"}},"required":["key","label","type","answered","counts"],"additionalProperties":false}}},"required":["total","fields"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1FormsByIdSummary"}},"/v1/forms/{id}/submissions":{"get":{"summary":"Submissions of one form, newest first; `profileId` narrows to one contact","tags":["forms"],"parameters":[{"schema":{"default":50,"type":"integer","minimum":1,"maximum":200},"in":"query","name":"limit","required":false},{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"query","name":"cursor","required":false},{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"query","name":"profileId","required":false},{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetV1FormsByIdSubmissionsResponse"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1FormsByIdSubmissions"}},"/v1/forms/{id}/submissions/export.csv":{"get":{"summary":"Every submission as CSV, oldest first (one column per field)","tags":["forms"],"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"string"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1FormsByIdSubmissionsExportCsv"}},"/v1/forms/{id}/submissions/{submissionId}":{"get":{"tags":["forms"],"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true},{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"submissionId","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ItemsItem74"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1FormsByIdSubmissionsBySubmissionId"},"delete":{"summary":"Delete one submission (the consent records it created stay as proof)","tags":["forms"],"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true},{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"submissionId","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"ok":{"type":"boolean","enum":[true]}},"required":["ok"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"deleteV1FormsByIdSubmissionsBySubmissionId"}},"/v1/forms/{id}/submissions/{submissionId}/resend-confirmation":{"post":{"summary":"Send the double opt-in email again for a submission still waiting (once per hour)","tags":["forms"],"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true},{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"submissionId","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"ok":{"type":"boolean","enum":[true]}},"required":["ok"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"postV1FormsByIdSubmissionsBySubmissionIdResendConfirmation"}},"/v1/form-submissions":{"get":{"summary":"Every form submission of one contact, across forms","tags":["forms"],"parameters":[{"schema":{"default":50,"type":"integer","minimum":1,"maximum":200},"in":"query","name":"limit","required":false},{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"query","name":"cursor","required":false},{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"query","name":"profileId","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetV1FormsByIdSubmissionsResponse"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1FormSubmissions"}},"/p/f/{ref}/upload":{"post":{"summary":"Upload a file for a file field of a published form; the returned URL is the answer to submit","tags":["forms"],"parameters":[{"schema":{"type":"string","pattern":"^[0-9a-f-]{36}\\.[0-9a-f-]{36}$"},"in":"path","name":"ref","required":true}],"security":[],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PostPFByRefUploadResponse"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"postPFByRefUpload"}},"/ingest/v1/forms/{id}/upload":{"post":{"summary":"Same as the hosted upload, for embedded forms (site key)","tags":["forms"],"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PostPFByRefUploadResponse"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"postIngestV1FormsByIdUpload"}},"/ingest/v1/forms/{id}/submit":{"post":{"tags":["forms"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PostIngestV1FormsByIdSubmitBody"}}}},"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PostIngestV1FormsByIdSubmitResponse"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"postIngestV1FormsByIdSubmit"}},"/ingest/v1/forms":{"get":{"tags":["forms"],"parameters":[{"schema":{"type":"string","maxLength":128},"in":"query","name":"v","required":false}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"forms":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"}},"required":["id"],"additionalProperties":{}}}},"required":["forms"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getIngestV1Forms"}},"/p/f/{ref}":{"get":{"summary":"Hosted form page (`pp` = signed progressive-profiling token)","tags":["forms"],"parameters":[{"schema":{"type":"string","maxLength":2048},"in":"query","name":"pp","required":false},{"schema":{"type":"string","pattern":"^[0-9a-f-]{36}\\.[0-9a-f-]{36}$"},"in":"path","name":"ref","required":true}],"security":[],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"string"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getPFByRef"}},"/p/f/{ref}/submit":{"post":{"tags":["forms"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PostIngestV1FormsByIdSubmitBody"}}}},"parameters":[{"schema":{"type":"string","pattern":"^[0-9a-f-]{36}\\.[0-9a-f-]{36}$"},"in":"path","name":"ref","required":true}],"security":[],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PostIngestV1FormsByIdSubmitResponse"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"postPFByRefSubmit"}},"/p/c/{*}":{"get":{"summary":"Double opt-in confirmation page (does not change state)","tags":["forms"],"parameters":[{"schema":{"type":"string","minLength":10,"maxLength":1000},"in":"path","name":"*","required":true}],"security":[],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"string"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getPCWildcard"},"post":{"summary":"Confirm double opt-in; idempotent","tags":["forms"],"parameters":[{"schema":{"type":"string","minLength":10,"maxLength":1000},"in":"path","name":"*","required":true}],"security":[],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"string"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"postPCWildcard"}},"/v1/landing-pages":{"get":{"summary":"Filter by name, state, site, folder, language, archived and created/updated ranges; sort by created, updated or name","tags":["landing-pages"],"parameters":[{"schema":{"default":50,"type":"integer","minimum":1,"maximum":200},"in":"query","name":"limit","required":false},{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"query","name":"cursor","required":false},{"schema":{"type":"string","minLength":1,"maxLength":200},"in":"query","name":"name","required":false},{"schema":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"in":"query","name":"createdFrom","required":false},{"schema":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"in":"query","name":"createdTo","required":false},{"schema":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"in":"query","name":"updatedFrom","required":false},{"schema":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"in":"query","name":"updatedTo","required":false},{"schema":{"default":"-created","type":"string","enum":["created","-created","updated","-updated","name","-name"]},"in":"query","name":"sort","required":false},{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"query","name":"folderId","required":false},{"schema":{"type":"string","maxLength":16},"in":"query","name":"locale","required":false},{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"query","name":"siteId","required":false},{"schema":{"type":"string","enum":["draft","published"]},"in":"query","name":"status","required":false},{"schema":{"type":"string","enum":["true","false"]},"in":"query","name":"archived","required":false}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"items":{"$ref":"#/components/schemas/Items24"},"nextCursor":{"nullable":true,"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},"required":["items","nextCursor"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1LandingPages"},"post":{"summary":"Create a page; `template_id` starts it from a preset when `doc` is left out","tags":["landing-pages"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":200},"slug":{"type":"string","pattern":"^[a-z0-9][a-z0-9-]{0,62}$"},"seoTitle":{"type":"string","maxLength":120},"seoDescription":{"type":"string","maxLength":320},"doc":{"$ref":"#/components/schemas/Doc"},"formId":{"nullable":true,"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"folderId":{"nullable":true,"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"locale":{"nullable":true,"type":"string","pattern":"^[a-z]{2,3}(-[A-Za-z0-9]{2,8})?$"},"noindex":{"type":"boolean"},"headScripts":{"nullable":true,"type":"string","maxLength":10000},"redirect":{"$ref":"#/components/schemas/Redirect"},"unpublishAt":{"nullable":true,"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"template_id":{"type":"string","enum":["blank","lead_capture","webinar","product_launch","coming_soon","ebook","event","thank_you"]},"siteId":{"nullable":true,"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},"required":["name","slug"]}}}},"responses":{"201":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ItemsItem75"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"postV1LandingPages"}},"/v1/landing-pages/report":{"get":{"summary":"Visits, sign-ups, conversion and video plays for every page over a window","tags":["landing-pages"],"parameters":[{"schema":{"default":30,"type":"integer","minimum":1,"maximum":365},"in":"query","name":"days","required":false}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"days":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"items":{"type":"array","items":{"type":"object","properties":{"pageId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"name":{"type":"string"},"slug":{"type":"string"},"status":{"type":"string"},"visits":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"uniqueVisitors":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"signups":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"conversion":{"type":"number"},"videoPlays":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"clicks":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"orders":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"revenueMinor":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"currency":{"nullable":true,"type":"string"}},"required":["pageId","name","slug","status","visits","uniqueVisitors","signups","conversion","videoPlays","clicks","orders","revenueMinor","currency"],"additionalProperties":false}}},"required":["days","items"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1LandingPagesReport"}},"/v1/landing-pages/not-found":{"get":{"summary":"Page addresses visitors requested that serve nothing, most requested first","tags":["landing-pages"],"parameters":[{"schema":{"default":30,"type":"integer","minimum":1,"maximum":365},"in":"query","name":"days","required":false}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"days":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"items":{"type":"array","items":{"type":"object","properties":{"slug":{"type":"string"},"hits":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"lastAt":{"type":"string"}},"required":["slug","hits","lastAt"],"additionalProperties":false}}},"required":["days","items"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1LandingPagesNotFound"}},"/v1/landing-pages/{id}":{"get":{"tags":["landing-pages"],"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ItemsItem75"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1LandingPagesById"},"patch":{"tags":["landing-pages"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PatchV1LandingPagesByIdBody"}}}},"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ItemsItem75"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"patchV1LandingPagesById"},"delete":{"tags":["landing-pages"],"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"ok":{"type":"boolean","enum":[true]}},"required":["ok"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"deleteV1LandingPagesById"}},"/v1/landing-pages/{id}/publish":{"post":{"tags":["landing-pages"],"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ItemsItem75"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"postV1LandingPagesByIdPublish"}},"/v1/landing-pages/{id}/unpublish":{"post":{"tags":["landing-pages"],"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ItemsItem75"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"postV1LandingPagesByIdUnpublish"}},"/v1/landing-pages/{id}/breakdown":{"get":{"summary":"Visits per day, unique visitors and top devices, referrers, countries and UTM sources","tags":["landing-pages"],"parameters":[{"schema":{"default":30,"type":"integer","minimum":1,"maximum":365},"in":"query","name":"days","required":false},{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"days":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"uniqueVisitors":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"daily":{"type":"array","items":{"type":"object","properties":{"day":{"type":"string"},"visits":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"signups":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["day","visits","signups"],"additionalProperties":false}},"devices":{"$ref":"#/components/schemas/Devices"},"referrers":{"$ref":"#/components/schemas/Devices"},"countries":{"$ref":"#/components/schemas/Devices"},"sources":{"$ref":"#/components/schemas/Devices"}},"required":["days","uniqueVisitors","daily","devices","referrers","countries","sources"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1LandingPagesByIdBreakdown"}},"/v1/landing-pages/{id}/analytics/daily":{"get":{"summary":"Daily visits, unique visitors and sign-ups","tags":["landing-pages"],"parameters":[{"schema":{"default":30,"type":"integer","minimum":1,"maximum":365},"in":"query","name":"days","required":false},{"schema":{"type":"integer","minimum":1,"maximum":200},"in":"query","name":"limit","required":false,"description":"Page size; omitted returns the whole list"},{"schema":{"type":"string","pattern":"^\\d{1,9}$"},"in":"query","name":"cursor","required":false,"description":"Opaque: the `nextCursor` of the previous page"},{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"items":{"type":"array","items":{"type":"object","properties":{"day":{"type":"string"},"visits":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"uniqueVisitors":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"signups":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["day","visits","uniqueVisitors","signups"],"additionalProperties":false}},"nextCursor":{"nullable":true,"type":"string"}},"required":["items","nextCursor"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1LandingPagesByIdAnalyticsDaily"}},"/v1/landing-pages/{id}/analytics":{"get":{"tags":["landing-pages"],"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"visits":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"signups":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"conversion":{"type":"number"}},"required":["visits","signups","conversion"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1LandingPagesByIdAnalytics"}},"/p/l/{ref}":{"get":{"summary":"Hosted landing page (language and A/B variant chosen per visitor; `pp` = signed progressive-profiling token)","tags":["landing-pages"],"parameters":[{"schema":{"type":"string","maxLength":2048},"in":"query","name":"pp","required":false},{"schema":{"type":"string","pattern":"^[0-9a-f-]{36}\\.[a-z0-9][a-z0-9-]{0,62}$"},"in":"path","name":"ref","required":true}],"security":[],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"string"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getPLByRef"}},"/p/l/{ref}/submit":{"post":{"tags":["landing-pages"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PostIngestV1FormsByIdSubmitBody"}}}},"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"query","name":"p","required":false},{"schema":{"type":"string","pattern":"^[0-9a-f-]{36}\\.[a-z0-9][a-z0-9-]{0,62}$"},"in":"path","name":"ref","required":true}],"security":[],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PostIngestV1FormsByIdSubmitResponse"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"postPLByRefSubmit"}},"/v1/forms/{id}/captcha-secret":{"get":{"summary":"Whether a captcha secret is stored (the secret itself is never returned)","tags":["forms"],"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"configured":{"type":"boolean"}},"required":["configured"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1FormsByIdCaptchaSecret"},"put":{"summary":"Store (or clear with null) the sealed secret for the form captcha provider","tags":["forms"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"secret":{"nullable":true,"type":"string","minLength":1,"maxLength":500}},"required":["secret"]}}}},"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"ok":{"type":"boolean","enum":[true]}},"required":["ok"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"putV1FormsByIdCaptchaSecret"}},"/v1/forms/{id}/prefill-link":{"post":{"summary":"Signed link that shows the hosted form to a known contact with known fields hidden or pre-filled","tags":["forms"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"profileId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"ttlHours":{"default":72,"type":"integer","minimum":1,"maximum":720}},"required":["profileId"]}}}},"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"token":{"type":"string"},"url":{"type":"string"}},"required":["token","url"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"postV1FormsByIdPrefillLink"}},"/v1/public/lists/{ws}":{"get":{"summary":"Public lists a workspace chose to show (JSON). Subscribe with POST /p/lists/{ws} or the forms ingest endpoints","tags":["forms"],"parameters":[{"schema":{"type":"integer","minimum":1,"maximum":200},"in":"query","name":"limit","required":false,"description":"Page size; omitted returns the whole list"},{"schema":{"type":"string","pattern":"^\\d{1,9}$"},"in":"query","name":"cursor","required":false,"description":"Opaque: the `nextCursor` of the previous page"},{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"ws","required":true}],"security":[],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"items":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"name":{"type":"string"},"description":{"nullable":true,"type":"string"}},"required":["id","name","description"],"additionalProperties":false}},"nextCursor":{"nullable":true,"type":"string"}},"required":["items","nextCursor"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1PublicListsByWs"}},"/p/lists/{ws}":{"get":{"summary":"Public lists directory: pick lists and subscribe","tags":["forms"],"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"ws","required":true}],"security":[],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"string"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getPListsByWs"},"post":{"summary":"Subscribe to the chosen public lists","tags":["forms"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","additionalProperties":{}}}}},"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"ws","required":true}],"security":[],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"string"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"postPListsByWs"}},"/p/me/{*}":{"get":{"summary":"Download or delete your data","tags":["forms"],"parameters":[{"schema":{"type":"string","minLength":10,"maxLength":600},"in":"path","name":"*","required":true}],"security":[],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"string"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getPMeWildcard"},"post":{"summary":"Export or erase your data","tags":["forms"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","additionalProperties":{}}}}},"parameters":[{"schema":{"type":"string","minLength":10,"maxLength":600},"in":"path","name":"*","required":true}],"security":[],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"string"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"postPMeWildcard"}},"/v1/landing-pages/{id}/revisions":{"get":{"summary":"Newest first; draft saves and publishes (50 kept)","tags":["landing-pages"],"parameters":[{"schema":{"type":"integer","minimum":1,"maximum":200},"in":"query","name":"limit","required":false,"description":"Page size; omitted returns the whole list"},{"schema":{"type":"string","pattern":"^\\d{1,9}$"},"in":"query","name":"cursor","required":false,"description":"Opaque: the `nextCursor` of the previous page"},{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"items":{"type":"array","items":{"$ref":"#/components/schemas/ItemsItem76"}},"nextCursor":{"nullable":true,"type":"string"}},"required":["items","nextCursor"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1LandingPagesByIdRevisions"}},"/v1/landing-pages/{id}/revisions/{revisionId}":{"get":{"tags":["landing-pages"],"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true},{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"revisionId","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ItemsItem76"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1LandingPagesByIdRevisionsByRevisionId"}},"/v1/landing-pages/{id}/revisions/{revisionId}/restore":{"post":{"summary":"Copy a revision into the draft; publish: true also pushes it live","tags":["landing-pages"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"publish":{"default":false,"type":"boolean"}}}}}},"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true},{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"revisionId","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ItemsItem75"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"postV1LandingPagesByIdRevisionsByRevisionIdRestore"}},"/v1/landing-pages/{id}/draft/reset":{"post":{"summary":"Discard the draft and return to the live version","tags":["landing-pages"],"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ItemsItem75"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"postV1LandingPagesByIdDraftReset"}},"/v1/landing-pages/{id}/schedule":{"post":{"summary":"Publish the draft at a future time","tags":["landing-pages"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"at":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"}},"required":["at"]}}}},"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ItemsItem75"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"postV1LandingPagesByIdSchedule"},"delete":{"tags":["landing-pages"],"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ItemsItem75"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"deleteV1LandingPagesByIdSchedule"}},"/v1/landing-pages/{id}/clone":{"post":{"tags":["landing-pages"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":200},"slug":{"type":"string","pattern":"^[a-z0-9][a-z0-9-]{0,62}$"}}}}}},"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"201":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ItemsItem75"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"postV1LandingPagesByIdClone"}},"/v1/landing-pages/batch":{"post":{"summary":"create | read | update | archive (delete) up to 50 pages in one transaction","tags":["landing-pages"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"op":{"type":"string","enum":["create"]},"items":{"minItems":1,"maxItems":50,"type":"array","items":{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":200},"slug":{"type":"string","pattern":"^[a-z0-9][a-z0-9-]{0,62}$"},"seoTitle":{"type":"string","maxLength":120},"seoDescription":{"type":"string","maxLength":320},"doc":{"$ref":"#/components/schemas/Doc"},"formId":{"nullable":true,"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"folderId":{"nullable":true,"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"locale":{"nullable":true,"type":"string","pattern":"^[a-z]{2,3}(-[A-Za-z0-9]{2,8})?$"},"noindex":{"type":"boolean"},"headScripts":{"nullable":true,"type":"string","maxLength":10000},"redirect":{"$ref":"#/components/schemas/Redirect"},"unpublishAt":{"nullable":true,"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"}},"required":["name","slug","doc"]}}},"required":["op","items"]},{"$ref":"#/components/schemas/PostV1CampaignFoldersBatchBodyVariant"},{"type":"object","properties":{"op":{"type":"string","enum":["update"]},"items":{"minItems":1,"maxItems":50,"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"patch":{"$ref":"#/components/schemas/PatchV1LandingPagesByIdBody"}},"required":["id","patch"]}}},"required":["op","items"]},{"$ref":"#/components/schemas/PostV1CampaignFoldersBatchBodyVariant2"}]}}}},"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"items":{"$ref":"#/components/schemas/Items24"},"archived":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["items","archived"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"postV1LandingPagesBatch"}},"/v1/landing-pages/{id}/folder":{"put":{"tags":["landing-pages"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PutV1CampaignsByIdFolderBody"}}}},"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ItemsItem75"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"putV1LandingPagesByIdFolder"}},"/v1/landing-page-folders/batch":{"post":{"summary":"create | read | update | archive up to 50 folders in one transaction","tags":["landing-pages"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"op":{"type":"string","enum":["create"]},"items":{"minItems":1,"maxItems":50,"type":"array","items":{"$ref":"#/components/schemas/ItemsItem77"}}},"required":["op","items"]},{"$ref":"#/components/schemas/PostV1CampaignFoldersBatchBodyVariant"},{"type":"object","properties":{"op":{"type":"string","enum":["update"]},"items":{"minItems":1,"maxItems":50,"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"patch":{"$ref":"#/components/schemas/Patch2"}},"required":["id","patch"]}}},"required":["op","items"]},{"$ref":"#/components/schemas/PostV1CampaignFoldersBatchBodyVariant2"}]}}}},"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"items":{"$ref":"#/components/schemas/Items25"},"archived":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["items","archived"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"postV1LandingPageFoldersBatch"}},"/v1/landing-page-folders":{"get":{"tags":["landing-pages"],"parameters":[{"schema":{"type":"integer","minimum":1,"maximum":200},"in":"query","name":"limit","required":false,"description":"Page size; omitted returns the whole list"},{"schema":{"type":"string","pattern":"^\\d{1,9}$"},"in":"query","name":"cursor","required":false,"description":"Opaque: the `nextCursor` of the previous page"}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"items":{"$ref":"#/components/schemas/Items25"},"nextCursor":{"nullable":true,"type":"string"}},"required":["items","nextCursor"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1LandingPageFolders"},"post":{"tags":["landing-pages"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ItemsItem77"}}}},"responses":{"201":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ItemsItem78"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"postV1LandingPageFolders"}},"/v1/landing-page-folders/{id}":{"get":{"tags":["landing-pages"],"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ItemsItem78"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1LandingPageFoldersById"},"patch":{"tags":["landing-pages"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Patch2"}}}},"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ItemsItem78"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"patchV1LandingPageFoldersById"},"delete":{"summary":"Pages move to the root; nothing is deleted","tags":["landing-pages"],"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"ok":{"type":"boolean","enum":[true]}},"required":["ok"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"deleteV1LandingPageFoldersById"}},"/v1/landing-page-folders/{id}/revisions":{"get":{"summary":"Earlier names and parents of this folder, newest first","tags":["landing-pages"],"parameters":[{"schema":{"type":"integer","minimum":1,"maximum":200},"in":"query","name":"limit","required":false,"description":"Page size; omitted returns the whole list"},{"schema":{"type":"string","pattern":"^\\d{1,9}$"},"in":"query","name":"cursor","required":false,"description":"Opaque: the `nextCursor` of the previous page"},{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"items":{"type":"array","items":{"$ref":"#/components/schemas/ItemsItem79"}},"nextCursor":{"nullable":true,"type":"string"}},"required":["items","nextCursor"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1LandingPageFoldersByIdRevisions"}},"/v1/landing-page-folders/{id}/revisions/{revisionId}":{"get":{"tags":["landing-pages"],"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true},{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"revisionId","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ItemsItem79"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1LandingPageFoldersByIdRevisionsByRevisionId"}},"/v1/landing-page-folders/{id}/revisions/{revisionId}/restore":{"post":{"tags":["landing-pages"],"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true},{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"revisionId","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ItemsItem78"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"postV1LandingPageFoldersByIdRevisionsByRevisionIdRestore"}},"/v1/landing-pages/{id}/languages":{"get":{"tags":["landing-pages"],"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"groupId":{"nullable":true,"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"items":{"type":"array","items":{"type":"object","properties":{"pageId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"slug":{"type":"string"},"locale":{"nullable":true,"type":"string"},"primary":{"type":"boolean"},"status":{"type":"string"}},"required":["pageId","slug","locale","primary","status"],"additionalProperties":false}}},"required":["groupId","items"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1LandingPagesByIdLanguages"},"post":{"summary":"Copy the page into a new draft in another language and link them","tags":["landing-pages"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"locale":{"type":"string","pattern":"^[a-z]{2,3}(-[A-Za-z0-9]{2,8})?$"},"name":{"type":"string","minLength":1,"maxLength":200},"slug":{"type":"string","pattern":"^[a-z0-9][a-z0-9-]{0,62}$"}},"required":["locale"]}}}},"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"201":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ItemsItem75"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"postV1LandingPagesByIdLanguages"}},"/v1/landing-pages/{id}/languages/attach":{"post":{"tags":["landing-pages"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"groupPageId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"locale":{"type":"string","pattern":"^[a-z]{2,3}(-[A-Za-z0-9]{2,8})?$"}},"required":["groupPageId","locale"]}}}},"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ItemsItem75"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"postV1LandingPagesByIdLanguagesAttach"}},"/v1/landing-pages/{id}/languages/detach":{"post":{"tags":["landing-pages"],"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ItemsItem75"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"postV1LandingPagesByIdLanguagesDetach"}},"/v1/landing-pages/{id}/languages/primary":{"put":{"summary":"Make this page the group fallback (served at its address by Accept-Language)","tags":["landing-pages"],"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ItemsItem75"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"putV1LandingPagesByIdLanguagesPrimary"}},"/v1/landing-page-languages":{"put":{"summary":"Re-label locales of pages in one group","tags":["landing-pages"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"languages":{"minItems":1,"maxItems":50,"type":"array","items":{"type":"object","properties":{"pageId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"locale":{"type":"string","pattern":"^[a-z]{2,3}(-[A-Za-z0-9]{2,8})?$"}},"required":["pageId","locale"]}}},"required":["languages"]}}}},"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"items":{"$ref":"#/components/schemas/Items24"}},"required":["items"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"putV1LandingPageLanguages"}},"/v1/landing-pages/{id}/ab/variants":{"post":{"summary":"Add a copy as a new arm (even split); publish it to start serving","tags":["landing-pages"],"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"201":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ItemsItem75"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"postV1LandingPagesByIdAbVariants"}},"/v1/landing-pages/{id}/ab/weights":{"put":{"summary":"Traffic split per arm (control included)","tags":["landing-pages"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"weights":{"minItems":2,"maxItems":5,"type":"array","items":{"type":"object","properties":{"pageId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"weight":{"type":"integer","minimum":0,"maximum":100}},"required":["pageId","weight"]}}},"required":["weights"]}}}},"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ItemsItem75"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"putV1LandingPagesByIdAbWeights"}},"/v1/landing-pages/{id}/ab":{"get":{"tags":["landing-pages"],"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"string","enum":["none","running","ended"]},"winnerId":{"nullable":true,"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"arms":{"type":"array","items":{"type":"object","properties":{"pageId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"slug":{"type":"string"},"weight":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"visits":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"signups":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"conversion":{"type":"number"}},"required":["pageId","slug","weight","visits","signups","conversion"],"additionalProperties":false}}},"required":["status","winnerId","arms"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1LandingPagesByIdAb"}},"/v1/landing-pages/{id}/ab/end":{"post":{"summary":"Send all traffic to the winner (best conversion when none is given)","tags":["landing-pages"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"winnerId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}}}}},"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ItemsItem75"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"postV1LandingPagesByIdAbEnd"}},"/v1/landing-pages/{id}/ab/rerun":{"post":{"tags":["landing-pages"],"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ItemsItem75"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"postV1LandingPagesByIdAbRerun"}},"/ingest/v1/subscribe":{"post":{"summary":"Subscribe an email/phone with the consent text the visitor saw","tags":["forms"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"email":{"type":"string","maxLength":254,"format":"email","pattern":"^(?:[A-Za-z0-9_'+\\-]+\\.)*[A-Za-z0-9_'+\\-]*[A-Za-z0-9_+-]@(?:[A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$"},"phone":{"type":"string","minLength":5,"maxLength":32},"channels":{"default":["email"],"minItems":1,"type":"array","items":{"type":"string","enum":["email","sms"]}},"listId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"topicId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"consentText":{"type":"string","minLength":10,"maxLength":4000},"consentVersion":{"default":"1","type":"string","minLength":1,"maxLength":64},"pageUrl":{"type":"string","maxLength":2000},"anonymousId":{"type":"string","minLength":1,"maxLength":128},"properties":{"type":"object","additionalProperties":{}}},"required":["consentText"]}}}},"responses":{"202":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"ok":{"type":"boolean","enum":[true]}},"required":["ok"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"postIngestV1Subscribe"}},"/ingest/v1/back-in-stock":{"post":{"summary":"Ask to be notified when a catalog product is back in stock or drops in price","tags":["forms"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"email":{"type":"string","maxLength":254,"format":"email","pattern":"^(?:[A-Za-z0-9_'+\\-]+\\.)*[A-Za-z0-9_'+\\-]*[A-Za-z0-9_+-]@(?:[A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$"},"phone":{"type":"string","minLength":5,"maxLength":32},"externalId":{"type":"string","minLength":1,"maxLength":256},"kind":{"default":"back_in_stock","type":"string","enum":["back_in_stock","price_drop"]},"variantId":{"type":"string","minLength":1,"maxLength":256},"channel":{"type":"string","enum":["email","sms","push"]}},"required":["externalId"]}}}},"responses":{"202":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"ok":{"type":"boolean","enum":[true]}},"required":["ok"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"postIngestV1BackInStock"}},"/ingest/v1/reviews":{"post":{"summary":"Submit a product review; it stays pending until a moderator publishes it","tags":["reviews"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"productId":{"type":"string","minLength":1,"maxLength":256},"reviewType":{"default":"review","type":"string","enum":["review","question","store"]},"rating":{"type":"integer","minimum":1,"maximum":5},"authorName":{"type":"string","minLength":1,"maxLength":120},"title":{"type":"string","maxLength":200},"body":{"type":"string","maxLength":5000},"email":{"type":"string","maxLength":254,"format":"email","pattern":"^(?:[A-Za-z0-9_'+\\-]+\\.)*[A-Za-z0-9_'+\\-]*[A-Za-z0-9_+-]@(?:[A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$"},"orderId":{"type":"string","minLength":1,"maxLength":256},"images":{"default":[],"maxItems":6,"type":"array","items":{"type":"string","maxLength":2048,"format":"uri"}}},"required":["productId"]}}}},"responses":{"202":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"ok":{"type":"boolean","enum":[true]}},"required":["ok"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"postIngestV1Reviews"},"get":{"summary":"Published reviews of one product, newest first","tags":["reviews"],"parameters":[{"schema":{"type":"string","minLength":1,"maxLength":256},"in":"query","name":"productId","required":true},{"schema":{"default":20,"type":"integer","minimum":1,"maximum":50},"in":"query","name":"limit","required":false},{"schema":{"type":"string","maxLength":300},"in":"query","name":"cursor","required":false},{"schema":{"type":"string","enum":["review","question","store"]},"in":"query","name":"reviewType","required":false},{"schema":{"type":"integer","minimum":1,"maximum":5},"in":"query","name":"rating","required":false},{"schema":{"type":"integer","minimum":1,"maximum":5},"in":"query","name":"minRating","required":false},{"schema":{"type":"string","enum":["true","false"]},"in":"query","name":"verified","required":false},{"schema":{"type":"string","enum":["true","false"]},"in":"query","name":"hasMedia","required":false},{"schema":{"default":"-created","type":"string","enum":["-created","created","-rating","rating","featured"]},"in":"query","name":"sort","required":false}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"items":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"productId":{"type":"string"},"reviewType":{"type":"string"},"rating":{"nullable":true,"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"title":{"nullable":true,"type":"string"},"body":{"nullable":true,"type":"string"},"authorName":{"nullable":true,"type":"string"},"verified":{"type":"boolean"},"featured":{"type":"boolean"},"images":{"type":"array","items":{"type":"string"}},"publicReply":{"nullable":true,"type":"string"},"publicReplyAt":{"nullable":true,"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"createdAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"}},"required":["id","productId","reviewType","rating","title","body","authorName","verified","featured","images","publicReply","publicReplyAt","createdAt"],"additionalProperties":false}},"nextCursor":{"nullable":true,"type":"string"}},"required":["items","nextCursor"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getIngestV1Reviews"}},"/ingest/v1/reviews/media":{"post":{"summary":"Upload one review photo (multipart field \"file\"; JPEG, PNG, WebP or GIF); send the returned URL in the review's images","tags":["reviews"],"responses":{"201":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"url":{"type":"string"}},"required":["url"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"postIngestV1ReviewsMedia"}},"/ingest/v1/review-values-reports":{"get":{"summary":"Count, average and 1-5 histogram of published reviews, per product","tags":["reviews"],"parameters":[{"schema":{"type":"string","minLength":1,"maxLength":256},"in":"query","name":"productId","required":false},{"schema":{"type":"integer","minimum":1,"maximum":200},"in":"query","name":"limit","required":false,"description":"Page size; omitted returns the whole list"},{"schema":{"type":"string","pattern":"^\\d{1,9}$"},"in":"query","name":"cursor","required":false,"description":"Opaque: the `nextCursor` of the previous page"}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetIngestV1ReviewValuesReportsResponse"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getIngestV1ReviewValuesReports"}},"/v1/outbound/prospects/import":{"post":{"tags":["outbound"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"rows":{"minItems":1,"maxItems":5000,"type":"array","items":{"type":"object","properties":{"email":{"type":"string","maxLength":320},"firstName":{"type":"string","maxLength":128},"lastName":{"type":"string","maxLength":128},"title":{"type":"string","maxLength":200},"company":{"type":"string","maxLength":200},"website":{"type":"string","maxLength":300},"linkedinUrl":{"type":"string","maxLength":300},"country":{"type":"string","minLength":2,"maxLength":2},"timezone":{"type":"string","maxLength":64},"customFields":{"default":{},"type":"object","additionalProperties":{}}},"required":["email"]}},"onExisting":{"default":"update","type":"string","enum":["update","skip"]},"ownerRule":{"default":{"kind":"none"},"oneOf":[{"type":"object","properties":{"kind":{"type":"string","enum":["none"]}},"required":["kind"]},{"type":"object","properties":{"kind":{"type":"string","enum":["user"]},"userId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},"required":["kind","userId"]},{"type":"object","properties":{"kind":{"type":"string","enum":["round_robin"]}},"required":["kind"]},{"type":"object","properties":{"kind":{"type":"string","enum":["field"]},"field":{"type":"string","minLength":1,"maxLength":64}},"required":["kind","field"]}]}},"required":["rows"]}}}},"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"created":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"updated":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"skipped":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"errors":{"$ref":"#/components/schemas/Errors2"},"warnings":{"type":"array","items":{"type":"object","properties":{"row":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"warning":{"type":"string"}},"required":["row","warning"],"additionalProperties":false}},"profileIds":{"$ref":"#/components/schemas/Conflicts"}},"required":["created","updated","skipped","errors","warnings","profileIds"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"postV1OutboundProspectsImport"}},"/v1/outbound/prospects/adopt":{"post":{"tags":["outbound"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PostV1ListsByIdMembersBody"}}}},"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"adopted":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["adopted"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"postV1OutboundProspectsAdopt"}},"/v1/outbound/dnc":{"post":{"tags":["outbound"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"emails":{"$ref":"#/components/schemas/Emails5"},"domains":{"default":[],"maxItems":1000,"type":"array","items":{"type":"string","minLength":3,"maxLength":253}}}}}}},"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"suppressed":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"domainsBlocked":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["suppressed","domainsBlocked"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"postV1OutboundDnc"}},"/v1/outbound/prospects":{"get":{"tags":["outbound"],"parameters":[{"schema":{"default":50,"type":"integer","minimum":1,"maximum":200},"in":"query","name":"limit","required":false},{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"query","name":"cursor","required":false},{"schema":{"type":"string","enum":["new","contacted","replied","interested","meeting_booked","won","lost","not_interested","bounced","unsubscribed","do_not_contact"]},"in":"query","name":"status","required":false},{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"query","name":"ownerUserId","required":false},{"schema":{"type":"string"},"in":"query","name":"domain","required":false}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"items":{"type":"array","items":{"$ref":"#/components/schemas/ItemsItem81"}},"nextCursor":{"nullable":true,"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},"required":["items","nextCursor"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1OutboundProspects"}},"/v1/outbound/prospects/{profileId}":{"get":{"tags":["outbound"],"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"profileId","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ItemsItem81"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1OutboundProspectsByProfileId"},"patch":{"tags":["outbound"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"string","enum":["new","contacted","replied","interested","meeting_booked","won","lost","not_interested","bounced","unsubscribed","do_not_contact"]},"ownerUserId":{"nullable":true,"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"dealValueCents":{"nullable":true,"type":"integer","minimum":0,"maximum":2000000000}}}}}},"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"profileId","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ItemsItem81"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"patchV1OutboundProspectsByProfileId"}},"/v1/outbound/sequences":{"get":{"tags":["outbound"],"parameters":[{"schema":{"default":50,"type":"integer","minimum":1,"maximum":200},"in":"query","name":"limit","required":false},{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"query","name":"cursor","required":false}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"items":{"type":"array","items":{"$ref":"#/components/schemas/ItemsItem82"}},"nextCursor":{"nullable":true,"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},"required":["items","nextCursor"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1OutboundSequences"},"post":{"tags":["outbound"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":200},"settings":{"$ref":"#/components/schemas/Sequence"}},"required":["name","settings"]}}}},"responses":{"201":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ItemsItem82"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"postV1OutboundSequences"}},"/v1/outbound/sequences/{id}":{"get":{"tags":["outbound"],"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ItemsItem82"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1OutboundSequencesById"},"patch":{"tags":["outbound"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":200},"settings":{"type":"object","properties":{"steps":{"nullable":true,"maxItems":50,"type":"array","items":{"$ref":"#/components/schemas/StepsItem"}},"schedule":{"nullable":true,"type":"object","properties":{"weekdays":{"default":[1,2,3,4,5],"minItems":1,"type":"array","items":{"type":"integer","minimum":1,"maximum":7}},"startMin":{"default":540,"type":"integer","minimum":0,"maximum":1440},"endMin":{"default":1020,"type":"integer","minimum":0,"maximum":1440},"timezoneSource":{"default":"prospect","type":"string","enum":["prospect","sequence"]},"timezone":{"default":"UTC","type":"string"}}},"mailbox":{"nullable":true,"type":"object","properties":{"poolId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"connectionId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"sticky":{"default":true,"type":"boolean"},"onUnavailable":{"default":"pause","type":"string","enum":["pause","reassign"]}}},"dailyNewLimit":{"nullable":true,"type":"integer","minimum":1,"maximum":100000},"followUpPercent":{"nullable":true,"type":"integer","minimum":0,"maximum":90},"plainTextOnly":{"nullable":true,"type":"boolean"},"trackOpens":{"nullable":true,"type":"boolean"},"unsubscribeText":{"nullable":true,"type":"string","minLength":1,"maxLength":120},"spintaxMode":{"nullable":true,"type":"string","enum":["random","sequential"]},"variables":{"nullable":true,"type":"object","additionalProperties":{"type":"string","maxLength":500}},"blocklist":{"nullable":true,"type":"object","properties":{"emails":{"maxItems":2000,"type":"array","items":{"type":"string","format":"email","pattern":"^(?:[A-Za-z0-9_'+\\-]+\\.)*[A-Za-z0-9_'+\\-]*[A-Za-z0-9_+-]@(?:[A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$"}},"domains":{"default":[],"maxItems":500,"type":"array","items":{"type":"string","pattern":"^[a-z0-9.-]+\\.[a-z]{2,}$"}}}},"reviewBeforeSend":{"nullable":true,"type":"boolean"},"reviewEachMessage":{"nullable":true,"type":"boolean"},"stop":{"nullable":true,"type":"object","properties":{"onReply":{"default":"human","type":"string","enum":["human","any"]},"onAutoReply":{"default":"continue","type":"string","enum":["continue","pause"]},"onOoo":{"default":"pause_until_return","type":"string","enum":["pause_until_return","continue","stop"]},"onCompanyReply":{"default":"none","type":"string","enum":["none","stop","pause"]}}},"onCategory":{"nullable":true,"maxItems":10,"type":"array","items":{"$ref":"#/components/schemas/OnCategoryItem"}},"ownerUserId":{"nullable":true,"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"scheduleId":{"nullable":true,"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"dedupe":{"nullable":true,"type":"object","properties":{"crossSequence":{"default":"skip","type":"string","enum":["skip","allow"]},"contactedWithinDays":{"default":0,"type":"integer","minimum":0,"maximum":3650},"domain":{"default":false,"type":"boolean"}}},"startAt":{"nullable":true,"type":"string","format":"date-time"},"minGapMinutes":{"nullable":true,"type":"integer","minimum":1,"maximum":1440},"senderOverrides":{"nullable":true,"type":"object","additionalProperties":{"type":"object","properties":{"dailyLimit":{"type":"integer","minimum":0,"maximum":100000},"paused":{"type":"boolean"}}}},"abm":{"nullable":true,"type":"object","properties":{"maxPerAccount":{"default":5,"type":"integer","minimum":1,"maximum":100},"onAccountReply":{"default":"stop","type":"string","enum":["none","stop","pause"]}}}}}}}}}},"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ItemsItem82"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"patchV1OutboundSequencesById"},"delete":{"summary":"Permanently delete a sequence (archive it first if it is live or paused)","tags":["outbound"],"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"ok":{"type":"boolean","enum":[true]}},"required":["ok"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"deleteV1OutboundSequencesById"}},"/v1/outbound/sequences/{id}/publish":{"post":{"tags":["outbound"],"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ItemsItem82"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"postV1OutboundSequencesByIdPublish"}},"/v1/outbound/sequences/{id}/pause":{"post":{"tags":["outbound"],"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ItemsItem82"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"postV1OutboundSequencesByIdPause"}},"/v1/outbound/sequences/{id}/resume":{"post":{"tags":["outbound"],"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ItemsItem82"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"postV1OutboundSequencesByIdResume"}},"/v1/outbound/sequences/{id}/archive":{"post":{"tags":["outbound"],"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ItemsItem82"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"postV1OutboundSequencesByIdArchive"}},"/v1/outbound/sequences/{id}/enroll":{"post":{"summary":"Enroll chosen prospects and / or every member of a list (listId: all of its members)","tags":["outbound"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"profileIds":{"$ref":"#/components/schemas/ProfileIds6"},"listId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"ownerUserId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}}}}},"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PostV1OutboundSequencesByIdEnrollResponse"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"postV1OutboundSequencesByIdEnroll"}},"/v1/outbound/inbox":{"get":{"tags":["outbound"],"parameters":[{"schema":{"default":50,"type":"integer","minimum":1,"maximum":200},"in":"query","name":"limit","required":false},{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"query","name":"cursor","required":false},{"schema":{"type":"string","enum":["positive","negative","neutral","ooo","auto_reply","bounce","unsubscribe","meeting","wrong_person"]},"in":"query","name":"category","required":false},{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"query","name":"connectionId","required":false},{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"query","name":"assigneeUserId","required":false},{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"query","name":"sequenceId","required":false},{"schema":{"type":"boolean"},"in":"query","name":"unread","required":false},{"schema":{"type":"string","maxLength":40},"in":"query","name":"label","required":false},{"schema":{"type":"string","enum":["new","contacted","replied","interested","meeting_booked","won","lost","not_interested","bounced","unsubscribed","do_not_contact"]},"in":"query","name":"leadStatus","required":false},{"schema":{"default":false,"type":"boolean"},"in":"query","name":"includeSnoozed","required":false},{"schema":{"type":"string","enum":["campaign","sequence","workflow"]},"in":"query","name":"sourceKind","required":false},{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"query","name":"campaignId","required":false},{"schema":{"type":"boolean"},"in":"query","name":"important","required":false},{"schema":{"type":"boolean"},"in":"query","name":"reminders","required":false},{"schema":{"type":"boolean"},"in":"query","name":"unmatched","required":false},{"schema":{"type":"boolean"},"in":"query","name":"ignored","required":false},{"schema":{"type":"boolean"},"in":"query","name":"archived","required":false},{"schema":{"type":"boolean"},"in":"query","name":"snoozed","required":false},{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"query","name":"listId","required":false}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetV1OutboundInboxResponse"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1OutboundInbox"}},"/v1/outbound/inbox/accuracy":{"get":{"tags":["outbound"],"parameters":[{"schema":{"type":"integer","minimum":1,"maximum":200},"in":"query","name":"limit","required":false,"description":"Page size; omitted returns the whole list"},{"schema":{"type":"string","pattern":"^\\d{1,9}$"},"in":"query","name":"cursor","required":false,"description":"Opaque: the `nextCursor` of the previous page"}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"items":{"type":"array","items":{"type":"object","properties":{"source":{"type":"string"},"total":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"corrected":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"accuracy":{"type":"number"}},"required":["source","total","corrected","accuracy"],"additionalProperties":false}},"nextCursor":{"nullable":true,"type":"string"}},"required":["items","nextCursor"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1OutboundInboxAccuracy"}},"/v1/outbound/inbox/{id}":{"get":{"tags":["outbound"],"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ItemsItem83"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1OutboundInboxById"},"delete":{"summary":"Erase a received message's content (subject, text, headers, stored HTML). An empty marker stays so it is not imported again and counters stay right.","tags":["outbound"],"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"ok":{"type":"boolean","enum":[true]}},"required":["ok"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"deleteV1OutboundInboxById"}},"/v1/outbound/inbox/{id}/thread":{"get":{"tags":["outbound"],"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetV1OutboundInboxByIdThreadResponse"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1OutboundInboxByIdThread"}},"/v1/outbound/inbox/{id}/read":{"post":{"tags":["outbound"],"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"ok":{"type":"boolean","enum":[true]}},"required":["ok"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"postV1OutboundInboxByIdRead"}},"/v1/outbound/inbox/{id}/unread":{"post":{"tags":["outbound"],"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"ok":{"type":"boolean","enum":[true]}},"required":["ok"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"postV1OutboundInboxByIdUnread"}},"/v1/outbound/inbox/{id}/archive":{"post":{"tags":["outbound"],"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"ok":{"type":"boolean","enum":[true]}},"required":["ok"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"postV1OutboundInboxByIdArchive"}},"/v1/outbound/inbox/{id}/assign":{"post":{"tags":["outbound"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PostV1OutboundInboxByIdAssignBody"}}}},"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"ok":{"type":"boolean","enum":[true]}},"required":["ok"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"postV1OutboundInboxByIdAssign"}},"/v1/outbound/inbox/{id}/labels":{"post":{"tags":["outbound"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"labels":{"maxItems":20,"type":"array","items":{"type":"string","minLength":1,"maxLength":40}}},"required":["labels"]}}}},"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"ok":{"type":"boolean","enum":[true]}},"required":["ok"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"postV1OutboundInboxByIdLabels"}},"/v1/outbound/inbox/{id}/snooze":{"post":{"tags":["outbound"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"until":{"type":"string","format":"date-time"}}}}}},"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"ok":{"type":"boolean","enum":[true]}},"required":["ok"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"postV1OutboundInboxByIdSnooze"}},"/v1/outbound/inbox/{id}/category":{"post":{"tags":["outbound"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"category":{"type":"string","enum":["positive","negative","neutral","ooo","auto_reply","bounce","unsubscribe","meeting","wrong_person"]}},"required":["category"]}}}},"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ItemsItem83"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"postV1OutboundInboxByIdCategory"}},"/v1/outbound/inbox/{id}/reply":{"post":{"tags":["outbound"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"text":{"type":"string","minLength":1,"maxLength":20000},"subject":{"type":"string","maxLength":300},"connectionId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"scheduledFor":{"type":"string","format":"date-time"}},"required":["text"]}}}},"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"202":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PostV1MessagesSendResponse"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"postV1OutboundInboxByIdReply"}},"/v1/outbound/inbox/{id}/referral":{"post":{"tags":["outbound"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"enrollSequenceId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}}}}},"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"profileId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"enroll":{"$ref":"#/components/schemas/Enroll"}},"required":["profileId","enroll"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"postV1OutboundInboxByIdReferral"}},"/v1/outbound/tasks":{"get":{"tags":["outbound"],"parameters":[{"schema":{"default":50,"type":"integer","minimum":1,"maximum":200},"in":"query","name":"limit","required":false},{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"query","name":"cursor","required":false},{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"query","name":"assigneeUserId","required":false},{"schema":{"type":"string","enum":["open","done","skipped"]},"in":"query","name":"status","required":false},{"schema":{"type":"string","enum":["overdue","today","upcoming"]},"in":"query","name":"bucket","required":false},{"schema":{"type":"string","enum":["call","linkedin_visit","linkedin_connect","linkedin_message","sms","whatsapp","manual_email","reply_received","custom"]},"in":"query","name":"kind","required":false},{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"query","name":"profileId","required":false},{"schema":{"type":"boolean"},"in":"query","name":"unassigned","required":false},{"schema":{"type":"string","format":"date-time"},"in":"query","name":"dueBefore","required":false},{"schema":{"type":"string","format":"date-time"},"in":"query","name":"dueAfter","required":false},{"schema":{"type":"string","maxLength":40},"in":"query","name":"outcome","required":false}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetV1OutboundTasksResponse"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1OutboundTasks"},"post":{"tags":["outbound"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"kind":{"default":"custom","type":"string","enum":["call","linkedin_visit","linkedin_connect","linkedin_message","sms","whatsapp","manual_email","reply_received","custom"]},"profileId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"title":{"type":"string","minLength":1,"maxLength":200},"notes":{"type":"string","maxLength":5000},"assigneeUserId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"dueAt":{"type":"string","format":"date-time"},"typeId":{"nullable":true,"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"companyId":{"nullable":true,"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"contactIds":{"$ref":"#/components/schemas/SegmentIds"},"plannedMin":{"nullable":true,"type":"integer","minimum":1,"maximum":1440},"remindBeforeMin":{"nullable":true,"type":"integer","minimum":0,"maximum":10080}},"required":["profileId","title"]}}}},"responses":{"201":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ItemsItem85"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"postV1OutboundTasks"}},"/v1/outbound/tasks/{id}":{"get":{"tags":["outbound"],"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ItemsItem85"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1OutboundTasksById"},"patch":{"summary":"Edit an open task: title, notes, due date, kind, type, links and reminder","tags":["outbound"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"title":{"type":"string","minLength":1,"maxLength":200},"notes":{"nullable":true,"type":"string","maxLength":5000},"dueAt":{"type":"string","format":"date-time"},"kind":{"type":"string","enum":["call","linkedin_visit","linkedin_connect","linkedin_message","sms","whatsapp","manual_email","reply_received","custom"]},"typeId":{"nullable":true,"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"companyId":{"nullable":true,"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"contactIds":{"$ref":"#/components/schemas/SegmentIds"},"plannedMin":{"nullable":true,"type":"integer","minimum":1,"maximum":1440},"remindBeforeMin":{"nullable":true,"type":"integer","minimum":0,"maximum":10080}}}}}},"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ItemsItem85"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"patchV1OutboundTasksById"},"delete":{"summary":"Delete a task (skip keeps it as history)","tags":["outbound"],"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"ok":{"type":"boolean","enum":[true]}},"required":["ok"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"deleteV1OutboundTasksById"}},"/v1/outbound/tasks/search":{"post":{"summary":"Search tasks with a nested and / or / not filter tree","tags":["outbound"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"filter":{"allOf":[{"$ref":"#/components/schemas/schema0"}]},"limit":{"default":50,"type":"integer","minimum":1,"maximum":200},"cursor":{"type":"string","pattern":"^\\d{1,6}$"}}}}}},"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetV1OutboundTasksResponse"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"postV1OutboundTasksSearch"}},"/v1/outbound/tasks/{id}/assign":{"post":{"tags":["outbound"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PostV1OutboundInboxByIdAssignBody"}}}},"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ItemsItem85"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"postV1OutboundTasksByIdAssign"}},"/v1/outbound/tasks/{id}/complete":{"post":{"tags":["outbound"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PostV1OutboundTasksByIdCompleteBody"}}}},"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ItemsItem85"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"postV1OutboundTasksByIdComplete"}},"/v1/outbound/tasks/{id}/skip":{"post":{"tags":["outbound"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PostV1OutboundTasksByIdCompleteBody"}}}},"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ItemsItem85"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"postV1OutboundTasksByIdSkip"}},"/v1/outbound/tasks/{id}/snooze":{"post":{"tags":["outbound"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"until":{"type":"string","format":"date-time"}},"required":["until"]}}}},"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ItemsItem85"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"postV1OutboundTasksByIdSnooze"}},"/v1/outbound/pools":{"get":{"summary":"Sender pools (readable with outbound:read, for sequence mailbox pickers)","tags":["outbound"],"parameters":[{"schema":{"type":"integer","minimum":1,"maximum":200},"in":"query","name":"limit","required":false,"description":"Page size; omitted returns the whole list"},{"schema":{"type":"string","pattern":"^\\d{1,9}$"},"in":"query","name":"cursor","required":false,"description":"Opaque: the `nextCursor` of the previous page"}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetV1SenderPoolsResponse"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1OutboundPools"}},"/v1/outbound/meetings":{"post":{"tags":["outbound"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"profileId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"at":{"type":"string","format":"date-time"},"ref":{"type":"string","maxLength":300}},"required":["profileId"]}}}},"responses":{"201":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PostV1OutboundMeetingsResponse"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"postV1OutboundMeetings"},"get":{"tags":["outbound"],"parameters":[{"schema":{"type":"integer","minimum":1,"maximum":200},"in":"query","name":"limit","required":false,"description":"Page size; omitted returns the whole list"},{"schema":{"type":"string","pattern":"^\\d{1,9}$"},"in":"query","name":"cursor","required":false,"description":"Opaque: the `nextCursor` of the previous page"}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"items":{"type":"array","items":{"$ref":"#/components/schemas/PostV1OutboundMeetingsResponse"}},"nextCursor":{"nullable":true,"type":"string"}},"required":["items","nextCursor"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1OutboundMeetings"}},"/v1/outbound/analytics":{"get":{"tags":["outbound"],"parameters":[{"schema":{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"},"in":"query","name":"from","required":false},{"schema":{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"},"in":"query","name":"to","required":false},{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"query","name":"sequenceId","required":false},{"schema":{"default":"sequence","type":"string","enum":["sequence","step","mailbox"]},"in":"query","name":"group","required":false},{"schema":{"type":"integer","minimum":1,"maximum":200},"in":"query","name":"limit","required":false,"description":"Page size; omitted returns the whole list"},{"schema":{"type":"string","pattern":"^\\d{1,9}$"},"in":"query","name":"cursor","required":false,"description":"Opaque: the `nextCursor` of the previous page"}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"items":{"type":"array","items":{"type":"object","properties":{"key":{"type":"string"},"sent":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"bounced":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"replied":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"positive":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"negative":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"optOuts":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"meetings":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"positiveRate":{"type":"number"},"replyRate":{"type":"number"},"bounceRate":{"type":"number"}},"required":["key","sent","bounced","replied","positive","negative","optOuts","meetings","positiveRate","replyRate","bounceRate"],"additionalProperties":false}},"nextCursor":{"nullable":true,"type":"string"}},"required":["items","nextCursor"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1OutboundAnalytics"}},"/v1/outbound/mailboxes":{"get":{"tags":["outbound"],"parameters":[{"schema":{"type":"integer","minimum":1,"maximum":200},"in":"query","name":"limit","required":false,"description":"Page size; omitted returns the whole list"},{"schema":{"type":"string","pattern":"^\\d{1,9}$"},"in":"query","name":"cursor","required":false,"description":"Opaque: the `nextCursor` of the previous page"}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"items":{"type":"array","items":{"$ref":"#/components/schemas/ItemsItem86"}},"nextCursor":{"nullable":true,"type":"string"}},"required":["items","nextCursor"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1OutboundMailboxes"}},"/v1/outbound/mailboxes/{id}":{"get":{"tags":["outbound"],"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ItemsItem86"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1OutboundMailboxesById"},"patch":{"tags":["outbound"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PatchV1OutboundMailboxesByIdBody"}}}},"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"ok":{"type":"boolean","enum":[true]}},"required":["ok"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"patchV1OutboundMailboxesById"}},"/v1/outbound/mailboxes/{id}/pause":{"post":{"tags":["outbound"],"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"ok":{"type":"boolean","enum":[true]}},"required":["ok"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"postV1OutboundMailboxesByIdPause"}},"/v1/outbound/mailboxes/{id}/resume":{"post":{"tags":["outbound"],"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"ok":{"type":"boolean","enum":[true]}},"required":["ok"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"postV1OutboundMailboxesByIdResume"}},"/v1/outbound/message-reviews":{"get":{"summary":"Messages waiting for approval, rendered for each prospect","tags":["outbound"],"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"query","name":"sequenceId","required":false},{"schema":{"default":50,"type":"integer","minimum":1,"maximum":100},"in":"query","name":"limit","required":false},{"schema":{"type":"string"},"in":"query","name":"cursor","required":false},{"schema":{"default":48,"type":"integer","minimum":1,"maximum":2160},"in":"query","name":"staleAfterHours","required":false}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"items":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"sequenceId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"sequenceName":{"type":"string"},"stepKey":{"type":"string"},"profileId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"profileEmail":{"nullable":true,"type":"string"},"profileName":{"nullable":true,"type":"string"},"subject":{"nullable":true,"type":"string"},"text":{"nullable":true,"type":"string"},"edited":{"type":"boolean"},"queuedAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"stale":{"type":"boolean"}},"required":["id","sequenceId","sequenceName","stepKey","profileId","profileEmail","profileName","subject","text","edited","queuedAt","stale"],"additionalProperties":false}},"nextCursor":{"nullable":true,"type":"string"}},"required":["items","nextCursor"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1OutboundMessageReviews"}},"/v1/outbound/message-reviews/count":{"get":{"tags":["outbound"],"parameters":[{"schema":{"default":48,"type":"integer","minimum":1,"maximum":2160},"in":"query","name":"staleAfterHours","required":false}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"pending":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"stale":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["pending","stale"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1OutboundMessageReviewsCount"}},"/v1/outbound/message-reviews/decide":{"post":{"summary":"Approve or reject many waiting messages (ids, or a whole sequence)","tags":["outbound"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"ids":{"$ref":"#/components/schemas/Ids"},"sequenceId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"action":{"type":"string","enum":["approve","reject"]}},"required":["action"]}}}},"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"decided":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"failed":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"more":{"type":"boolean"}},"required":["decided","failed","more"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"postV1OutboundMessageReviewsDecide"}},"/v1/outbound/message-reviews/{id}/decide":{"post":{"summary":"Approve (optionally edited) or reject one prospect’s message; approving sends through the normal path, consent rechecked","tags":["outbound"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"action":{"type":"string","enum":["approve","reject"]},"subject":{"type":"string","minLength":1,"maxLength":998},"body":{"type":"string","minLength":1,"maxLength":100000}},"required":["action"]}}}},"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"ok":{"type":"boolean","enum":[true]}},"required":["ok"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"postV1OutboundMessageReviewsByIdDecide"}},"/v1/analytics/attribution/settings":{"get":{"tags":["analytics"],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetV1AnalyticsAttributionSettingsResponse"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1AnalyticsAttributionSettings"},"patch":{"summary":"Conversion event, touch windows and model. Applies to conversions recorded from now on.","tags":["analytics"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"conversionEvent":{"type":"string","minLength":1,"maxLength":128},"conversions":{"maxItems":20,"type":"array","items":{"$ref":"#/components/schemas/ConversionsItem2"}},"touchBasis":{"type":"string","enum":["delivery","open","click"]},"viewThrough":{"type":"boolean"},"windowDeliveryHours":{"type":"integer","minimum":1,"maximum":2160},"windowClickHours":{"type":"integer","minimum":1,"maximum":2160},"windowOpenHours":{"type":"integer","minimum":1,"maximum":2160},"windowSmsClickHours":{"type":"integer","minimum":1,"maximum":2160},"model":{"type":"string","enum":["first_touch","last_touch","linear","u_shaped","w_shaped","full_path","time_decay","j_shaped","inverse_j"]}}}}}},"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetV1AnalyticsAttributionSettingsResponse"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"patchV1AnalyticsAttributionSettings"}},"/v1/analytics/revenue":{"get":{"summary":"Attributed purchase revenue by campaign, flow, variant, node, channel or day","tags":["analytics"],"parameters":[{"schema":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}(?:[T ]\\d{2}:\\d{2}(?::\\d{2}(?:\\.\\d+)?)?(?:Z|[+-]\\d{2}:?\\d{2})?)?$","format":"date"},"in":"query","name":"from","required":true},{"schema":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}(?:[T ]\\d{2}:\\d{2}(?::\\d{2}(?:\\.\\d+)?)?(?:Z|[+-]\\d{2}:?\\d{2})?)?$","format":"date"},"in":"query","name":"to","required":true},{"schema":{"default":"campaign","type":"string","enum":["campaign","flow","variant","node","channel","day","conversion"]},"in":"query","name":"groupBy","required":false},{"schema":{"type":"string","enum":["email","sms","whatsapp","push","postcard"]},"in":"query","name":"channel","required":false},{"schema":{"type":"string","maxLength":128},"in":"query","name":"goal","required":false}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"groupBy":{"type":"string"},"rows":{"type":"array","items":{"type":"object","properties":{"key":{"type":"string"},"currency":{"nullable":true,"type":"string"},"conversions":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"revenueMinor":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["key","currency","conversions","revenueMinor"],"additionalProperties":false}}},"required":["groupBy","rows"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1AnalyticsRevenue"}},"/v1/analytics/revenue/campaigns":{"get":{"summary":"Attributed orders, revenue and messages sent per campaign (revenue per recipient)","tags":["analytics"],"parameters":[{"schema":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}(?:[T ]\\d{2}:\\d{2}(?::\\d{2}(?:\\.\\d+)?)?(?:Z|[+-]\\d{2}:?\\d{2})?)?$","format":"date"},"in":"query","name":"from","required":true},{"schema":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}(?:[T ]\\d{2}:\\d{2}(?::\\d{2}(?:\\.\\d+)?)?(?:Z|[+-]\\d{2}:?\\d{2})?)?$","format":"date"},"in":"query","name":"to","required":true},{"schema":{"type":"integer","minimum":1,"maximum":200},"in":"query","name":"limit","required":false,"description":"Page size; omitted returns the whole list"},{"schema":{"type":"string","pattern":"^\\d{1,9}$"},"in":"query","name":"cursor","required":false,"description":"Opaque: the `nextCursor` of the previous page"}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"items":{"type":"array","items":{"type":"object","properties":{"campaignId":{"type":"string"},"currency":{"nullable":true,"type":"string"},"conversions":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"revenueMinor":{"type":"number"},"recipients":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["campaignId","currency","conversions","revenueMinor","recipients"],"additionalProperties":false}},"nextCursor":{"nullable":true,"type":"string"}},"required":["items","nextCursor"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1AnalyticsRevenueCampaigns"}},"/v1/analytics/revenue/forms":{"get":{"summary":"Revenue from buyers per signup form (the form they last submitted in the 30 days before ordering)","tags":["analytics"],"parameters":[{"schema":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}(?:[T ]\\d{2}:\\d{2}(?::\\d{2}(?:\\.\\d+)?)?(?:Z|[+-]\\d{2}:?\\d{2})?)?$","format":"date"},"in":"query","name":"from","required":true},{"schema":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}(?:[T ]\\d{2}:\\d{2}(?::\\d{2}(?:\\.\\d+)?)?(?:Z|[+-]\\d{2}:?\\d{2})?)?$","format":"date"},"in":"query","name":"to","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"windowDays":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"items":{"type":"array","items":{"type":"object","properties":{"formId":{"type":"string"},"currency":{"nullable":true,"type":"string"},"conversions":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"revenueMinor":{"type":"number"}},"required":["formId","currency","conversions","revenueMinor"],"additionalProperties":false}}},"required":["windowDays","items"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1AnalyticsRevenueForms"}},"/v1/analytics/time-to-convert":{"get":{"tags":["analytics"],"parameters":[{"schema":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}(?:[T ]\\d{2}:\\d{2}(?::\\d{2}(?:\\.\\d+)?)?(?:Z|[+-]\\d{2}:?\\d{2})?)?$","format":"date"},"in":"query","name":"from","required":true},{"schema":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}(?:[T ]\\d{2}:\\d{2}(?::\\d{2}(?:\\.\\d+)?)?(?:Z|[+-]\\d{2}:?\\d{2})?)?$","format":"date"},"in":"query","name":"to","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"conversions":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"medianHours":{"nullable":true,"type":"number"},"buckets":{"type":"array","items":{"type":"object","properties":{"label":{"type":"string"},"count":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["label","count"],"additionalProperties":false}}},"required":["conversions","medianHours","buckets"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1AnalyticsTimeToConvert"}},"/v1/analytics/conversions":{"get":{"summary":"Attributed conversion rows, filterable by profile, conversion and date","tags":["analytics"],"parameters":[{"schema":{"default":50,"type":"integer","minimum":1,"maximum":200},"in":"query","name":"limit","required":false},{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"query","name":"cursor","required":false},{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"query","name":"profileId","required":false},{"schema":{"type":"string","maxLength":128},"in":"query","name":"goal","required":false},{"schema":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}(?:[T ]\\d{2}:\\d{2}(?::\\d{2}(?:\\.\\d+)?)?(?:Z|[+-]\\d{2}:?\\d{2})?)?$","format":"date"},"in":"query","name":"from","required":false},{"schema":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}(?:[T ]\\d{2}:\\d{2}(?::\\d{2}(?:\\.\\d+)?)?(?:Z|[+-]\\d{2}:?\\d{2})?)?$","format":"date"},"in":"query","name":"to","required":false}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"items":{"$ref":"#/components/schemas/Items30"},"nextCursor":{"nullable":true,"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},"required":["items","nextCursor"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1AnalyticsConversions"}},"/v1/analytics/conversions/{id}":{"get":{"summary":"One conversion with the touches credited for it, the event that triggered it and the activity around it","tags":["analytics"],"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"conversion":{"$ref":"#/components/schemas/ItemsItem87"},"attributions":{"$ref":"#/components/schemas/Items30"},"event":{"default":null,"nullable":true,"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"name":{"type":"string"},"occurredAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"valueMinor":{"nullable":true,"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"currency":{"nullable":true,"type":"string"},"properties":{"type":"object","additionalProperties":{}}},"required":["id","name","occurredAt","valueMinor","currency","properties"],"additionalProperties":false},"activities":{"default":[],"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"kind":{"type":"string"},"summary":{"type":"string"},"at":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"}},"required":["id","kind","summary","at"],"additionalProperties":false}}},"required":["conversion","attributions","event","activities"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1AnalyticsConversionsById"}},"/v1/analytics/conversion-folders":{"get":{"summary":"Conversions grouped by folder, with each conversion's count and value in the range","tags":["analytics"],"parameters":[{"schema":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}(?:[T ]\\d{2}:\\d{2}(?::\\d{2}(?:\\.\\d+)?)?(?:Z|[+-]\\d{2}:?\\d{2})?)?$","format":"date"},"in":"query","name":"from","required":true},{"schema":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}(?:[T ]\\d{2}:\\d{2}(?::\\d{2}(?:\\.\\d+)?)?(?:Z|[+-]\\d{2}:?\\d{2})?)?$","format":"date"},"in":"query","name":"to","required":true},{"schema":{"type":"integer","minimum":1,"maximum":200},"in":"query","name":"limit","required":false,"description":"Page size; omitted returns the whole list"},{"schema":{"type":"string","pattern":"^\\d{1,9}$"},"in":"query","name":"cursor","required":false,"description":"Opaque: the `nextCursor` of the previous page"}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"items":{"type":"array","items":{"type":"object","properties":{"folder":{"nullable":true,"type":"string"},"conversions":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"valueMinor":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"labels":{"type":"array","items":{"type":"object","properties":{"label":{"type":"string"},"event":{"type":"string"},"conversions":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"valueMinor":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["label","event","conversions","valueMinor"],"additionalProperties":false}}},"required":["folder","conversions","valueMinor","labels"],"additionalProperties":false}},"nextCursor":{"nullable":true,"type":"string"}},"required":["items","nextCursor"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1AnalyticsConversionFolders"}},"/v1/analytics/conversion-labels":{"get":{"tags":["analytics"],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetV1AnalyticsConversionLabelsResponse"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1AnalyticsConversionLabels"},"post":{"tags":["analytics"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConversionsItem2"}}}},"responses":{"201":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConversionsItem"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"postV1AnalyticsConversionLabels"}},"/v1/analytics/conversion-labels/bulk-create":{"post":{"tags":["analytics"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"items":{"minItems":1,"maxItems":20,"type":"array","items":{"$ref":"#/components/schemas/ConversionsItem2"}}},"required":["items"]}}}},"responses":{"201":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetV1AnalyticsConversionLabelsResponse"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"postV1AnalyticsConversionLabelsBulkCreate"}},"/v1/analytics/conversion-labels/bulk-delete":{"post":{"tags":["analytics"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"labels":{"minItems":1,"maxItems":20,"type":"array","items":{"type":"string","minLength":1,"maxLength":64}}},"required":["labels"]}}}},"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"deleted":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["deleted"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"postV1AnalyticsConversionLabelsBulkDelete"}},"/v1/analytics/conversion-labels/{label}":{"get":{"tags":["analytics"],"parameters":[{"schema":{"type":"string","minLength":1,"maxLength":64},"in":"path","name":"label","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConversionsItem"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1AnalyticsConversionLabelsByLabel"},"put":{"tags":["analytics"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"event":{"type":"string","minLength":1,"maxLength":128},"valueProperty":{"nullable":true,"type":"string","minLength":1,"maxLength":128},"targetMinor":{"nullable":true,"type":"integer","minimum":0,"maximum":9007199254740991},"folder":{"nullable":true,"type":"string","minLength":1,"maxLength":64}},"required":["event"]}}}},"parameters":[{"schema":{"type":"string","minLength":1,"maxLength":64},"in":"path","name":"label","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConversionsItem"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"putV1AnalyticsConversionLabelsByLabel"},"delete":{"tags":["analytics"],"parameters":[{"schema":{"type":"string","minLength":1,"maxLength":64},"in":"path","name":"label","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"deleted":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["deleted"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"deleteV1AnalyticsConversionLabelsByLabel"}},"/v1/analytics/conversion-labels/{label}/target":{"put":{"summary":"Set the value target of a conversion","tags":["analytics"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"targetMinor":{"type":"integer","minimum":0,"maximum":9007199254740991}},"required":["targetMinor"]}}}},"parameters":[{"schema":{"type":"string","minLength":1,"maxLength":64},"in":"path","name":"label","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConversionsItem"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"putV1AnalyticsConversionLabelsByLabelTarget"},"delete":{"tags":["analytics"],"parameters":[{"schema":{"type":"string","minLength":1,"maxLength":64},"in":"path","name":"label","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConversionsItem"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"deleteV1AnalyticsConversionLabelsByLabelTarget"}},"/v1/analytics/conversion-labels/{label}/metrics":{"get":{"tags":["analytics"],"parameters":[{"schema":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}(?:[T ]\\d{2}:\\d{2}(?::\\d{2}(?:\\.\\d+)?)?(?:Z|[+-]\\d{2}:?\\d{2})?)?$","format":"date"},"in":"query","name":"from","required":true},{"schema":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}(?:[T ]\\d{2}:\\d{2}(?::\\d{2}(?:\\.\\d+)?)?(?:Z|[+-]\\d{2}:?\\d{2})?)?$","format":"date"},"in":"query","name":"to","required":true},{"schema":{"type":"string","minLength":1,"maxLength":64},"in":"path","name":"label","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"label":{"type":"string"},"conversions":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"uniqueProfiles":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"valueMinor":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"targetMinor":{"nullable":true,"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"targetProgress":{"nullable":true,"type":"number"}},"required":["label","conversions","uniqueProfiles","valueMinor","targetMinor","targetProgress"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1AnalyticsConversionLabelsByLabelMetrics"}},"/v1/analytics/conversion-labels/{label}/trend":{"get":{"tags":["analytics"],"parameters":[{"schema":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}(?:[T ]\\d{2}:\\d{2}(?::\\d{2}(?:\\.\\d+)?)?(?:Z|[+-]\\d{2}:?\\d{2})?)?$","format":"date"},"in":"query","name":"from","required":true},{"schema":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}(?:[T ]\\d{2}:\\d{2}(?::\\d{2}(?:\\.\\d+)?)?(?:Z|[+-]\\d{2}:?\\d{2})?)?$","format":"date"},"in":"query","name":"to","required":true},{"schema":{"type":"string","minLength":1,"maxLength":64},"in":"path","name":"label","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"label":{"type":"string"},"points":{"type":"array","items":{"type":"object","properties":{"day":{"type":"string"},"conversions":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"valueMinor":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["day","conversions","valueMinor"],"additionalProperties":false}}},"required":["label","points"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1AnalyticsConversionLabelsByLabelTrend"}},"/v1/analytics/overview":{"get":{"summary":"Dashboard overview. Rates are null (not 0) where the connection cannot report the metric.","tags":["analytics"],"parameters":[{"schema":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}(?:[T ]\\d{2}:\\d{2}(?::\\d{2}(?:\\.\\d+)?)?(?:Z|[+-]\\d{2}:?\\d{2})?)?$","format":"date"},"in":"query","name":"from","required":true},{"schema":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}(?:[T ]\\d{2}:\\d{2}(?::\\d{2}(?:\\.\\d+)?)?(?:Z|[+-]\\d{2}:?\\d{2})?)?$","format":"date"},"in":"query","name":"to","required":true},{"schema":{"type":"string","enum":["true","false"]},"in":"query","name":"includeMachineOpens","required":false}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"sends":{"type":"object","properties":{"totals":{"$ref":"#/components/schemas/Counts"},"byDay":{"type":"array","items":{"type":"object","properties":{"day":{"type":"string"},"sent":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["day","sent"],"additionalProperties":false}}},"required":["totals","byDay"],"additionalProperties":false},"availability":{"$ref":"#/components/schemas/Availability"},"deliverability":{"type":"object","properties":{"deliveryRate":{"nullable":true,"type":"number"},"bounceRate":{"nullable":true,"type":"number"},"complaintRate":{"nullable":true,"type":"number"}},"required":["deliveryRate","bounceRate","complaintRate"],"additionalProperties":false},"engagement":{"type":"object","properties":{"openRate":{"nullable":true,"type":"number"},"clickRate":{"nullable":true,"type":"number"},"replyRate":{"nullable":true,"type":"number"}},"required":["openRate","clickRate","replyRate"],"additionalProperties":false},"revenue":{"type":"object","properties":{"currency":{"nullable":true,"type":"string"},"totalMinor":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"conversions":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"byDay":{"$ref":"#/components/schemas/ByDay"},"store":{"type":"object","properties":{"totalMinor":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"orders":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"byDay":{"$ref":"#/components/schemas/ByDay"}},"required":["totalMinor","orders","byDay"],"additionalProperties":false},"byChannel":{"type":"array","items":{"type":"object","properties":{"channel":{"type":"string"},"revenueMinor":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"conversions":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["channel","revenueMinor","conversions"],"additionalProperties":false}}},"required":["currency","totalMinor","conversions","byDay"],"additionalProperties":false},"topCampaigns":{"$ref":"#/components/schemas/TopCampaigns"},"topFlows":{"$ref":"#/components/schemas/TopCampaigns"},"listGrowth":{"type":"array","items":{"type":"object","properties":{"day":{"type":"string"},"added":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"removed":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["day","added","removed"],"additionalProperties":false}},"unsubscribeTrend":{"type":"array","items":{"type":"object","properties":{"day":{"type":"string"},"unsubscribed":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["day","unsubscribed"],"additionalProperties":false}}},"required":["sends","availability","deliverability","engagement","revenue","topCampaigns","topFlows","listGrowth","unsubscribeTrend"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1AnalyticsOverview"}},"/v1/analytics/segments/{id}/trend":{"get":{"tags":["analytics"],"parameters":[{"schema":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}(?:[T ]\\d{2}:\\d{2}(?::\\d{2}(?:\\.\\d+)?)?(?:Z|[+-]\\d{2}:?\\d{2})?)?$","format":"date"},"in":"query","name":"from","required":true},{"schema":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}(?:[T ]\\d{2}:\\d{2}(?::\\d{2}(?:\\.\\d+)?)?(?:Z|[+-]\\d{2}:?\\d{2})?)?$","format":"date"},"in":"query","name":"to","required":true},{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"segmentId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"points":{"$ref":"#/components/schemas/Points"}},"required":["segmentId","points"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1AnalyticsSegmentsByIdTrend"}},"/v1/analytics/forms":{"get":{"tags":["analytics"],"parameters":[{"schema":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}(?:[T ]\\d{2}:\\d{2}(?::\\d{2}(?:\\.\\d+)?)?(?:Z|[+-]\\d{2}:?\\d{2})?)?$","format":"date"},"in":"query","name":"from","required":true},{"schema":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}(?:[T ]\\d{2}:\\d{2}(?::\\d{2}(?:\\.\\d+)?)?(?:Z|[+-]\\d{2}:?\\d{2})?)?$","format":"date"},"in":"query","name":"to","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"forms":{"type":"array","items":{"type":"object","properties":{"formId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"name":{"type":"string"},"views":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"submissions":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"conversionRate":{"nullable":true,"type":"number"},"versions":{"type":"array","items":{"type":"object","properties":{"versionId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"views":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"submissions":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"conversionRate":{"nullable":true,"type":"number"}},"required":["versionId","views","submissions","conversionRate"],"additionalProperties":false}}},"required":["formId","name","views","submissions","conversionRate","versions"],"additionalProperties":false}}},"required":["forms"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1AnalyticsForms"}},"/v1/analytics/reports":{"get":{"summary":"Saved reports; ?archived=true lists the archived ones","tags":["analytics"],"parameters":[{"schema":{"type":"string","enum":["true","false"]},"in":"query","name":"archived","required":false},{"schema":{"type":"integer","minimum":1,"maximum":200},"in":"query","name":"limit","required":false,"description":"Page size; omitted returns the whole list"},{"schema":{"type":"string","pattern":"^\\d{1,9}$"},"in":"query","name":"cursor","required":false,"description":"Opaque: the `nextCursor` of the previous page"}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"items":{"type":"array","items":{"$ref":"#/components/schemas/ItemsItem88"}},"nextCursor":{"nullable":true,"type":"string"}},"required":["items","nextCursor"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1AnalyticsReports"},"post":{"tags":["analytics"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":200},"query":{"$ref":"#/components/schemas/Query3"}},"required":["name","query"]}}}},"responses":{"201":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ItemsItem88"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"postV1AnalyticsReports"}},"/v1/analytics/reports/batch/archive":{"post":{"summary":"Archive reports (hidden, unscheduled, restorable)","tags":["analytics"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PostV1SnippetsBulkDeleteBody"}}}},"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"count":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["count"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"postV1AnalyticsReportsBatchArchive"}},"/v1/analytics/reports/batch/restore":{"post":{"tags":["analytics"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PostV1SnippetsBulkDeleteBody"}}}},"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"count":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["count"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"postV1AnalyticsReportsBatchRestore"}},"/v1/analytics/reports/owners/batch/update":{"post":{"summary":"Reassign reports to another member (null = unassigned)","tags":["analytics"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PostV1AnalyticsReportsOwnersBatchUpdateBody"}}}},"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"count":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["count"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"postV1AnalyticsReportsOwnersBatchUpdate"}},"/v1/analytics/reports/{id}":{"get":{"summary":"Read a saved report definition","tags":["analytics"],"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ItemsItem88"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1AnalyticsReportsById"},"patch":{"summary":"Edit a saved report name or definition","tags":["analytics"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":200},"query":{"$ref":"#/components/schemas/Query3"}}}}}},"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ItemsItem88"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"patchV1AnalyticsReportsById"},"delete":{"tags":["analytics"],"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"ok":{"type":"boolean","enum":[true]}},"required":["ok"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"deleteV1AnalyticsReportsById"}},"/v1/analytics/reports/{id}/clone":{"post":{"summary":"Copy a saved report definition","tags":["analytics"],"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"201":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ItemsItem88"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"postV1AnalyticsReportsByIdClone"}},"/v1/analytics/reports/{id}/run":{"get":{"tags":["analytics"],"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"kind":{"type":"string"},"result":{}},"required":["kind","result"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1AnalyticsReportsByIdRun"}},"/v1/analytics/reports/{id}/export":{"get":{"summary":"CSV text of a saved report (unavailable metrics are empty cells)","tags":["analytics"],"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"filename":{"type":"string"},"csv":{"type":"string"}},"required":["filename","csv"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1AnalyticsReportsByIdExport"}},"/v1/analytics/reports/{id}/schedule":{"patch":{"summary":"Email this report to recipients (and refresh a Google Sheet) daily, weekly or monthly; null schedule stops it","tags":["analytics"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"schedule":{"nullable":true,"type":"string","enum":["daily","weekly","monthly"]},"recipients":{"$ref":"#/components/schemas/Emails3"},"rollingDays":{"default":null,"nullable":true,"type":"integer","minimum":1,"maximum":365},"sheetId":{"default":null,"nullable":true,"type":"string","minLength":20,"maxLength":100}},"required":["schedule"]}}}},"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ItemsItem88"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"patchV1AnalyticsReportsByIdSchedule"}},"/v1/analytics/sheets/status":{"get":{"tags":["analytics"],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"configured":{"type":"boolean"},"accountEmail":{"nullable":true,"type":"string"}},"required":["configured","accountEmail"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1AnalyticsSheetsStatus"}},"/v1/analytics/reports/{id}/export-sheet":{"post":{"summary":"Write the report into a Google spreadsheet shared with the service account (replaces the tab)","tags":["analytics"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"spreadsheetId":{"type":"string","minLength":20,"maxLength":100},"tab":{"default":"Hermetica","type":"string","maxLength":60}},"required":["spreadsheetId"]}}}},"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"updatedRows":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["updatedRows"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"postV1AnalyticsReportsByIdExportSheet"}},"/v1/analytics/reports/{id}/access":{"patch":{"summary":"Make a report or dashboard private (owner and admins only) or shared with the workspace; only the owner or an admin may change it","tags":["analytics"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PatchV1AnalyticsReportsByIdAccessBody"}}}},"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PatchV1AnalyticsReportsByIdAccessResponse"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"patchV1AnalyticsReportsByIdAccess"}},"/v1/analytics/dashboards/{id}/access":{"patch":{"summary":"Make a report or dashboard private (owner and admins only) or shared with the workspace; only the owner or an admin may change it","tags":["analytics"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PatchV1AnalyticsReportsByIdAccessBody"}}}},"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PatchV1AnalyticsReportsByIdAccessResponse"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"patchV1AnalyticsDashboardsByIdAccess"}},"/v1/catalog/feeds":{"get":{"tags":["catalog"],"parameters":[{"schema":{"type":"integer","minimum":1,"maximum":200},"in":"query","name":"limit","required":false,"description":"Page size; omitted returns the whole list"},{"schema":{"type":"string","pattern":"^\\d{1,9}$"},"in":"query","name":"cursor","required":false,"description":"Opaque: the `nextCursor` of the previous page"}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"items":{"type":"array","items":{"$ref":"#/components/schemas/ItemsItem89"}},"nextCursor":{"nullable":true,"type":"string"}},"required":["items","nextCursor"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1CatalogFeeds"},"post":{"summary":"Register a JSON/CSV/Google Merchant feed; the first sync is queued immediately","tags":["catalog"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":200},"url":{"type":"string","maxLength":2048,"format":"uri"},"format":{"type":"string","enum":["json","csv","google_merchant"]},"refreshHours":{"default":24,"type":"integer","minimum":1,"maximum":168}},"required":["name","url","format"]}}}},"responses":{"201":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ItemsItem89"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"postV1CatalogFeeds"}},"/v1/catalog/feeds/{id}":{"delete":{"tags":["catalog"],"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"ok":{"type":"boolean","enum":[true]}},"required":["ok"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"deleteV1CatalogFeedsById"}},"/v1/catalog/feeds/{id}/items":{"get":{"tags":["catalog"],"parameters":[{"schema":{"type":"integer","minimum":1,"maximum":200},"in":"query","name":"limit","required":false,"description":"Page size; omitted returns the whole list"},{"schema":{"type":"string","pattern":"^\\d{1,9}$"},"in":"query","name":"cursor","required":false,"description":"Opaque: the `nextCursor` of the previous page"},{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"items":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"feedId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"externalId":{"type":"string"},"title":{"type":"string"},"url":{"nullable":true,"type":"string"},"imageUrl":{"nullable":true,"type":"string"},"priceMinor":{"nullable":true,"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"currency":{"nullable":true,"type":"string"},"inventory":{"nullable":true,"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["id","feedId","externalId","title","url","imageUrl","priceMinor","currency","inventory"],"additionalProperties":false}},"nextCursor":{"nullable":true,"type":"string"}},"required":["items","nextCursor"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1CatalogFeedsByIdItems"}},"/v1/catalog/subscriptions":{"post":{"summary":"Notify a profile (by id, email or phone; one variant or the whole product; by email, SMS or push) when the product is back in stock or drops in price","tags":["catalog"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"profileId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"email":{"type":"string","maxLength":254,"format":"email","pattern":"^(?:[A-Za-z0-9_'+\\-]+\\.)*[A-Za-z0-9_'+\\-]*[A-Za-z0-9_+-]@(?:[A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$"},"phone":{"type":"string","minLength":5,"maxLength":32},"externalId":{"type":"string","minLength":1,"maxLength":256},"kind":{"type":"string","enum":["back_in_stock","price_drop"]},"variantId":{"type":"string","minLength":1,"maxLength":256},"channel":{"type":"string","enum":["email","sms","push"]}},"required":["externalId","kind"]}}}},"responses":{"201":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"ok":{"type":"boolean","enum":[true]},"profileId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},"required":["ok","profileId"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"postV1CatalogSubscriptions"}},"/v1/coupon-pools":{"get":{"tags":["catalog"],"parameters":[{"schema":{"type":"integer","minimum":1,"maximum":200},"in":"query","name":"limit","required":false,"description":"Page size; omitted returns the whole list"},{"schema":{"type":"string","pattern":"^\\d{1,9}$"},"in":"query","name":"cursor","required":false,"description":"Opaque: the `nextCursor` of the previous page"}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"items":{"type":"array","items":{"$ref":"#/components/schemas/ItemsItem90"}},"nextCursor":{"nullable":true,"type":"string"}},"required":["items","nextCursor"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1CouponPools"},"post":{"tags":["catalog"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":200},"kind":{"default":"unique","type":"string","enum":["static","unique"]},"lowStockThreshold":{"default":100,"type":"integer","minimum":0,"maximum":1000000},"description":{"nullable":true,"type":"string","maxLength":1000},"discountType":{"nullable":true,"type":"string","enum":["fixed","percentage","shipping"]},"amount":{"nullable":true,"type":"integer","minimum":0,"maximum":9007199254740991},"target":{"nullable":true,"type":"string","enum":["per_item","total","shipping"]},"startsAt":{"nullable":true,"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"endsAt":{"nullable":true,"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"enabled":{"type":"boolean"},"redemptionUrl":{"nullable":true,"type":"string","maxLength":2048,"format":"uri"},"maxUses":{"default":1,"type":"integer","minimum":1,"maximum":1000000}},"required":["name"]}}}},"responses":{"201":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ItemsItem90"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"postV1CouponPools"}},"/v1/coupon-pools/{id}/codes":{"post":{"tags":["catalog"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"codes":{"minItems":1,"maxItems":10000,"type":"array","items":{"type":"string","minLength":1,"maxLength":128}}},"required":["codes"]}}}},"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"added":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["added"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"postV1CouponPoolsByIdCodes"},"get":{"tags":["catalog"],"parameters":[{"schema":{"default":50,"type":"integer","minimum":1,"maximum":200},"in":"query","name":"limit","required":false},{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"query","name":"cursor","required":false},{"schema":{"type":"string","enum":["active","disabled","redeemed"]},"in":"query","name":"status","required":false},{"schema":{"type":"string","enum":["true","false"]},"in":"query","name":"assigned","required":false},{"schema":{"type":"string","maxLength":128},"in":"query","name":"q","required":false},{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"query","name":"profileId","required":false},{"schema":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"in":"query","name":"expiresFrom","required":false},{"schema":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"in":"query","name":"expiresTo","required":false},{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetV1CouponPoolsByIdCodesResponse"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1CouponPoolsByIdCodes"}},"/v1/catalog/items":{"get":{"summary":"Search items across every feed and API-written products","tags":["catalog"],"parameters":[{"schema":{"default":50,"type":"integer","minimum":1,"maximum":200},"in":"query","name":"limit","required":false},{"schema":{"type":"string","maxLength":300},"in":"query","name":"cursor","required":false},{"schema":{"type":"string","maxLength":200},"in":"query","name":"q","required":false},{"schema":{"type":"string","minLength":1,"maxLength":256},"in":"query","name":"category","required":false},{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"query","name":"feedId","required":false},{"schema":{"type":"string","enum":["true","false"]},"in":"query","name":"inStock","required":false},{"schema":{"type":"string","maxLength":20000},"in":"query","name":"ids","required":false},{"schema":{"type":"string","enum":["true","false"]},"in":"query","name":"published","required":false},{"schema":{"default":"created","type":"string","enum":["created","-created","updated","-updated"]},"in":"query","name":"sort","required":false}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"items":{"$ref":"#/components/schemas/Items33"},"nextCursor":{"nullable":true,"type":"string"}},"required":["items","nextCursor"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1CatalogItems"},"post":{"tags":["catalog"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"externalId":{"type":"string","minLength":1,"maxLength":256},"title":{"type":"string","minLength":1,"maxLength":500},"description":{"nullable":true,"type":"string","maxLength":10000},"url":{"nullable":true,"type":"string","maxLength":2048,"format":"uri"},"imageUrl":{"nullable":true,"type":"string","maxLength":2048,"format":"uri"},"priceMinor":{"nullable":true,"type":"integer","minimum":0,"maximum":9007199254740991},"currency":{"nullable":true,"type":"string","minLength":3,"maxLength":3},"inventory":{"nullable":true,"type":"integer","minimum":0,"maximum":9007199254740991},"published":{"type":"boolean"},"categories":{"maxItems":50,"type":"array","items":{"type":"string","minLength":1,"maxLength":256}},"variants":{"$ref":"#/components/schemas/Variants4"},"customMetadata":{"nullable":true,"type":"object","additionalProperties":{}},"imageThumbnailUrl":{"nullable":true,"type":"string","maxLength":2048,"format":"uri"},"handle":{"nullable":true,"type":"string","maxLength":256},"type":{"nullable":true,"type":"string","maxLength":256},"vendor":{"nullable":true,"type":"string","maxLength":256},"publishedAtForeign":{"nullable":true,"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"}},"required":["externalId","title"]}}}},"responses":{"201":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ItemsItem92"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"postV1CatalogItems"}},"/v1/catalog/items/{id}":{"get":{"summary":"By row id or external id","tags":["catalog"],"parameters":[{"schema":{"type":"string","minLength":1,"maxLength":256},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ItemsItem92"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1CatalogItemsById"},"patch":{"summary":"Price/stock changes fire back_in_stock and price_drop","tags":["catalog"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PatchV1CatalogItemsByIdBody"}}}},"parameters":[{"schema":{"type":"string","minLength":1,"maxLength":256},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ItemsItem92"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"patchV1CatalogItemsById"},"delete":{"tags":["catalog"],"parameters":[{"schema":{"type":"string","minLength":1,"maxLength":256},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"ok":{"type":"boolean","enum":[true]}},"required":["ok"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"deleteV1CatalogItemsById"},"put":{"summary":"Create the product under this external id, or replace its fields (unset fields are cleared)","tags":["catalog"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PutV1CatalogItemsByIdBody"}}}},"parameters":[{"schema":{"type":"string","minLength":1,"maxLength":256},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ItemsItem92"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"putV1CatalogItemsById"}},"/v1/catalog/items/{id}/variants":{"get":{"tags":["catalog"],"parameters":[{"schema":{"type":"integer","minimum":1,"maximum":200},"in":"query","name":"limit","required":false,"description":"Page size; omitted returns the whole list"},{"schema":{"type":"string","pattern":"^\\d{1,9}$"},"in":"query","name":"cursor","required":false,"description":"Opaque: the `nextCursor` of the previous page"},{"schema":{"type":"string","minLength":1,"maxLength":256},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetV1CatalogItemsByIdVariantsResponse"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1CatalogItemsByIdVariants"},"post":{"tags":["catalog"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/VariantsItem5"}}}},"parameters":[{"schema":{"type":"string","minLength":1,"maxLength":256},"in":"path","name":"id","required":true}],"responses":{"201":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/VariantsItem4"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"postV1CatalogItemsByIdVariants"}},"/v1/catalog/items/{id}/variants/{variantId}":{"put":{"summary":"Create the variant under this external id, or replace it","tags":["catalog"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PutV1CatalogItemsByIdVariantsByVariantIdBody"}}}},"parameters":[{"schema":{"type":"string","minLength":1,"maxLength":256},"in":"path","name":"id","required":true},{"schema":{"type":"string","minLength":1,"maxLength":256},"in":"path","name":"variantId","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/VariantsItem4"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"putV1CatalogItemsByIdVariantsByVariantId"}},"/v1/catalog/items/{id}/images":{"get":{"tags":["catalog"],"parameters":[{"schema":{"type":"integer","minimum":1,"maximum":200},"in":"query","name":"limit","required":false,"description":"Page size; omitted returns the whole list"},{"schema":{"type":"string","pattern":"^\\d{1,9}$"},"in":"query","name":"cursor","required":false,"description":"Opaque: the `nextCursor` of the previous page"},{"schema":{"type":"string","minLength":1,"maxLength":256},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"items":{"type":"array","items":{"$ref":"#/components/schemas/ItemsItem93"}},"nextCursor":{"nullable":true,"type":"string"}},"required":["items","nextCursor"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1CatalogItemsByIdImages"},"post":{"tags":["catalog"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"url":{"type":"string","maxLength":2048,"format":"uri"},"position":{"type":"integer","minimum":0,"maximum":1000},"variantIds":{"$ref":"#/components/schemas/VariantIds"}},"required":["url"]}}}},"parameters":[{"schema":{"type":"string","minLength":1,"maxLength":256},"in":"path","name":"id","required":true}],"responses":{"201":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ItemsItem93"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"postV1CatalogItemsByIdImages"}},"/v1/catalog/items/{id}/images/{imageId}":{"get":{"tags":["catalog"],"parameters":[{"schema":{"type":"string","minLength":1,"maxLength":256},"in":"path","name":"id","required":true},{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"imageId","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ItemsItem93"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1CatalogItemsByIdImagesByImageId"},"patch":{"tags":["catalog"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"url":{"type":"string","maxLength":2048,"format":"uri"},"position":{"type":"integer","minimum":0,"maximum":1000},"variantIds":{"$ref":"#/components/schemas/VariantIds"}}}}}},"parameters":[{"schema":{"type":"string","minLength":1,"maxLength":256},"in":"path","name":"id","required":true},{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"imageId","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ItemsItem93"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"patchV1CatalogItemsByIdImagesByImageId"},"delete":{"tags":["catalog"],"parameters":[{"schema":{"type":"string","minLength":1,"maxLength":256},"in":"path","name":"id","required":true},{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"imageId","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"ok":{"type":"boolean","enum":[true]}},"required":["ok"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"deleteV1CatalogItemsByIdImagesByImageId"}},"/v1/catalog/variants":{"get":{"summary":"Filter by ids, sku, title, published or item; page with nextCursor","tags":["catalog"],"parameters":[{"schema":{"default":100,"type":"integer","minimum":1,"maximum":200},"in":"query","name":"limit","required":false},{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"query","name":"cursor","required":false},{"schema":{"type":"string","maxLength":20000},"in":"query","name":"ids","required":false},{"schema":{"type":"string","maxLength":256},"in":"query","name":"sku","required":false},{"schema":{"type":"string","maxLength":200},"in":"query","name":"title","required":false},{"schema":{"type":"string","enum":["true","false"]},"in":"query","name":"published","required":false},{"schema":{"type":"string","minLength":1,"maxLength":256},"in":"query","name":"item","required":false}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"items":{"$ref":"#/components/schemas/Variants3"},"nextCursor":{"nullable":true,"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},"required":["items","nextCursor"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1CatalogVariants"}},"/v1/catalog/variants/{id}":{"get":{"tags":["catalog"],"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/VariantsItem4"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1CatalogVariantsById"},"patch":{"tags":["catalog"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PatchV1CatalogVariantsByIdBody"}}}},"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/VariantsItem4"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"patchV1CatalogVariantsById"},"delete":{"tags":["catalog"],"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"ok":{"type":"boolean","enum":[true]}},"required":["ok"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"deleteV1CatalogVariantsById"}},"/v1/catalog/categories":{"get":{"summary":"Filter by ids, name (contains) or item; page with nextCursor","tags":["catalog"],"parameters":[{"schema":{"default":100,"type":"integer","minimum":1,"maximum":200},"in":"query","name":"limit","required":false},{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"query","name":"cursor","required":false},{"schema":{"type":"string","maxLength":20000},"in":"query","name":"ids","required":false},{"schema":{"type":"string","maxLength":300},"in":"query","name":"name","required":false},{"schema":{"type":"string","minLength":1,"maxLength":256},"in":"query","name":"item","required":false}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetV1CatalogCategoriesResponse"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1CatalogCategories"},"post":{"tags":["catalog"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"externalId":{"type":"string","minLength":1,"maxLength":256},"name":{"type":"string","minLength":1,"maxLength":300}},"required":["externalId","name"]}}}},"responses":{"201":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ItemsItem94"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"postV1CatalogCategories"}},"/v1/catalog/categories/{id}":{"get":{"tags":["catalog"],"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ItemsItem94"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1CatalogCategoriesById"},"patch":{"tags":["catalog"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":300}},"required":["name"]}}}},"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ItemsItem94"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"patchV1CatalogCategoriesById"},"delete":{"summary":"Also removes the category from its items","tags":["catalog"],"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"ok":{"type":"boolean","enum":[true]}},"required":["ok"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"deleteV1CatalogCategoriesById"}},"/v1/catalog/items/{id}/categories":{"get":{"summary":"The category objects this item is in","tags":["catalog"],"parameters":[{"schema":{"default":100,"type":"integer","minimum":1,"maximum":200},"in":"query","name":"limit","required":false},{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"query","name":"cursor","required":false},{"schema":{"type":"string","maxLength":20000},"in":"query","name":"ids","required":false},{"schema":{"type":"string","maxLength":300},"in":"query","name":"name","required":false},{"schema":{"type":"string","minLength":1,"maxLength":256},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetV1CatalogCategoriesResponse"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1CatalogItemsByIdCategories"}},"/v1/catalog/items/{id}/categories/{op}":{"post":{"summary":"op = add | remove | set","tags":["catalog"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"ids":{"minItems":1,"maxItems":500,"type":"array","items":{"type":"string","minLength":1,"maxLength":256}}},"required":["ids"]}}}},"parameters":[{"schema":{"type":"string","minLength":1,"maxLength":256},"in":"path","name":"id","required":true},{"schema":{"type":"string","enum":["add","remove","set"]},"in":"path","name":"op","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"ids":{"type":"array","items":{"type":"string"}}},"required":["ids"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"postV1CatalogItemsByIdCategoriesByOp"}},"/v1/catalog/categories/{id}/items":{"get":{"tags":["catalog"],"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"ids":{"type":"array","items":{"type":"string"}}},"required":["ids"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1CatalogCategoriesByIdItems"}},"/v1/catalog/categories/{id}/items/{op}":{"post":{"summary":"op = add | remove | set","tags":["catalog"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"ids":{"minItems":1,"maxItems":500,"type":"array","items":{"type":"string","minLength":1,"maxLength":256}}},"required":["ids"]}}}},"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true},{"schema":{"type":"string","enum":["add","remove","set"]},"in":"path","name":"op","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"ids":{"type":"array","items":{"type":"string"}}},"required":["ids"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"postV1CatalogCategoriesByIdItemsByOp"}},"/v1/catalog/bulk-jobs":{"post":{"summary":"Queue up to 1000 records; poll GET /v1/catalog/bulk-jobs/{id}","tags":["catalog"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"resource":{"type":"string","enum":["items","variants","categories","coupon_codes"]},"op":{"type":"string","enum":["create","update","delete"]},"records":{"minItems":1,"maxItems":1000,"type":"array","items":{"type":"object","additionalProperties":{}}},"poolId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},"required":["resource","op","records"]}}}},"responses":{"202":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PostV1CatalogBulkJobsResponse"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"postV1CatalogBulkJobs"},"get":{"summary":"Filter by resource, op and status; page with nextCursor","tags":["catalog"],"parameters":[{"schema":{"type":"string","enum":["items","variants","categories","coupon_codes"]},"in":"query","name":"resource","required":false},{"schema":{"type":"string","enum":["create","update","delete"]},"in":"query","name":"op","required":false},{"schema":{"type":"string","enum":["queued","processing","complete","failed"]},"in":"query","name":"status","required":false},{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"query","name":"cursor","required":false},{"schema":{"default":50,"type":"integer","minimum":1,"maximum":200},"in":"query","name":"limit","required":false}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"items":{"type":"array","items":{"$ref":"#/components/schemas/PostV1CatalogBulkJobsResponse"}},"nextCursor":{"nullable":true,"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},"required":["items"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1CatalogBulkJobs"}},"/v1/catalog/bulk-jobs/{id}":{"get":{"tags":["catalog"],"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PostV1CatalogBulkJobsResponse"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1CatalogBulkJobsById"}},"/v1/coupon-pools/{id}":{"get":{"tags":["catalog"],"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ItemsItem90"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1CouponPoolsById"},"patch":{"summary":"Rename, set threshold, or edit the promo rule (type, amount, target, dates, enabled)","tags":["catalog"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":200},"lowStockThreshold":{"type":"integer","minimum":0,"maximum":1000000},"description":{"nullable":true,"type":"string","maxLength":1000},"discountType":{"nullable":true,"type":"string","enum":["fixed","percentage","shipping"]},"amount":{"nullable":true,"type":"integer","minimum":0,"maximum":9007199254740991},"target":{"nullable":true,"type":"string","enum":["per_item","total","shipping"]},"startsAt":{"nullable":true,"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"endsAt":{"nullable":true,"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"enabled":{"type":"boolean"},"redemptionUrl":{"nullable":true,"type":"string","maxLength":2048,"format":"uri"},"maxUses":{"type":"integer","minimum":1,"maximum":1000000}}}}}},"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ItemsItem90"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"patchV1CouponPoolsById"},"delete":{"tags":["catalog"],"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"ok":{"type":"boolean","enum":[true]}},"required":["ok"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"deleteV1CouponPoolsById"}},"/v1/coupon-codes":{"get":{"summary":"Codes across every pool: by profile, status, expiry range","tags":["catalog"],"parameters":[{"schema":{"default":50,"type":"integer","minimum":1,"maximum":200},"in":"query","name":"limit","required":false},{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"query","name":"cursor","required":false},{"schema":{"type":"string","enum":["active","disabled","redeemed"]},"in":"query","name":"status","required":false},{"schema":{"type":"string","enum":["true","false"]},"in":"query","name":"assigned","required":false},{"schema":{"type":"string","maxLength":128},"in":"query","name":"q","required":false},{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"query","name":"profileId","required":false},{"schema":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"in":"query","name":"expiresFrom","required":false},{"schema":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"in":"query","name":"expiresTo","required":false},{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"query","name":"poolId","required":false}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetV1CouponPoolsByIdCodesResponse"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1CouponCodes"}},"/v1/coupon-pools/{id}/codes/one":{"post":{"summary":"Add one code with an optional expiry","tags":["catalog"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string","minLength":1,"maxLength":128},"expiresAt":{"nullable":true,"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"redemptionUrl":{"nullable":true,"type":"string","maxLength":2048,"format":"uri"}},"required":["code"]}}}},"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"201":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ItemsItem91"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"postV1CouponPoolsByIdCodesOne"}},"/v1/coupon-pools/{id}/codes/redeem":{"post":{"summary":"Mark a code redeemed (from an order event)","tags":["catalog"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string","minLength":1,"maxLength":128},"key":{"type":"string","minLength":1,"maxLength":256}},"required":["code"]}}}},"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ItemsItem91"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"postV1CouponPoolsByIdCodesRedeem"}},"/v1/coupon-pools/{id}/codes/{codeId}":{"get":{"tags":["catalog"],"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true},{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"codeId","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ItemsItem91"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1CouponPoolsByIdCodesByCodeId"},"patch":{"summary":"Disable/enable, set expiry, or assign to / release from a profile","tags":["catalog"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"string","enum":["active","disabled"]},"expiresAt":{"nullable":true,"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"profileId":{"nullable":true,"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"redemptionUrl":{"nullable":true,"type":"string","maxLength":2048,"format":"uri"}}}}}},"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true},{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"codeId","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ItemsItem91"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"patchV1CouponPoolsByIdCodesByCodeId"},"delete":{"tags":["catalog"],"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true},{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"codeId","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"ok":{"type":"boolean","enum":[true]}},"required":["ok"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"deleteV1CouponPoolsByIdCodesByCodeId"}},"/v1/web-feeds":{"get":{"tags":["catalog"],"parameters":[{"schema":{"type":"integer","minimum":1,"maximum":200},"in":"query","name":"limit","required":false,"description":"Page size; omitted returns the whole list"},{"schema":{"type":"string","pattern":"^\\d{1,9}$"},"in":"query","name":"cursor","required":false,"description":"Opaque: the `nextCursor` of the previous page"}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"items":{"type":"array","items":{"$ref":"#/components/schemas/ItemsItem95"}},"nextCursor":{"nullable":true,"type":"string"}},"required":["items","nextCursor"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1WebFeeds"},"post":{"summary":"JSON or RSS URL fetched on a schedule and cached; first fetch is queued now","tags":["catalog"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","pattern":"^[a-z][a-z0-9_]{0,63}$"},"url":{"type":"string","maxLength":2048,"format":"uri"},"format":{"default":"json","type":"string","enum":["json","rss","xml"]},"refreshHours":{"default":6,"type":"integer","minimum":1,"maximum":168},"method":{"default":"GET","type":"string","enum":["GET","POST"]},"requestBody":{"nullable":true,"type":"string","maxLength":20000}},"required":["name","url"]}}}},"responses":{"201":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ItemsItem95"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"postV1WebFeeds"}},"/v1/web-feeds/{id}":{"get":{"summary":"Includes the cached body","tags":["catalog"],"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"name":{"type":"string"},"url":{"type":"string"},"format":{"type":"string","enum":["json","rss","xml"]},"refreshHours":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"method":{"type":"string","enum":["GET","POST"]},"requestBody":{"nullable":true,"type":"string"},"lastFetchedAt":{"nullable":true,"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"lastError":{"nullable":true,"type":"string"},"cached":{"type":"boolean"},"cache":{}},"required":["id","name","url","format","refreshHours","method","requestBody","lastFetchedAt","lastError","cached","cache"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1WebFeedsById"},"patch":{"tags":["catalog"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","pattern":"^[a-z][a-z0-9_]{0,63}$"},"url":{"type":"string","maxLength":2048,"format":"uri"},"format":{"type":"string","enum":["json","rss","xml"]},"refreshHours":{"type":"integer","minimum":1,"maximum":168},"method":{"type":"string","enum":["GET","POST"]},"requestBody":{"nullable":true,"type":"string","maxLength":20000}}}}}},"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ItemsItem95"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"patchV1WebFeedsById"},"delete":{"tags":["catalog"],"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"ok":{"type":"boolean","enum":[true]}},"required":["ok"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"deleteV1WebFeedsById"}},"/v1/web-feeds/{id}/refresh":{"post":{"tags":["catalog"],"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"ok":{"type":"boolean","enum":[true]}},"required":["ok"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"postV1WebFeedsByIdRefresh"}},"/v1/reviews":{"get":{"tags":["catalog"],"parameters":[{"schema":{"default":50,"type":"integer","minimum":1,"maximum":200},"in":"query","name":"limit","required":false},{"schema":{"type":"string","maxLength":300},"in":"query","name":"cursor","required":false},{"schema":{"type":"string","enum":["pending","published","featured","unpublished","rejected"]},"in":"query","name":"status","required":false},{"schema":{"type":"string","minLength":1,"maxLength":256},"in":"query","name":"productId","required":false},{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"query","name":"profileId","required":false},{"schema":{"type":"string","enum":["review","question","rating","store"]},"in":"query","name":"reviewType","required":false},{"schema":{"type":"integer","minimum":1,"maximum":5},"in":"query","name":"rating","required":false},{"schema":{"type":"integer","minimum":1,"maximum":5},"in":"query","name":"minRating","required":false},{"schema":{"type":"string","enum":["true","false"]},"in":"query","name":"verified","required":false},{"schema":{"type":"string","enum":["true","false"]},"in":"query","name":"hasMedia","required":false},{"schema":{"type":"string","enum":["true","false"]},"in":"query","name":"hasReply","required":false},{"schema":{"type":"string","maxLength":200},"in":"query","name":"q","required":false},{"schema":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"in":"query","name":"createdFrom","required":false},{"schema":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"in":"query","name":"createdTo","required":false},{"schema":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"in":"query","name":"updatedFrom","required":false},{"schema":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"in":"query","name":"updatedTo","required":false},{"schema":{"default":"created","type":"string","enum":["created","-created","updated","-updated","rating","-rating"]},"in":"query","name":"sort","required":false}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"items":{"type":"array","items":{"$ref":"#/components/schemas/ItemsItem96"}},"nextCursor":{"nullable":true,"type":"string"}},"required":["items","nextCursor"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1Reviews"},"post":{"summary":"Ingest a review (pending unless status is set); emits review_created for the profile","tags":["catalog"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"productId":{"type":"string","minLength":1,"maxLength":256},"reviewType":{"default":"review","type":"string","enum":["review","question","rating","store"]},"rating":{"nullable":true,"type":"integer","minimum":1,"maximum":5},"title":{"nullable":true,"type":"string","maxLength":300},"body":{"nullable":true,"type":"string","maxLength":10000},"authorName":{"nullable":true,"type":"string","maxLength":200},"profileId":{"nullable":true,"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"verified":{"type":"boolean"},"status":{"type":"string","enum":["pending","published","featured","unpublished","rejected"]},"images":{"default":[],"maxItems":10,"type":"array","items":{"type":"string","maxLength":2048,"format":"uri"}},"reviewerEmail":{"nullable":true,"type":"string","maxLength":254,"format":"email","pattern":"^(?:[A-Za-z0-9_'+\\-]+\\.)*[A-Za-z0-9_'+\\-]*[A-Za-z0-9_+-]@(?:[A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$"},"orderId":{"nullable":true,"type":"string","maxLength":256},"publicReply":{"nullable":true,"type":"string","maxLength":5000}},"required":["productId"]}}}},"responses":{"201":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ItemsItem96"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"postV1Reviews"}},"/v1/reviews/aggregates":{"get":{"summary":"Published-review count, average and histogram per product","tags":["catalog"],"parameters":[{"schema":{"type":"integer","minimum":1,"maximum":200},"in":"query","name":"limit","required":false,"description":"Page size; omitted returns the whole list"},{"schema":{"type":"string","pattern":"^\\d{1,9}$"},"in":"query","name":"cursor","required":false,"description":"Opaque: the `nextCursor` of the previous page"}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetIngestV1ReviewValuesReportsResponse"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1ReviewsAggregates"}},"/v1/reviews/aggregates/{productId}":{"get":{"tags":["catalog"],"parameters":[{"schema":{"type":"string","minLength":1,"maxLength":256},"in":"path","name":"productId","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ItemsItem80"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1ReviewsAggregatesByProductId"}},"/v1/reviews/{id}":{"get":{"tags":["catalog"],"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ItemsItem96"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1ReviewsById"},"patch":{"summary":"Moderate (pending | published | featured | unpublished | rejected), reply publicly, or edit rating, text, images and type","tags":["catalog"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"string","enum":["pending","published","featured","unpublished","rejected"]},"rating":{"nullable":true,"type":"integer","minimum":1,"maximum":5},"title":{"nullable":true,"type":"string","maxLength":300},"body":{"nullable":true,"type":"string","maxLength":10000},"authorName":{"nullable":true,"type":"string","maxLength":200},"verified":{"type":"boolean"},"images":{"maxItems":10,"type":"array","items":{"type":"string","maxLength":2048,"format":"uri"}},"reviewType":{"type":"string","enum":["review","question","rating","store"]},"productId":{"type":"string","minLength":1,"maxLength":256},"publicReply":{"nullable":true,"type":"string","maxLength":5000},"rejectionReason":{"nullable":true,"type":"string","maxLength":1000}}}}}},"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ItemsItem96"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"patchV1ReviewsById"},"delete":{"tags":["catalog"],"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"ok":{"type":"boolean","enum":[true]}},"required":["ok"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"deleteV1ReviewsById"}},"/v1/review-settings":{"get":{"summary":"Review-for-coupon incentive","tags":["catalog"],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetV1ReviewSettingsResponse"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1ReviewSettings"},"put":{"tags":["catalog"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"rewardPoolId":{"nullable":true,"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"rewardMinRating":{"default":4,"type":"integer","minimum":1,"maximum":5},"rewardRequiresMedia":{"default":false,"type":"boolean"}},"required":["rewardPoolId"]}}}},"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetV1ReviewSettingsResponse"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"putV1ReviewSettings"}},"/v1/review-feeds/google":{"get":{"summary":"URLs of the Google Shopping product reviews feed (XML, schema 2.3, 5,000 reviews per file) to give Merchant Center","tags":["catalog"],"parameters":[{"schema":{"default":"Store","type":"string","minLength":1,"maxLength":200},"in":"query","name":"publisher","required":false}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"url":{"type":"string"},"pages":{"type":"array","items":{"type":"string"}}},"required":["url","pages"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1ReviewFeedsGoogle"}},"/v1/review-feeds/google/replace":{"post":{"summary":"Revoke every review feed link made so far and return new ones","tags":["catalog"],"parameters":[{"schema":{"default":"Store","type":"string","minLength":1,"maxLength":200},"in":"query","name":"publisher","required":false}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"url":{"type":"string"},"pages":{"type":"array","items":{"type":"string"}}},"required":["url","pages"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"postV1ReviewFeedsGoogleReplace"}},"/feeds/reviews/{token}":{"get":{"summary":"Google Shopping product reviews feed (the signed link from /v1/review-feeds/google)","tags":["catalog"],"parameters":[{"schema":{"default":1,"type":"integer","minimum":1,"maximum":10000},"in":"query","name":"page","required":false},{"schema":{"type":"string","minLength":10,"maxLength":800},"in":"path","name":"token","required":true}],"security":[],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getFeedsReviewsByToken"}},"/v1/ai/settings":{"get":{"tags":["ai"],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetV1AiSettingsResponse"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1AiSettings"},"put":{"summary":"Workspace opt-in / kill switch for AI assist (off by default)","tags":["ai"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"enabled":{"type":"boolean"},"acknowledgeThirdPartyProcessing":{"type":"boolean"},"model":{"nullable":true,"type":"string","minLength":1,"maxLength":100}},"required":["enabled"]}}}},"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetV1AiSettingsResponse"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"putV1AiSettings"}},"/v1/ai/usage":{"get":{"tags":["ai"],"parameters":[{"schema":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}(?:[T ]\\d{2}:\\d{2}(?::\\d{2}(?:\\.\\d+)?)?(?:Z|[+-]\\d{2}:?\\d{2})?)?$","format":"date"},"in":"query","name":"from","required":true},{"schema":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}(?:[T ]\\d{2}:\\d{2}(?::\\d{2}(?:\\.\\d+)?)?(?:Z|[+-]\\d{2}:?\\d{2})?)?$","format":"date"},"in":"query","name":"to","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requests":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"inputTokens":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"outputTokens":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"byFeature":{"type":"object","additionalProperties":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}}},"required":["requests","inputTokens","outputTokens","byFeature"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1AiUsage"}},"/v1/ai/subject-suggestions":{"post":{"tags":["ai"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PostV1AiSubjectSuggestionsBody"}}}},"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PostV1AiSubjectSuggestionsResponse"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"postV1AiSubjectSuggestions"}},"/v1/ai/rewrite-tone":{"post":{"tags":["ai"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"text":{"type":"string","minLength":1,"maxLength":20000},"tone":{"type":"string","minLength":1,"maxLength":100}},"required":["text","tone"]}}}},"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PostV1AiRewriteToneResponse"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"postV1AiRewriteTone"}},"/v1/ai/translate":{"post":{"tags":["ai"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PostV1AiTranslateBody"}}}},"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PostV1AiRewriteToneResponse"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"postV1AiTranslate"}},"/v1/ai/body-from-brief":{"post":{"tags":["ai"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PostV1AiBodyFromBriefBody"}}}},"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PostV1AiRewriteToneResponse"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"postV1AiBodyFromBrief"}},"/v1/ai/brand-voice":{"put":{"summary":"Tone/style guide applied to every AI draft","tags":["ai"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"brandVoice":{"nullable":true,"type":"string","maxLength":2000}},"required":["brandVoice"]}}}},"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetV1AiSettingsResponse"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"putV1AiBrandVoice"}},"/v1/ai/segment-from-text":{"post":{"summary":"Draft a segment definition from a description; validated, never saved (create it through /v1/segments)","tags":["ai"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"description":{"type":"string","minLength":1,"maxLength":1000}},"required":["description"]}}}},"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"definition":{},"explanation":{"type":"array","items":{"type":"string"}},"draft":{"type":"boolean","enum":[true]},"model":{"type":"string"}},"required":["definition","explanation","draft","model"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"postV1AiSegmentFromText"}},"/v1/ai/schedule-from-text":{"post":{"summary":"Turn “next Tuesday at 9am” into one concrete send time for a preview; never schedules anything (use /v1/campaigns/{id}/schedule)","tags":["ai"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"text":{"type":"string","minLength":2,"maxLength":300},"timezone":{"type":"string","minLength":1,"maxLength":64}},"required":["text","timezone"]}}}},"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"localTime":{"type":"string"},"iso":{"type":"string"},"label":{"type":"string"},"timezone":{"type":"string"},"draft":{"type":"boolean","enum":[true]},"model":{"type":"string"}},"required":["localTime","iso","label","timezone","draft","model"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"postV1AiScheduleFromText"}},"/v1/ai/first-line":{"post":{"tags":["ai"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"prospect":{"type":"object","properties":{"firstName":{"type":"string","maxLength":100},"company":{"type":"string","maxLength":200},"title":{"type":"string","maxLength":200}}},"research":{"type":"string","minLength":1,"maxLength":4000},"offer":{"type":"string","maxLength":500}},"required":["prospect","research"]}}}},"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PostV1AiRewriteToneResponse"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"postV1AiFirstLine"}},"/v1/ai/reply-draft":{"post":{"tags":["ai"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"thread":{"minItems":1,"maxItems":20,"type":"array","items":{"type":"object","properties":{"from":{"type":"string","enum":["us","them"]},"text":{"type":"string","minLength":1,"maxLength":5000}},"required":["from","text"]}},"goal":{"type":"string","maxLength":300}},"required":["thread"]}}}},"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PostV1AiRewriteToneResponse"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"postV1AiReplyDraft"}},"/v1/ai/flow-from-text":{"post":{"summary":"Draft a flow from a prompt; validated with the workflow validator, never saved (create it through /v1/workflows)","tags":["ai"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"description":{"type":"string","minLength":1,"maxLength":2000}},"required":["description"]}}}},"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PostV1AiFlowFromTextResponse"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"postV1AiFlowFromText"}},"/v1/campaigns/{id}/ai-summary":{"post":{"summary":"A plain-language summary of the campaign report, written from its own figures only. Needs AI assist switched on; sends the figures (no recipient data) to the AI provider","tags":["ai"],"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PostV1AiRewriteToneResponse"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"postV1CampaignsByIdAiSummary"}},"/v1/commerce/stores/{id}/ai-summary":{"post":{"summary":"A plain-language summary of a store's orders and carts, written from its own totals only. Needs AI assist switched on; no customer data leaves","tags":["ai"],"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PostV1AiRewriteToneResponse"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"postV1CommerceStoresByIdAiSummary"}},"/v1/profiles/{id}/ai-commerce-summary":{"post":{"summary":"A plain-language read of one customer's buying behaviour (frequency, spend, top products, carts), from their order figures only. Needs AI assist switched on; no name, email or address leaves","tags":["ai"],"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PostV1AiRewriteToneResponse"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"postV1ProfilesByIdAiCommerceSummary"}},"/v1/commerce/orders/{id}/ai-summary":{"post":{"summary":"A plain-language status of one order (payment, fulfilment, refunds, contents). Needs AI assist switched on; the shipping address and links never leave","tags":["ai"],"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PostV1AiRewriteToneResponse"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"postV1CommerceOrdersByIdAiSummary"}},"/v1/ai/flow-edit":{"post":{"summary":"Propose a changed version of a flow from a plain-words instruction; validated, never saved (the editor saves it as a draft after the user accepts)","tags":["ai"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"instruction":{"type":"string","minLength":1,"maxLength":2000},"definition":{"$ref":"#/components/schemas/Definition4"}},"required":["instruction","definition"]}}}},"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PostV1AiFlowFromTextResponse"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"postV1AiFlowEdit"}},"/v1/ai/subject-experiment":{"post":{"summary":"Generate subject-line variants and start them as an experiment on the campaign (variants returned for you to apply as campaign variants)","tags":["ai"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"body":{"type":"string","minLength":1,"maxLength":20000},"count":{"default":3,"type":"integer","minimum":2,"maximum":6},"tone":{"type":"string","maxLength":100},"campaignId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"metric":{"$ref":"#/components/schemas/Metric2"}},"required":["body","campaignId"]}}}},"responses":{"201":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"experimentId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"variants":{"type":"array","items":{"type":"object","properties":{"key":{"type":"string"},"subject":{"type":"string"}},"required":["key","subject"],"additionalProperties":false}},"model":{"type":"string"}},"required":["experimentId","variants","model"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"postV1AiSubjectExperiment"}},"/v1/ai/flow-builds":{"get":{"summary":"History of AI journey builds, newest first","tags":["ai"],"parameters":[{"schema":{"default":50,"type":"integer","minimum":1,"maximum":200},"in":"query","name":"limit","required":false},{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"query","name":"cursor","required":false}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"items":{"type":"array","items":{"$ref":"#/components/schemas/ItemsItem97"}},"nextCursor":{"nullable":true,"type":"string"}},"required":["items","nextCursor"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1AiFlowBuilds"}},"/v1/ai/flow-builds/{id}":{"get":{"tags":["ai"],"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ItemsItem97"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1AiFlowBuildsById"}},"/v1/ai/flow-builds/{id}/saved":{"post":{"summary":"Record which flow a build was saved as (the flow itself is created through /v1/workflows)","tags":["ai"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Config16"}}}},"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ItemsItem97"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"postV1AiFlowBuildsByIdSaved"}},"/v1/experiments":{"get":{"tags":["experiments"],"parameters":[{"schema":{"default":50,"type":"integer","minimum":1,"maximum":200},"in":"query","name":"limit","required":false},{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"query","name":"cursor","required":false},{"schema":{"type":"string","enum":["draft","running","concluded"]},"in":"query","name":"status","required":false},{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"query","name":"scopeId","required":false}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetV1ExperimentsResponse"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1Experiments"},"post":{"tags":["experiments"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":200},"kind":{"default":"message_variant","type":"string","enum":["message_variant","path_split","holdout","send_time"]},"scopeType":{"type":"string","enum":["campaign","workflow","form","workspace"]},"scopeId":{"nullable":true,"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"key":{"default":"","type":"string","maxLength":64},"variants":{"minItems":2,"maxItems":10,"type":"array","items":{"type":"object","properties":{"key":{"type":"string","minLength":1,"maxLength":32},"weight":{"type":"integer","minimum":0,"maximum":1000}},"required":["key","weight"]}},"control":{"type":"string","maxLength":32},"metric":{"$ref":"#/components/schemas/Metric2"},"method":{"default":"bayesian_beta","type":"string","enum":["bayesian_beta","frequentist_ztest"]},"autoSelect":{"nullable":true,"type":"object","properties":{"enabled":{"default":false,"type":"boolean"},"afterHours":{"default":4,"type":"integer","minimum":1,"maximum":720},"pBest":{"default":0.95,"type":"number","minimum":0.5,"maximum":0.999},"stopAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"shift":{"type":"boolean"}}},"minRecipients":{"default":100,"type":"integer","minimum":1,"maximum":1000000},"minConversions":{"default":20,"type":"integer","minimum":1,"maximum":1000000}},"required":["name","scopeType","variants"]}}}},"responses":{"201":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ItemsItem98"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"postV1Experiments"}},"/v1/experiments/{id}":{"get":{"tags":["experiments"],"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ItemsItem98"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1ExperimentsById"}},"/v1/experiments/{id}/report":{"get":{"tags":["experiments"],"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetV1ExperimentsByIdReportResponse"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1ExperimentsByIdReport"}},"/v1/experiments/{id}/conclude":{"post":{"tags":["experiments"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"winnerKey":{"type":"string","minLength":1,"maxLength":32}},"required":["winnerKey"]}}}},"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ItemsItem98"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"postV1ExperimentsByIdConclude"}},"/v1/holdouts":{"get":{"tags":["experiments"],"parameters":[{"schema":{"default":50,"type":"integer","minimum":1,"maximum":200},"in":"query","name":"limit","required":false},{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"query","name":"cursor","required":false}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetV1ExperimentsResponse"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1Holdouts"},"post":{"tags":["experiments"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":200},"percent":{"type":"number","minimum":0,"maximum":50},"scopeType":{"default":"workspace","type":"string","enum":["workspace","campaign","workflow"]},"scopeId":{"nullable":true,"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},"required":["name","percent"]}}}},"responses":{"201":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ItemsItem98"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"postV1Holdouts"}},"/v1/holdouts/{id}":{"delete":{"tags":["experiments"],"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"ok":{"type":"boolean","enum":[true]}},"required":["ok"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"deleteV1HoldoutsById"}},"/v1/frequency-settings":{"get":{"tags":["experiments"],"parameters":[{"schema":{"type":"integer","minimum":1,"maximum":200},"in":"query","name":"limit","required":false,"description":"Page size; omitted returns the whole list"},{"schema":{"type":"string","pattern":"^\\d{1,9}$"},"in":"query","name":"cursor","required":false,"description":"Opaque: the `nextCursor` of the previous page"}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"items":{"$ref":"#/components/schemas/Items35"},"nextCursor":{"nullable":true,"type":"string"}},"required":["items","nextCursor"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1FrequencySettings"},"put":{"tags":["experiments"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"scopeType":{"default":"workspace","type":"string","enum":["workspace","campaign","workflow"]},"scopeId":{"nullable":true,"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"caps":{"default":[],"maxItems":20,"type":"array","items":{"type":"object","properties":{"channel":{"type":"string","enum":["email","sms","whatsapp","push","postcard"]},"purpose":{"type":"string","enum":["marketing","prospecting","transactional","operational"]},"max":{"type":"integer","minimum":1,"maximum":1000},"windowHours":{"type":"integer","minimum":1,"maximum":720}},"required":["channel","purpose","max","windowHours"]}},"smartSending":{"nullable":true,"type":"object","properties":{"hours":{"type":"integer","minimum":1,"maximum":336},"action":{"default":"skip","type":"string","enum":["defer","skip"]}},"required":["hours"]}}}}}},"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ItemsItem98"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"putV1FrequencySettings"}},"/v1/frequency-settings/{id}":{"delete":{"tags":["experiments"],"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"ok":{"type":"boolean","enum":[true]}},"required":["ok"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"deleteV1FrequencySettingsById"}},"/v1/campaigns/{id}/resend":{"post":{"tags":["experiments"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"to":{"type":"string","enum":["non_openers","non_clickers","new_subscribers","non_purchasers"]},"subject":{"type":"string","minLength":1,"maxLength":998},"at":{"type":"string","format":"date-time"}},"required":["to","subject"]}}}},"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"201":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ItemsItem54"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"postV1CampaignsByIdResend"}},"/v1/campaigns/{id}/ab-report":{"get":{"tags":["experiments"],"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetV1ExperimentsByIdReportResponse"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1CampaignsByIdAbReport"}},"/v1/campaigns/{id}/ab-rollout":{"post":{"tags":["experiments"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"winnerKey":{"type":"string","minLength":1,"maxLength":32}}}}}},"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"rolledOut":{"type":"boolean"},"winnerKey":{"nullable":true,"type":"string"},"recipients":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"reason":{"nullable":true,"type":"string"}},"required":["rolledOut","winnerKey","recipients","reason"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"postV1CampaignsByIdAbRollout"}},"/v1/profiles/{id}/send-time":{"get":{"summary":"Best local hour for this profile (smoothed toward the workspace histogram) and the next matching instant","tags":["experiments"],"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"profileId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"hour":{"type":"integer","minimum":0,"maximum":23},"source":{"type":"string","enum":["profile","workspace","default"]},"at":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"}},"required":["profileId","hour","source","at"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1ProfilesByIdSendTime"}},"/v1/workspace/sso":{"get":{"summary":"Single sign-on status: whether the workspace has an Atlas organization and its SSO connections","tags":["workspace"],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"available":{"type":"boolean"},"configured":{"type":"boolean"},"connections":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"type":{"type":"string"},"status":{"type":"string"}},"required":["id","type","status"],"additionalProperties":false}}},"required":["available","configured","connections"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1WorkspaceSso"}},"/v1/workspace/sso/setup-link":{"post":{"summary":"A one-time, 7-day link for your IT admin to connect your identity provider (and SCIM). People who sign in through it join this workspace.","tags":["workspace"],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"url":{"type":"string","format":"uri"},"expiresAt":{"nullable":true,"type":"string"}},"required":["url","expiresAt"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"postV1WorkspaceSsoSetupLink"}},"/v1/roles":{"get":{"parameters":[{"schema":{"type":"integer","minimum":1,"maximum":200},"in":"query","name":"limit","required":false,"description":"Page size; omitted returns the whole list"},{"schema":{"type":"string","pattern":"^\\d{1,9}$"},"in":"query","name":"cursor","required":false,"description":"Opaque: the `nextCursor` of the previous page"}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"items":{"type":"array","items":{"$ref":"#/components/schemas/ItemsItem99"}},"nextCursor":{"nullable":true,"type":"string"}},"required":["items","nextCursor"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1Roles"},"post":{"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PostV1RolesBody"}}}},"responses":{"201":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ItemsItem99"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"postV1Roles"}},"/v1/roles/{id}":{"put":{"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PostV1RolesBody"}}}},"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ItemsItem99"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"putV1RolesById"},"delete":{"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"ok":{"type":"boolean","enum":[true]}},"required":["ok"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"deleteV1RolesById"}},"/v1/members/{userId}/custom-role":{"put":{"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"roleId":{"nullable":true,"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},"required":["roleId"]}}}},"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"userId","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"ok":{"type":"boolean","enum":[true]}},"required":["ok"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"putV1MembersByUserIdCustomRole"}},"/v1/compliance/gpc":{"get":{"summary":"Whether a browser Global Privacy Control / Do Not Track signal counts as a tracking opt-out (default on)","responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"honour":{"type":"boolean"}},"required":["honour"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1ComplianceGpc"},"put":{"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"honour":{"type":"boolean"}},"required":["honour"]}}}},"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"honour":{"type":"boolean"}},"required":["honour"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"putV1ComplianceGpc"}},"/v1/compliance/trash-retention":{"get":{"summary":"Days deleted campaigns, lists and archived templates stay restorable (0 = forever)","responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"days":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["days"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1ComplianceTrashRetention"},"put":{"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"days":{"type":"integer","minimum":0,"maximum":3650}},"required":["days"]}}}},"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"days":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["days"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"putV1ComplianceTrashRetention"}},"/v1/compliance/retention":{"get":{"parameters":[{"schema":{"type":"integer","minimum":1,"maximum":200},"in":"query","name":"limit","required":false,"description":"Page size; omitted returns the whole list"},{"schema":{"type":"string","pattern":"^\\d{1,9}$"},"in":"query","name":"cursor","required":false,"description":"Opaque: the `nextCursor` of the previous page"}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"items":{"$ref":"#/components/schemas/Items36"},"nextCursor":{"nullable":true,"type":"string"}},"required":["items","nextCursor"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1ComplianceRetention"}},"/v1/compliance/retention/{dataClass}":{"put":{"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"retainDays":{"anyOf":[{"type":"integer","minimum":30,"maximum":3650},{"type":"string","enum":["default"]}],"nullable":true}},"required":["retainDays"]}}}},"parameters":[{"schema":{"type":"string"},"in":"path","name":"dataClass","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"items":{"$ref":"#/components/schemas/Items36"}},"required":["items"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"putV1ComplianceRetentionByDataClass"}},"/v1/compliance/unsubscribe-purge":{"get":{"summary":"Days after which an unsubscribed contact is erased (null = never)","responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetV1ComplianceUnsubscribePurgeResponse"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1ComplianceUnsubscribePurge"},"put":{"summary":"GDPR auto-purge: erase contacts N days after they unsubscribed (their address stays suppressed)","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"days":{"nullable":true,"type":"integer","minimum":1,"maximum":3650},"seconds":{"type":"integer","minimum":60,"maximum":31536000}}}}}},"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetV1ComplianceUnsubscribePurgeResponse"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"putV1ComplianceUnsubscribePurge"}},"/v1/compliance/orphan-purge":{"get":{"summary":"Days after which a contact with no list, message or consent history is erased (null = never)","responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"days":{"nullable":true,"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["days"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1ComplianceOrphanPurge"},"put":{"summary":"Clean up contacts that never joined a list, got a message or gave consent","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"days":{"nullable":true,"type":"integer","minimum":30,"maximum":3650}},"required":["days"]}}}},"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"days":{"nullable":true,"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["days"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"putV1ComplianceOrphanPurge"}},"/v1/profiles/{id}/dsar/export":{"post":{"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"exportedAt":{"type":"string"}},"required":["requestId","exportedAt"],"additionalProperties":{}}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"postV1ProfilesByIdDsarExport"}},"/v1/profiles/{id}/dsar/erase":{"post":{"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"tombstones":{"type":"number"},"counts":{"type":"object","additionalProperties":{"type":"object","additionalProperties":{"type":"number"}}}},"required":["requestId","tombstones","counts"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"postV1ProfilesByIdDsarErase"}},"/v1/billing/plans":{"get":{"tags":["billing"],"parameters":[{"schema":{"type":"integer","minimum":1,"maximum":200},"in":"query","name":"limit","required":false,"description":"Page size; omitted returns the whole list"},{"schema":{"type":"string","pattern":"^\\d{1,9}$"},"in":"query","name":"cursor","required":false,"description":"Opaque: the `nextCursor` of the previous page"}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"items":{"type":"array","items":{"$ref":"#/components/schemas/ItemsItem101"}},"nextCursor":{"nullable":true,"type":"string"}},"required":["items","nextCursor"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1BillingPlans"}},"/v1/billing":{"get":{"tags":["billing"],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetV1BillingResponse"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1Billing"}},"/v1/billing/usage":{"get":{"summary":"Per-period usage series (sends by channel, AI tokens), newest first","tags":["billing"],"parameters":[{"schema":{"default":12,"type":"integer","minimum":1,"maximum":36},"in":"query","name":"months","required":false},{"schema":{"type":"integer","minimum":1,"maximum":200},"in":"query","name":"limit","required":false,"description":"Page size; omitted returns the whole list"},{"schema":{"type":"string","pattern":"^\\d{1,9}$"},"in":"query","name":"cursor","required":false,"description":"Opaque: the `nextCursor` of the previous page"}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"items":{"type":"array","items":{"$ref":"#/components/schemas/ItemsItem102"}},"nextCursor":{"nullable":true,"type":"string"}},"required":["items","nextCursor"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1BillingUsage"}},"/v1/billing/usage/{period}":{"get":{"tags":["billing"],"parameters":[{"schema":{"type":"string","pattern":"^\\d{4}-(0[1-9]|1[0-2])$"},"in":"path","name":"period","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ItemsItem102"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1BillingUsageByPeriod"}},"/v1/billing/invoices":{"get":{"summary":"Invoices from the billing provider (empty when none is configured)","tags":["billing"],"parameters":[{"schema":{"type":"integer","minimum":1,"maximum":200},"in":"query","name":"limit","required":false,"description":"Page size; omitted returns the whole list"},{"schema":{"type":"string","pattern":"^\\d{1,9}$"},"in":"query","name":"cursor","required":false,"description":"Opaque: the `nextCursor` of the previous page"}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"items":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"number":{"nullable":true,"type":"string"},"status":{"type":"string"},"currency":{"type":"string"},"amountDueMinor":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"amountPaidMinor":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"createdAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"hostedUrl":{"nullable":true,"type":"string"},"pdfUrl":{"nullable":true,"type":"string"}},"required":["id","number","status","currency","amountDueMinor","amountPaidMinor","createdAt","hostedUrl","pdfUrl"],"additionalProperties":false}},"nextCursor":{"nullable":true,"type":"string"}},"required":["items","nextCursor"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1BillingInvoices"}},"/v1/billing/plan":{"put":{"summary":"Assign a plan directly. Self-hosted only: with a billing provider configured, plans change through checkout/webhooks.","tags":["billing"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"planId":{"type":"string","minLength":1,"maxLength":40},"limitOverrides":{"type":"object","additionalProperties":{"nullable":true,"type":"integer","minimum":0,"maximum":9007199254740991}}},"required":["planId"]}}}},"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetV1BillingResponse"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"putV1BillingPlan"}},"/v1/billing/checkout":{"post":{"tags":["billing"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"planId":{"type":"string","minLength":1,"maxLength":40},"successUrl":{"type":"string","maxLength":2048,"format":"uri"},"cancelUrl":{"type":"string","maxLength":2048,"format":"uri"}},"required":["planId","successUrl","cancelUrl"]}}}},"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"url":{"type":"string"}},"required":["url"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"postV1BillingCheckout"}},"/v1/billing/portal":{"post":{"summary":"Provider-hosted portal: invoices, payment method, plan changes","tags":["billing"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"returnUrl":{"type":"string","maxLength":2048,"format":"uri"}},"required":["returnUrl"]}}}},"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"url":{"type":"string"}},"required":["url"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"postV1BillingPortal"}},"/webhooks/billing/stripe":{"post":{"tags":["billing"],"security":[],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"received":{"type":"boolean","enum":[true]}},"required":["received"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"postWebhooksBillingStripe"}},"/metrics":{"get":{"summary":"Prometheus text exposition; bearer METRICS_TOKEN (404 when unset)","tags":["ops"],"security":[],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"string"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getMetrics"}},"/v1/ops/dlq":{"get":{"summary":"Failed (retries exhausted) jobs belonging to the caller's workspace","tags":["ops"],"parameters":[{"schema":{"type":"string","enum":["send","send-tx","ingest","segment-eval","workflow-step","campaign-fanout","inbound-sync","provider-events","webhook-out","imports","analytics-rollup","maintenance","outbox"]},"in":"query","name":"queue","required":false},{"schema":{"default":50,"type":"integer","minimum":1,"maximum":200},"in":"query","name":"limit","required":false}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"items":{"type":"array","items":{"type":"object","properties":{"queue":{"type":"string","enum":["send","send-tx","ingest","segment-eval","workflow-step","campaign-fanout","inbound-sync","provider-events","webhook-out","imports","analytics-rollup","maintenance","outbox"]},"id":{"type":"string"},"name":{"type":"string"},"attemptsMade":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"failedReason":{"nullable":true,"type":"string"},"failedAt":{"nullable":true,"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"}},"required":["queue","id","name","attemptsMade","failedReason","failedAt"],"additionalProperties":false}}},"required":["items"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1OpsDlq"}},"/v1/ops/dlq/{queue}/{id}/replay":{"post":{"summary":"Move a failed job back to the queue (audited)","tags":["ops"],"parameters":[{"schema":{"type":"string","enum":["send","send-tx","ingest","segment-eval","workflow-step","campaign-fanout","inbound-sync","provider-events","webhook-out","imports","analytics-rollup","maintenance","outbox"]},"in":"path","name":"queue","required":true},{"schema":{"type":"string","minLength":1,"maxLength":200},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"ok":{"type":"boolean","enum":[true]}},"required":["ok"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"postV1OpsDlqByQueueByIdReplay"}},"/v1/integrations/shopify/install":{"get":{"summary":"Start the Shopify app install: returns the authorize URL","tags":["connectors"],"parameters":[{"schema":{"type":"string","pattern":"^[a-z0-9][a-z0-9-]{0,60}\\.myshopify\\.com$"},"in":"query","name":"shop","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"url":{"type":"string","format":"uri"}},"required":["url"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1IntegrationsShopifyInstall"}},"/v1/integrations/hubspot/install":{"post":{"summary":"Start the HubSpot OAuth install: creates the (disabled) connection and returns the authorize URL","tags":["connectors"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":120},"clientId":{"type":"string","minLength":1,"maxLength":200},"clientSecret":{"type":"string","minLength":1,"maxLength":200},"appId":{"type":"string","minLength":1,"maxLength":40},"developerApiKey":{"type":"string","minLength":1,"maxLength":200}},"required":["name","clientId","clientSecret"]}}}},"responses":{"201":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"connectionId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"url":{"type":"string","format":"uri"}},"required":["connectionId","url"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"postV1IntegrationsHubspotInstall"}},"/v1/integrations/connections/{id}/hubspot/webhooks":{"post":{"summary":"Register the HubSpot webhook subscriptions (property change, creation, deletion, merge)","tags":["connectors"],"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"registered":{"type":"boolean"}},"required":["registered"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"postV1IntegrationsConnectionsByIdHubspotWebhooks"}},"/v1/integrations/connections/{id}/hubspot/lists":{"get":{"summary":"Segments mirrored into HubSpot lists","tags":["connectors"],"parameters":[{"schema":{"type":"integer","minimum":1,"maximum":200},"in":"query","name":"limit","required":false,"description":"Page size; omitted returns the whole list"},{"schema":{"type":"string","pattern":"^\\d{1,9}$"},"in":"query","name":"cursor","required":false,"description":"Opaque: the `nextCursor` of the previous page"},{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"items":{"type":"array","items":{"$ref":"#/components/schemas/ItemsItem103"}},"nextCursor":{"nullable":true,"type":"string"}},"required":["items","nextCursor"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1IntegrationsConnectionsByIdHubspotLists"},"post":{"summary":"Mirror a segment into a HubSpot static list: initial fill in the background, then kept current on segment entry and exit","tags":["connectors"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"segmentId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"name":{"type":"string","minLength":1,"maxLength":200}},"required":["segmentId","name"]}}}},"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"201":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ItemsItem103"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"postV1IntegrationsConnectionsByIdHubspotLists"}},"/v1/integrations/connections/{id}/hubspot/lists/{syncId}":{"delete":{"summary":"Stop mirroring (the HubSpot list is left in place)","tags":["connectors"],"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true},{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"syncId","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"ok":{"type":"boolean","enum":[true]}},"required":["ok"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"deleteV1IntegrationsConnectionsByIdHubspotListsBySyncId"}},"/v1/integrations/connections/{id}/hubspot/marketing-events/sync":{"post":{"summary":"Push marketing events and their registrations to HubSpot, keyed on each event's external id (its own ref, else its id); unchanged events are skipped","tags":["connectors"],"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"pushed":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"unchanged":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"registrations":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["pushed","unchanged","registrations"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"postV1IntegrationsConnectionsByIdHubspotMarketingEventsSync"}},"/v1/integrations/connections/{id}/shopify/discount-codes":{"post":{"summary":"Create unique single-use Shopify discount codes and add them to a coupon pool","tags":["connectors"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"poolId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"count":{"type":"integer","minimum":1,"maximum":2000},"percentOff":{"type":"number","minimum":1,"maximum":100},"prefix":{"type":"string","maxLength":12},"endsAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"}},"required":["poolId","count","percentOff"]}}}},"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"201":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"created":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"addedToPool":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["created","addedToPool"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"postV1IntegrationsConnectionsByIdShopifyDiscountCodes"}},"/v1/integrations/warehouse/rows":{"post":{"summary":"Reverse-ETL: upsert profiles and events from warehouse rows","tags":["connectors"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"rows":{"minItems":1,"maxItems":1000,"type":"array","items":{"oneOf":[{"type":"object","properties":{"type":{"type":"string","enum":["profile"]},"email":{"type":"string","maxLength":320},"phone":{"type":"string","maxLength":32},"externalId":{"type":"string","maxLength":200},"firstName":{"type":"string","maxLength":200},"lastName":{"type":"string","maxLength":200},"attributes":{"type":"object","additionalProperties":{}}},"required":["type"]},{"type":"object","properties":{"type":{"type":"string","enum":["event"]},"email":{"type":"string","maxLength":320},"phone":{"type":"string","maxLength":32},"externalId":{"type":"string","maxLength":200},"name":{"type":"string","minLength":1,"maxLength":128},"occurredAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"properties":{"type":"object","additionalProperties":{}},"dedupeKey":{"type":"string","minLength":1,"maxLength":256}},"required":["type","name","dedupeKey"]}]}}},"required":["rows"]}}}},"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"applied":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"failed":{"$ref":"#/components/schemas/Rejected"}},"required":["applied","failed"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"postV1IntegrationsWarehouseRows"}},"/v1/workspace/test-mode":{"get":{"tags":["workspace"],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"enabled":{"type":"boolean"}},"required":["enabled"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1WorkspaceTestMode"},"put":{"summary":"While on, no message reaches a real provider; sends are logged as test sends","tags":["workspace"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"enabled":{"type":"boolean"}},"required":["enabled"]}}}},"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"enabled":{"type":"boolean"}},"required":["enabled"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"putV1WorkspaceTestMode"}},"/integrations/shopify/callback":{"get":{"tags":["connectors"],"parameters":[{"schema":"object","in":"query","name":"type"},{"schema":{"type":"string"},"in":"query","name":"additionalProperties"}],"security":[],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"string"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getIntegrationsShopifyCallback"}},"/integrations/hubspot/callback":{"get":{"tags":["connectors"],"parameters":[{"schema":"object","in":"query","name":"type"},{"schema":{"type":"string"},"in":"query","name":"additionalProperties"}],"security":[],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"string"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getIntegrationsHubspotCallback"}},"/v1/integrations/connections":{"get":{"tags":["connectors"],"parameters":[{"schema":{"type":"integer","minimum":1,"maximum":200},"in":"query","name":"limit","required":false,"description":"Page size; omitted returns the whole list"},{"schema":{"type":"string","pattern":"^\\d{1,9}$"},"in":"query","name":"cursor","required":false,"description":"Opaque: the `nextCursor` of the previous page"}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"items":{"type":"array","items":{"$ref":"#/components/schemas/ItemsItem104"}},"nextCursor":{"nullable":true,"type":"string"}},"required":["items","nextCursor"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1IntegrationsConnections"},"post":{"tags":["connectors"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"kind":{"type":"string","enum":["hubspot","shopify","salesforce","pipedrive","dynamics","zendesk","segment","posthog","woocommerce","bigcommerce","stripe","s3","bigquery","snowflake"]},"name":{"type":"string","minLength":1,"maxLength":120},"credentials":{"type":"object","additionalProperties":{"type":"string","maxLength":4096}},"config":{"type":"object","additionalProperties":{}}},"required":["kind","name","credentials"]}}}},"responses":{"201":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ItemsItem104"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"postV1IntegrationsConnections"}},"/v1/integrations/connections/{id}/settings":{"patch":{"summary":"CRM field and property mapping, lifecycle handoff rules, lead-status writeback and opt-out sync","tags":["connectors"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"fieldMap":{"type":"object","additionalProperties":{"type":"string","pattern":"^[A-Za-z][A-Za-z0-9_.]{0,60}$"},"required":["firstName","lastName","phone","company"]},"leadStatusWriteback":{"type":"boolean"},"statusMap":{"type":"object","additionalProperties":{"type":"string","minLength":1,"maxLength":60},"required":["email_sent","reply","meeting","sms_sent","form_submit"]},"leadStatusField":{"type":"string","pattern":"^[A-Za-z][A-Za-z0-9_.]{0,60}$"},"propertyMap":{"type":"object","additionalProperties":{"type":"string","pattern":"^[A-Za-z][A-Za-z0-9_.]{0,60}$"}},"createMissingProperties":{"type":"boolean"},"lifecycleWriteback":{"type":"boolean"},"stageMap":{"type":"object","additionalProperties":{"type":"string","minLength":1,"maxLength":60},"required":["reply","meeting","form_submit"]},"lifecycleRegress":{"type":"boolean"},"exitLifecycleStages":{"maxItems":20,"type":"array","items":{"type":"string","minLength":1,"maxLength":60}},"exitLeadStatuses":{"maxItems":20,"type":"array","items":{"type":"string","minLength":1,"maxLength":60}},"subscriptionTopicMap":{"type":"object","additionalProperties":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},"pushOptOuts":{"type":"boolean"},"propagateMerges":{"type":"boolean"},"propagateErasure":{"type":"boolean"},"pushEnabled":{"type":"boolean"},"pushSegmentId":{"nullable":true,"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"companyPropertyMap":{"type":"object","additionalProperties":{"type":"string","pattern":"^[A-Za-z][A-Za-z0-9_.]{0,60}$"}},"marketingEventsAccountId":{"type":"string","pattern":"^[A-Za-z][A-Za-z0-9_.]{0,60}$"}}}}}},"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ItemsItem104"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"patchV1IntegrationsConnectionsByIdSettings"}},"/v1/integrations/connections/{id}":{"delete":{"tags":["connectors"],"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"ok":{"type":"boolean","enum":[true]}},"required":["ok"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"deleteV1IntegrationsConnectionsById"}},"/v1/integrations/connections/{id}/test":{"post":{"summary":"Make one real authenticated call to the connected system","tags":["connectors"],"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"ok":{"type":"boolean"},"message":{"type":"string"}},"required":["ok","message"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"postV1IntegrationsConnectionsByIdTest"}},"/v1/integrations/connections/{id}/webhook-url":{"get":{"summary":"The URL the source (e.g. Segment) should send events to","tags":["connectors"],"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"url":{"type":"string","format":"uri"}},"required":["url"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1IntegrationsConnectionsByIdWebhookUrl"}},"/v1/integrations/connections/{id}/sync":{"post":{"summary":"Queue a sync now","tags":["connectors"],"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"202":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"ok":{"type":"boolean","enum":[true]}},"required":["ok"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"postV1IntegrationsConnectionsByIdSync"}},"/webhooks/integrations/{workspaceId}/{connectionId}":{"post":{"tags":["connectors"],"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"workspaceId","required":true},{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"connectionId","required":true}],"security":[],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"postWebhooksIntegrationsByWorkspaceIdByConnectionId"},"get":{"tags":["connectors"],"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"workspaceId","required":true},{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"connectionId","required":true}],"security":[],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getWebhooksIntegrationsByWorkspaceIdByConnectionId"}},"/v1/integrations/catalog":{"get":{"summary":"Declarative connectors available to connect","tags":["connectors"],"parameters":[{"schema":{"type":"integer","minimum":1,"maximum":200},"in":"query","name":"limit","required":false,"description":"Page size; omitted returns the whole list"},{"schema":{"type":"string","pattern":"^\\d{1,9}$"},"in":"query","name":"cursor","required":false,"description":"Opaque: the `nextCursor` of the previous page"}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"items":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"category":{"type":"string"},"docsUrl":{"type":"string"},"logo":{"nullable":true,"type":"string"},"summary":{"type":"string"},"auth":{"type":"string","enum":["api_key","basic","oauth2","body_credentials","query_signature","wrapped_hmac"]},"oauthBrowser":{"type":"boolean"},"fields":{"type":"array","items":{"type":"object","properties":{"key":{"type":"string"},"label":{"type":"string"},"help":{"type":"string"},"secret":{"type":"boolean"},"optional":{"type":"boolean"},"url":{"type":"boolean"},"placeholder":{"type":"string"}},"required":["key","label","secret","optional","url"],"additionalProperties":false}},"events":{"type":"array","items":{"type":"string"}},"syncs":{"type":"array","items":{"type":"string"}},"webhooks":{"type":"boolean"},"consent":{"type":"string"},"verified":{"type":"boolean"},"notes":{"nullable":true,"type":"string"}},"required":["id","name","category","docsUrl","logo","summary","auth","oauthBrowser","fields","events","syncs","webhooks","consent","verified","notes"],"additionalProperties":false}},"nextCursor":{"nullable":true,"type":"string"}},"required":["items","nextCursor"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1IntegrationsCatalog"}},"/v1/integrations/declarative/connect":{"post":{"summary":"Connect a catalog connector from its manifest fields; OAuth connectors return the authorize URL","tags":["connectors"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"manifestId":{"type":"string","maxLength":60},"name":{"type":"string","minLength":1,"maxLength":120},"values":{"type":"object","additionalProperties":{"type":"string","maxLength":4096}}},"required":["manifestId","name","values"]}}}},"responses":{"201":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"connectionId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"authorizeUrl":{"nullable":true,"type":"string"},"webhook":{"$ref":"#/components/schemas/Webhook"}},"required":["connectionId","authorizeUrl","webhook"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"postV1IntegrationsDeclarativeConnect"}},"/v1/integrations/connections/{id}/declarative":{"get":{"summary":"Sync cursors, last error and the webhook URL + secret to paste into the vendor","tags":["connectors"],"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"manifestId":{"type":"string"},"status":{"type":"string"},"lastSyncAt":{"nullable":true,"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"lastError":{"nullable":true,"type":"string"},"webhook":{"$ref":"#/components/schemas/Webhook"},"secretRotatable":{"type":"boolean"},"secretPastable":{"type":"boolean"},"secretSet":{"type":"boolean"},"push":{"type":"object","properties":{"available":{"type":"boolean"},"enabled":{"type":"boolean"},"segmentId":{"nullable":true,"type":"string"}},"required":["available","enabled","segmentId"],"additionalProperties":false},"streams":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string"},"cursor":{"nullable":true,"type":"string"},"done":{"type":"boolean"}},"required":["name","cursor","done"],"additionalProperties":false}}},"required":["manifestId","status","lastSyncAt","lastError","webhook","secretRotatable","secretPastable","secretSet","push","streams"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1IntegrationsConnectionsByIdDeclarative"}},"/v1/integrations/connections/{id}/resync":{"post":{"summary":"Forget the cursors and re-read the vendor from the beginning","tags":["connectors"],"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"202":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"ok":{"type":"boolean","enum":[true]}},"required":["ok"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"postV1IntegrationsConnectionsByIdResync"}},"/v1/integrations/connections/{id}/declarative/rotate-webhook-secret":{"post":{"summary":"Generate a new webhook secret; the new value is returned once and the old one stops working","tags":["connectors"],"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"url":{"type":"string"},"secret":{"nullable":true,"type":"string"},"verifyToken":{"nullable":true,"type":"string"},"signature":{"type":"string"},"setup":{"nullable":true,"type":"string"},"capturedCode":{"nullable":true,"type":"string"},"capturedAt":{"nullable":true,"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"}},"required":["url","secret","verifyToken","signature","setup","capturedCode","capturedAt"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"postV1IntegrationsConnectionsByIdDeclarativeRotateWebhookSecret"}},"/v1/integrations/connections/{id}/declarative/webhook-secret":{"put":{"summary":"Save the signing secret the vendor shows only after it verified the webhook URL (e.g. Clover X-Clover-Auth); it is never returned","tags":["connectors"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"secret":{"type":"string","minLength":1,"maxLength":512}},"required":["secret"]}}}},"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"ok":{"type":"boolean","enum":[true]}},"required":["ok"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"putV1IntegrationsConnectionsByIdDeclarativeWebhookSecret"}},"/v1/integrations/connections/{id}/declarative/push":{"put":{"summary":"Turn on sending changed profiles to this CRM/helpdesk (off by default), optionally for one segment","tags":["connectors"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"enabled":{"type":"boolean"},"segmentId":{"nullable":true,"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},"required":["enabled"]}}}},"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"ok":{"type":"boolean","enum":[true]}},"required":["ok"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"putV1IntegrationsConnectionsByIdDeclarativePush"}},"/v1/integrations/marketplace":{"get":{"summary":"Catalogue packages, whether each passes signature and review checks, and the installed version","tags":["connectors"],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"configured":{"type":"boolean"},"items":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"version":{"type":"string"},"name":{"type":"string"},"publisher":{"type":"string"},"summary":{"type":"string"},"reviewStatus":{"type":"string"},"installable":{"type":"boolean"},"problem":{"nullable":true,"type":"string"},"installedVersion":{"nullable":true,"type":"string"}},"required":["id","version","name","publisher","summary","reviewStatus","installable","problem","installedVersion"],"additionalProperties":false}}},"required":["configured","items"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1IntegrationsMarketplace"}},"/v1/integrations/packages":{"get":{"tags":["connectors"],"parameters":[{"schema":{"type":"integer","minimum":1,"maximum":200},"in":"query","name":"limit","required":false,"description":"Page size; omitted returns the whole list"},{"schema":{"type":"string","pattern":"^\\d{1,9}$"},"in":"query","name":"cursor","required":false,"description":"Opaque: the `nextCursor` of the previous page"}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"items":{"type":"array","items":{"$ref":"#/components/schemas/ItemsItem105"}},"nextCursor":{"nullable":true,"type":"string"}},"required":["items","nextCursor"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1IntegrationsPackages"},"post":{"summary":"Install one catalogue package version; unsigned, mis-signed or unreviewed packages are refused","tags":["connectors"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"packageId":{"type":"string","pattern":"^[a-z][a-z0-9-]{1,35}$"},"version":{"type":"string","pattern":"^\\d{1,4}\\.\\d{1,4}\\.\\d{1,6}$"}},"required":["packageId","version"]}}}},"responses":{"201":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ItemsItem105"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"postV1IntegrationsPackages"}},"/v1/integrations/packages/{packageId}/upgrade":{"post":{"summary":"Move an installed package (and every connection using it) to another verified version","tags":["connectors"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"version":{"type":"string","pattern":"^\\d{1,4}\\.\\d{1,4}\\.\\d{1,6}$"}},"required":["version"]}}}},"parameters":[{"schema":{"type":"string","pattern":"^[a-z][a-z0-9-]{1,35}$"},"in":"path","name":"packageId","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ItemsItem105"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"postV1IntegrationsPackagesByPackageIdUpgrade"}},"/v1/integrations/packages/{packageId}":{"delete":{"summary":"Uninstall; refused while connections use it","tags":["connectors"],"parameters":[{"schema":{"type":"string","pattern":"^[a-z][a-z0-9-]{1,35}$"},"in":"path","name":"packageId","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"ok":{"type":"boolean","enum":[true]}},"required":["ok"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"deleteV1IntegrationsPackagesByPackageId"}},"/integrations/x/callback":{"get":{"tags":["connectors"],"parameters":[{"schema":"object","in":"query","name":"type"},{"schema":{"type":"string"},"in":"query","name":"additionalProperties"}],"security":[],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"string"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getIntegrationsXCallback"}},"/v1/attributes":{"get":{"summary":"Attribute catalogue for the segment builder: standard fields, observed custom attribute keys + inferred types, event names with property keys (sampled, cached 5 min)","tags":["segments"],"parameters":[{"schema":{"type":"string","enum":["true","false"]},"in":"query","name":"refresh","required":false}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"standard":{"type":"array","items":{"type":"object","properties":{"key":{"type":"string"},"type":{"type":"string","enum":["string","number","boolean","date","list","object"]}},"required":["key","type"],"additionalProperties":false}},"custom":{"type":"array","items":{"type":"object","properties":{"key":{"type":"string"},"type":{"type":"string","enum":["string","number","boolean","date","list","object"]},"mixed":{"type":"boolean"},"count":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["key","type","mixed","count"],"additionalProperties":false}},"events":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string"},"category":{"type":"string","enum":["standard","custom"]},"lastSeenAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"properties":{"type":"array","items":{"type":"object","properties":{"key":{"type":"string"},"type":{"type":"string","enum":["string","number","boolean","date","list","object"]},"mixed":{"type":"boolean"},"count":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"declared":{"type":"boolean"}},"required":["key","type","mixed","count","declared"],"additionalProperties":false}}},"required":["name","category","lastSeenAt","properties"],"additionalProperties":false}},"sample":{"type":"object","properties":{"profiles":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"eventsPerName":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["profiles","eventsPerName"],"additionalProperties":false},"declared":{"$ref":"#/components/schemas/Items4"},"generatedAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"cached":{"type":"boolean"}},"required":["standard","custom","events","sample","generatedAt","cached"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1Attributes"}},"/v1/sites/{id}/health":{"get":{"tags":["sites"],"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"lastEventByType":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string"},"lastSeenAt":{"nullable":true,"type":"string"},"count24h":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["name","lastSeenAt","count24h"],"additionalProperties":false}},"originMismatches":{"type":"array","items":{"type":"object","properties":{"origin":{"type":"string"},"count":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"lastSeenAt":{"type":"string"}},"required":["origin","count","lastSeenAt"],"additionalProperties":false}},"consentRejections":{"type":"object","properties":{"count":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"lastSeenAt":{"nullable":true,"type":"string"}},"required":["count","lastSeenAt"],"additionalProperties":false},"sdkVersions":{"type":"array","items":{"type":"object","properties":{"version":{"type":"string"},"share":{"type":"number"}},"required":["version","share"],"additionalProperties":false}}},"required":["lastEventByType","originMismatches","consentRejections","sdkVersions"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1SitesByIdHealth"}},"/v1/sites":{"get":{"summary":"List sites and their site keys: a signed-in user or a secret key with api_keys:read","tags":["sites"],"parameters":[{"schema":{"type":"integer","minimum":1,"maximum":200},"in":"query","name":"limit","required":false,"description":"Page size; omitted returns the whole list"},{"schema":{"type":"string","pattern":"^\\d{1,9}$"},"in":"query","name":"cursor","required":false,"description":"Opaque: the `nextCursor` of the previous page"}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"items":{"type":"array","items":{"$ref":"#/components/schemas/ItemsItem106"}},"nextCursor":{"nullable":true,"type":"string"}},"required":["items","nextCursor"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1Sites"},"post":{"tags":["sites"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":120},"domain":{"type":"string","minLength":3,"maxLength":253,"pattern":"^[a-z0-9]([a-z0-9.-]*[a-z0-9])?$"},"consentMode":{"default":"require_consent","type":"string","enum":["open","require_consent"]},"botFilter":{"default":true,"type":"boolean"}},"required":["name","domain"]}}}},"responses":{"201":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"name":{"type":"string"},"domain":{"type":"string"},"enabled":{"type":"boolean"},"verifiedAt":{"nullable":true,"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"consentMode":{"type":"string"},"botFilter":{"type":"boolean"},"originAllowlist":{"type":"array","items":{"type":"string"}},"ipAllowlist":{"type":"array","items":{"type":"string"}},"createdAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"plaintext":{"type":"string"}},"required":["id","name","domain","enabled","verifiedAt","consentMode","botFilter","originAllowlist","ipAllowlist","createdAt","plaintext"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"postV1Sites"}},"/v1/sites/{id}":{"get":{"tags":["sites"],"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ItemsItem106"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1SitesById"},"patch":{"summary":"Rename, change domain, or enable/disable tracking (the pixel)","tags":["sites"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":120},"domain":{"type":"string","minLength":3,"maxLength":253,"pattern":"^[a-z0-9]([a-z0-9.-]*[a-z0-9])?$"},"enabled":{"type":"boolean"}}}}}},"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ItemsItem106"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"patchV1SitesById"},"delete":{"summary":"Revokes the site key","tags":["sites"],"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"ok":{"type":"boolean","enum":[true]}},"required":["ok"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"deleteV1SitesById"}},"/v1/sites/{id}/verify":{"post":{"summary":"Verified once the snippet has sent a browser event","tags":["sites"],"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ItemsItem106"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"postV1SitesByIdVerify"}},"/v1/sites/{id}/allowlist":{"get":{"tags":["sites"],"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetV1SitesByIdAllowlistResponse"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1SitesByIdAllowlist"},"put":{"tags":["sites"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"origins":{"default":[],"maxItems":50,"type":"array","items":{"type":"string","maxLength":255}},"ips":{"default":[],"maxItems":100,"type":"array","items":{"type":"string","maxLength":64}}}}}}},"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetV1SitesByIdAllowlistResponse"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"putV1SitesByIdAllowlist"}},"/v1/deliverability/overview":{"get":{"tags":["deliverability"],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"domains":{"type":"array","items":{"type":"object","properties":{"domain":{"type":"string"},"dnsbl":{"nullable":true,"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"target":{"type":"string"},"listed":{"type":"boolean"},"listings":{"type":"array","items":{"type":"object","properties":{"zone":{"type":"string"},"code":{"type":"string"}},"required":["zone","code"],"additionalProperties":false}},"errors":{"type":"array","items":{"type":"string"}},"checkedAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"}},"required":["id","target","listed","listings","errors","checkedAt"],"additionalProperties":false},"reputation":{"$ref":"#/components/schemas/Reputation"},"openAlerts":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["domain","dnsbl","reputation","openAlerts"],"additionalProperties":false}}},"required":["domains"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1DeliverabilityOverview"}},"/v1/deliverability/reputation":{"get":{"tags":["deliverability"],"parameters":[{"schema":{"type":"string","minLength":3},"in":"query","name":"domain","required":true},{"schema":{"type":"integer","minimum":1,"maximum":200},"in":"query","name":"limit","required":false,"description":"Page size; omitted returns the whole list"},{"schema":{"type":"string","pattern":"^\\d{1,9}$"},"in":"query","name":"cursor","required":false,"description":"Opaque: the `nextCursor` of the previous page"}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"items":{"$ref":"#/components/schemas/Reputation"},"nextCursor":{"nullable":true,"type":"string"}},"required":["items","nextCursor"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1DeliverabilityReputation"}},"/v1/deliverability/dnsbl-checks":{"post":{"tags":["deliverability"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"target":{"type":"string","minLength":3,"maxLength":253}},"required":["target"]}}}},"responses":{"201":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"target":{"type":"string"},"listed":{"type":"boolean"},"listings":{"type":"array","items":{"type":"object","properties":{"zone":{"type":"string"},"code":{"type":"string"}},"required":["zone","code"],"additionalProperties":false}},"errors":{"type":"array","items":{"type":"string"}},"checkedAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"}},"required":["id","target","listed","listings","errors","checkedAt"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"postV1DeliverabilityDnsblChecks"}},"/v1/deliverability/sources":{"get":{"tags":["deliverability"],"parameters":[{"schema":{"type":"integer","minimum":1,"maximum":200},"in":"query","name":"limit","required":false,"description":"Page size; omitted returns the whole list"},{"schema":{"type":"string","pattern":"^\\d{1,9}$"},"in":"query","name":"cursor","required":false,"description":"Opaque: the `nextCursor` of the previous page"}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"items":{"type":"array","items":{"$ref":"#/components/schemas/ItemsItem107"}},"nextCursor":{"nullable":true,"type":"string"}},"required":["items","nextCursor"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1DeliverabilitySources"},"post":{"tags":["deliverability"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"kind":{"type":"string","enum":["google_postmaster","microsoft_snds"]},"name":{"type":"string","minLength":1,"maxLength":100},"credentials":{"type":"object","additionalProperties":{"type":"string"}},"domains":{"default":[],"type":"array","items":{"type":"string","minLength":3}}},"required":["kind","name","credentials"]}}}},"responses":{"201":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ItemsItem107"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"postV1DeliverabilitySources"}},"/v1/deliverability/sources/{id}":{"delete":{"tags":["deliverability"],"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"ok":{"type":"boolean","enum":[true]}},"required":["ok"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"deleteV1DeliverabilitySourcesById"}},"/v1/deliverability/rules":{"get":{"tags":["deliverability"],"parameters":[{"schema":{"type":"integer","minimum":1,"maximum":200},"in":"query","name":"limit","required":false,"description":"Page size; omitted returns the whole list"},{"schema":{"type":"string","pattern":"^\\d{1,9}$"},"in":"query","name":"cursor","required":false,"description":"Opaque: the `nextCursor` of the previous page"}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"items":{"type":"array","items":{"$ref":"#/components/schemas/ItemsItem108"}},"nextCursor":{"nullable":true,"type":"string"}},"required":["items","nextCursor"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1DeliverabilityRules"},"post":{"tags":["deliverability"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":120},"metric":{"type":"string","enum":["dnsbl_listed","spam_rate","bounce_rate","domain_reputation"]},"threshold":{"default":0,"description":"A fraction, not a percent: spam_rate and bounce_rate fire at or above it (0.003 = 0.3%, the Gmail line; 0.05 = 5% bounces); domain_reputation fires at or below 0 BAD, 1 LOW, 2 MEDIUM; dnsbl_listed ignores it","type":"number","minimum":0,"maximum":3},"action":{"default":"notify","type":"string","enum":["notify","pause","throttle"]}},"required":["name","metric"]}}}},"responses":{"201":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ItemsItem108"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"postV1DeliverabilityRules"}},"/v1/deliverability/rules/{id}":{"delete":{"tags":["deliverability"],"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"ok":{"type":"boolean","enum":[true]}},"required":["ok"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"deleteV1DeliverabilityRulesById"},"get":{"tags":["deliverability"],"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ItemsItem108"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1DeliverabilityRulesById"},"patch":{"tags":["deliverability"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":100},"threshold":{"type":"number"},"action":{"type":"string","enum":["notify","pause","throttle"]},"enabled":{"type":"boolean"}}}}}},"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ItemsItem108"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"patchV1DeliverabilityRulesById"}},"/v1/deliverability/alerts":{"get":{"tags":["deliverability"],"parameters":[{"schema":{"type":"integer","minimum":1,"maximum":200},"in":"query","name":"limit","required":false,"description":"Page size; omitted returns the whole list"},{"schema":{"type":"string","pattern":"^\\d{1,9}$"},"in":"query","name":"cursor","required":false,"description":"Opaque: the `nextCursor` of the previous page"}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetV1DeliverabilityAlertsResponse"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1DeliverabilityAlerts"}},"/v1/deliverability/alerts/{id}/resolve":{"post":{"tags":["deliverability"],"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"ok":{"type":"boolean","enum":[true]}},"required":["ok"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"postV1DeliverabilityAlertsByIdResolve"}},"/v1/deliverability/warmup/{connectionId}":{"get":{"tags":["deliverability"],"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"connectionId","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetV1DeliverabilityWarmupByConnectionIdResponse"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1DeliverabilityWarmupByConnectionId"},"put":{"tags":["deliverability"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"enabled":{"type":"boolean"},"startPerDay":{"default":2,"type":"integer","minimum":1,"maximum":50},"incrementPerDay":{"default":2,"type":"integer","minimum":0,"maximum":20},"maxPerDay":{"default":30,"type":"integer","minimum":1,"maximum":100}},"required":["enabled"]}}}},"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"connectionId","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetV1DeliverabilityWarmupByConnectionIdResponse"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"putV1DeliverabilityWarmupByConnectionId"}},"/v1/deliverability/seeds":{"get":{"tags":["deliverability"],"parameters":[{"schema":{"type":"integer","minimum":1,"maximum":200},"in":"query","name":"limit","required":false,"description":"Page size; omitted returns the whole list"},{"schema":{"type":"string","pattern":"^\\d{1,9}$"},"in":"query","name":"cursor","required":false,"description":"Opaque: the `nextCursor` of the previous page"}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"items":{"type":"array","items":{"$ref":"#/components/schemas/ItemsItem110"}},"nextCursor":{"nullable":true,"type":"string"}},"required":["items","nextCursor"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1DeliverabilitySeeds"},"post":{"tags":["deliverability"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PostV1DeliverabilitySeedsBody"}}}},"responses":{"201":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ItemsItem110"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"postV1DeliverabilitySeeds"}},"/v1/deliverability/seeds/{id}":{"delete":{"tags":["deliverability"],"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"ok":{"type":"boolean","enum":[true]}},"required":["ok"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"deleteV1DeliverabilitySeedsById"}},"/v1/deliverability/placement-tests":{"get":{"tags":["deliverability"],"parameters":[{"schema":{"type":"integer","minimum":1,"maximum":200},"in":"query","name":"limit","required":false,"description":"Page size; omitted returns the whole list"},{"schema":{"type":"string","pattern":"^\\d{1,9}$"},"in":"query","name":"cursor","required":false,"description":"Opaque: the `nextCursor` of the previous page"}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"items":{"type":"array","items":{"$ref":"#/components/schemas/ItemsItem111"}},"nextCursor":{"nullable":true,"type":"string"}},"required":["items","nextCursor"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1DeliverabilityPlacementTests"},"post":{"tags":["deliverability"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"senderConnectionId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"name":{"type":"string","minLength":1,"maxLength":120},"folder":{"type":"string","minLength":1,"maxLength":60},"subject":{"type":"string","minLength":1,"maxLength":200},"body":{"type":"string","minLength":1,"maxLength":20000},"recurEveryDays":{"type":"integer","minimum":1,"maximum":30}},"required":["senderConnectionId"]}}}},"responses":{"201":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ItemsItem111"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"postV1DeliverabilityPlacementTests"}},"/v1/deliverability/channels":{"get":{"tags":["deliverability"],"parameters":[{"schema":{"type":"integer","minimum":1,"maximum":200},"in":"query","name":"limit","required":false,"description":"Page size; omitted returns the whole list"},{"schema":{"type":"string","pattern":"^\\d{1,9}$"},"in":"query","name":"cursor","required":false,"description":"Opaque: the `nextCursor` of the previous page"}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"items":{"type":"array","items":{"$ref":"#/components/schemas/ItemsItem112"}},"nextCursor":{"nullable":true,"type":"string"}},"required":["items","nextCursor"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1DeliverabilityChannels"},"post":{"tags":["deliverability"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"kind":{"type":"string","enum":["email","slack","discord","webhook"]},"name":{"type":"string","minLength":1,"maxLength":100},"target":{"type":"string","minLength":3,"maxLength":2000},"secret":{"type":"string","minLength":8,"maxLength":200}},"required":["kind","name","target"]}}}},"responses":{"201":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ItemsItem112"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"postV1DeliverabilityChannels"}},"/v1/deliverability/channels/{id}":{"delete":{"tags":["deliverability"],"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"ok":{"type":"boolean","enum":[true]}},"required":["ok"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"deleteV1DeliverabilityChannelsById"}},"/v1/deliverability/domain-standards":{"get":{"tags":["deliverability"],"parameters":[{"schema":{"type":"string","minLength":3},"in":"query","name":"domain","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"domain":{"type":"string"},"bimi":{"type":"object","properties":{"ok":{"type":"boolean"},"record":{"type":"string"},"detail":{"type":"string"}},"required":["ok"],"additionalProperties":false},"mtaSts":{"type":"object","properties":{"ok":{"type":"boolean"},"record":{"type":"string"},"detail":{"type":"string"},"mode":{"type":"string"}},"required":["ok"],"additionalProperties":false},"tlsRpt":{"type":"object","properties":{"ok":{"type":"boolean"},"record":{"type":"string"},"detail":{"type":"string"}},"required":["ok"],"additionalProperties":false}},"required":["domain","bimi","mtaSts","tlsRpt"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1DeliverabilityDomainStandards"}},"/v1/deliverability/placement-tests/{id}":{"get":{"tags":["deliverability"],"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"name":{"nullable":true,"type":"string"},"folder":{"nullable":true,"type":"string"},"senderAddress":{"type":"string"},"status":{"type":"string","enum":["running","done","stopped"]},"recurEveryDays":{"nullable":true,"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"nextRunAt":{"nullable":true,"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"parentId":{"nullable":true,"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"createdAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"completedAt":{"nullable":true,"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"inbox":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"spam":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"missing":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"pending":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"subject":{"nullable":true,"type":"string"},"body":{"nullable":true,"type":"string"},"results":{"type":"array","items":{"type":"object","properties":{"seedAddress":{"type":"string"},"provider":{"type":"string","enum":["google","microsoft","other"]},"folder":{"nullable":true,"type":"string","enum":["inbox","spam","missing"]}},"required":["seedAddress","provider","folder"],"additionalProperties":false}},"byProvider":{"$ref":"#/components/schemas/ByProvider"},"history":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"name":{"nullable":true,"type":"string"},"folder":{"nullable":true,"type":"string"},"senderAddress":{"type":"string"},"status":{"type":"string","enum":["running","done","stopped"]},"recurEveryDays":{"nullable":true,"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"nextRunAt":{"nullable":true,"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"parentId":{"nullable":true,"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"createdAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"completedAt":{"nullable":true,"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"inbox":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"spam":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"missing":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"pending":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["id","name","folder","senderAddress","status","recurEveryDays","nextRunAt","parentId","createdAt","completedAt","inbox","spam","missing","pending"],"additionalProperties":false}},"content":{"$ref":"#/components/schemas/Content"}},"required":["id","name","folder","senderAddress","status","recurEveryDays","nextRunAt","parentId","createdAt","completedAt","inbox","spam","missing","pending","subject","body","results","byProvider","history","content"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1DeliverabilityPlacementTestsById"},"patch":{"tags":["deliverability"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"nullable":true,"type":"string","minLength":1,"maxLength":120},"folder":{"nullable":true,"type":"string","minLength":1,"maxLength":60},"recurEveryDays":{"nullable":true,"type":"integer","minimum":1,"maximum":30}}}}}},"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"ok":{"type":"boolean","enum":[true]}},"required":["ok"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"patchV1DeliverabilityPlacementTestsById"},"delete":{"tags":["deliverability"],"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"ok":{"type":"boolean","enum":[true]}},"required":["ok"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"deleteV1DeliverabilityPlacementTestsById"}},"/v1/deliverability/placement-tests/{id}/advice":{"get":{"summary":"What to fix after a placement test: spam score by section plus DNS, blocklist and provider findings","tags":["deliverability"],"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"report":{"$ref":"#/components/schemas/Report"},"advice":{"type":"array","items":{"type":"object","properties":{"area":{"type":"string","enum":["dns","reputation","placement","content"]},"severity":{"type":"string","enum":["high","medium","low"]},"title":{"type":"string"},"detail":{"type":"string"}},"required":["area","severity","title","detail"],"additionalProperties":false}}},"required":["report","advice"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1DeliverabilityPlacementTestsByIdAdvice"}},"/v1/deliverability/spam-report":{"post":{"summary":"Spam test of a draft: score by section (subject, wording, links, formatting) with a fix per finding. Uses the operator's SpamAssassin (SPAMD_URL) when set, scoring the message as delivery would render and send it, else the in-house rules; `engine` says which","tags":["deliverability"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"subject":{"default":"","type":"string","maxLength":500},"text":{"default":"","type":"string","maxLength":200000},"html":{"type":"string","maxLength":500000},"purpose":{"default":"prospecting","type":"string","enum":["marketing","prospecting"]},"profileId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"connectionId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}}}}},"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Report"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"postV1DeliverabilitySpamReport"}},"/v1/deliverability/placement-tests/{id}/stop":{"post":{"tags":["deliverability"],"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"ok":{"type":"boolean","enum":[true]}},"required":["ok"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"postV1DeliverabilityPlacementTestsByIdStop"}},"/v1/deliverability/placement-report":{"get":{"tags":["deliverability"],"parameters":[{"schema":{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"},"in":"query","name":"from","required":false},{"schema":{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"},"in":"query","name":"to","required":false},{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"query","name":"testId","required":false},{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"query","name":"senderConnectionId","required":false}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"tests":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"byProvider":{"$ref":"#/components/schemas/ByProvider"},"byDay":{"type":"array","items":{"type":"object","properties":{"day":{"type":"string"},"inbox":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"spam":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"missing":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["day","inbox","spam","missing"],"additionalProperties":false}},"bySender":{"type":"array","items":{"type":"object","properties":{"senderAddress":{"type":"string"},"inbox":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"spam":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"missing":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"inboxRate":{"nullable":true,"type":"number"}},"required":["senderAddress","inbox","spam","missing","inboxRate"],"additionalProperties":false}},"insights":{"type":"array","items":{"type":"string"}}},"required":["tests","byProvider","byDay","bySender","insights"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1DeliverabilityPlacementReport"}},"/v1/deliverability/placement-providers":{"get":{"tags":["deliverability"],"parameters":[{"schema":{"type":"integer","minimum":1,"maximum":200},"in":"query","name":"limit","required":false,"description":"Page size; omitted returns the whole list"},{"schema":{"type":"string","pattern":"^\\d{1,9}$"},"in":"query","name":"cursor","required":false,"description":"Opaque: the `nextCursor` of the previous page"}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"items":{"type":"array","items":{"type":"object","properties":{"provider":{"type":"string","enum":["google","microsoft","other"]},"seeds":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["provider","seeds"],"additionalProperties":false}},"nextCursor":{"nullable":true,"type":"string"}},"required":["items","nextCursor"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1DeliverabilityPlacementProviders"}},"/v1/deliverability/placement-folders":{"get":{"tags":["deliverability"],"parameters":[{"schema":{"type":"integer","minimum":1,"maximum":200},"in":"query","name":"limit","required":false,"description":"Page size; omitted returns the whole list"},{"schema":{"type":"string","pattern":"^\\d{1,9}$"},"in":"query","name":"cursor","required":false,"description":"Opaque: the `nextCursor` of the previous page"}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"items":{"type":"array","items":{"type":"object","properties":{"folder":{"type":"string"},"tests":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["folder","tests"],"additionalProperties":false}},"nextCursor":{"nullable":true,"type":"string"}},"required":["items","nextCursor"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1DeliverabilityPlacementFolders"}},"/v1/deliverability/placement-folders/{folder}":{"delete":{"tags":["deliverability"],"parameters":[{"schema":{"type":"string","minLength":1,"maxLength":60},"in":"path","name":"folder","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"ok":{"type":"boolean","enum":[true]}},"required":["ok"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"deleteV1DeliverabilityPlacementFoldersByFolder"}},"/v1/deliverability/content-score":{"post":{"tags":["deliverability"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"subject":{"default":"","type":"string","maxLength":500},"text":{"default":"","type":"string","maxLength":200000},"html":{"type":"string","maxLength":500000}}}}}},"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Content"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"postV1DeliverabilityContentScore"}},"/v1/deliverability/rdns":{"get":{"tags":["deliverability"],"parameters":[{"schema":{"type":"string","minLength":3,"maxLength":253},"in":"query","name":"host","required":false},{"schema":{"type":"string","minLength":7,"maxLength":45},"in":"query","name":"ip","required":false}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"results":{"type":"array","items":{"$ref":"#/components/schemas/ResultsItem3"}},"ok":{"type":"boolean"}},"required":["results","ok"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1DeliverabilityRdns"}},"/v1/deliverability/agent":{"get":{"tags":["deliverability"],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetV1DeliverabilityAgentResponse"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1DeliverabilityAgent"},"put":{"tags":["deliverability"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"autoPause":{"type":"boolean"},"bounceRate":{"type":"number","minimum":0.001,"maximum":0.5},"complaintRate":{"type":"number","minimum":0.0001,"maximum":0.1},"minSample":{"type":"integer","minimum":1,"maximum":10000}},"required":["autoPause","bounceRate","complaintRate","minSample"]}}}},"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetV1DeliverabilityAgentResponse"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"putV1DeliverabilityAgent"}},"/v1/deliverability/agent/run-now":{"post":{"tags":["deliverability"],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"evaluated":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"paused":{"type":"array","items":{"type":"object","properties":{"connectionId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"reason":{"type":"string"}},"required":["connectionId","reason"],"additionalProperties":false}}},"required":["evaluated","paused"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"postV1DeliverabilityAgentRunNow"}},"/v1/deliverability/agent/history":{"get":{"tags":["deliverability"],"parameters":[{"schema":{"type":"integer","minimum":1,"maximum":200},"in":"query","name":"limit","required":false,"description":"Page size; omitted returns the whole list"},{"schema":{"type":"string","pattern":"^\\d{1,9}$"},"in":"query","name":"cursor","required":false,"description":"Opaque: the `nextCursor` of the previous page"}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetV1DeliverabilityAlertsResponse"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1DeliverabilityAgentHistory"}},"/v1/deliverability/warmup":{"get":{"tags":["deliverability"],"parameters":[{"schema":{"type":"integer","minimum":1,"maximum":200},"in":"query","name":"limit","required":false,"description":"Page size; omitted returns the whole list"},{"schema":{"type":"string","pattern":"^\\d{1,9}$"},"in":"query","name":"cursor","required":false,"description":"Opaque: the `nextCursor` of the previous page"}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"items":{"type":"array","items":{"type":"object","properties":{"connectionId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"address":{"type":"string"},"status":{"type":"string","enum":["off","active","paused"]},"pausedReason":{"nullable":true,"type":"string"},"fix":{"nullable":true,"type":"string"},"startedOn":{"type":"string"},"quotaToday":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"lastError":{"nullable":true,"type":"string"},"lastErrorAt":{"nullable":true,"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"}},"required":["connectionId","address","status","pausedReason","fix","startedOn","quotaToday","lastError","lastErrorAt"],"additionalProperties":false}},"nextCursor":{"nullable":true,"type":"string"}},"required":["items","nextCursor"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1DeliverabilityWarmup"}},"/v1/deliverability/alerts/{id}":{"get":{"tags":["deliverability"],"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ItemsItem109"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1DeliverabilityAlertsById"}},"/v1/deliverability/recommendations":{"get":{"tags":["deliverability"],"parameters":[{"schema":{"type":"string","enum":["open","actioned","completed","dismissed"]},"in":"query","name":"status","required":false},{"schema":{"type":"integer","minimum":1,"maximum":200},"in":"query","name":"limit","required":false,"description":"Page size; omitted returns the whole list"},{"schema":{"type":"string","pattern":"^\\d{1,9}$"},"in":"query","name":"cursor","required":false,"description":"Opaque: the `nextCursor` of the previous page"}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"items":{"type":"array","items":{"$ref":"#/components/schemas/ItemsItem113"}},"nextCursor":{"nullable":true,"type":"string"}},"required":["items","nextCursor"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1DeliverabilityRecommendations"}},"/v1/deliverability/recommendations/{id}/pause-mailboxes":{"post":{"summary":"Pause the mailboxes on the affected domain until you resume them. Repeating it changes nothing","tags":["deliverability"],"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ItemsItem113"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"postV1DeliverabilityRecommendationsByIdPauseMailboxes"}},"/v1/deliverability/recommendations/{id}/pause-14-days":{"post":{"summary":"Pause sending from the affected mailboxes for 14 days; they resume on their own. Repeating it keeps the first resume date","tags":["deliverability"],"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ItemsItem113"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"postV1DeliverabilityRecommendationsByIdPause14Days"}},"/v1/deliverability/recommendations/{id}/complete":{"post":{"tags":["deliverability"],"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ItemsItem113"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"postV1DeliverabilityRecommendationsByIdComplete"}},"/v1/deliverability/recommendations/{id}/dismiss":{"post":{"tags":["deliverability"],"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ItemsItem113"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"postV1DeliverabilityRecommendationsByIdDismiss"}},"/v1/leads/providers":{"get":{"tags":["leads"],"parameters":[{"schema":{"type":"integer","minimum":1,"maximum":200},"in":"query","name":"limit","required":false,"description":"Page size; omitted returns the whole list"},{"schema":{"type":"string","pattern":"^\\d{1,9}$"},"in":"query","name":"cursor","required":false,"description":"Opaque: the `nextCursor` of the previous page"}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"items":{"type":"array","items":{"$ref":"#/components/schemas/ItemsItem114"}},"nextCursor":{"nullable":true,"type":"string"}},"required":["items","nextCursor"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1LeadsProviders"},"post":{"tags":["leads"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"kind":{"type":"string","enum":["apollo","hunter","pdl","dropcontact","findymail","zerobounce","neverbounce","kickbox","millionverifier","smtp","twilio_lookup","telnyx_lookup"]},"name":{"type":"string","minLength":1,"maxLength":100},"apiKey":{"type":"string","minLength":1,"maxLength":500},"priority":{"default":100,"type":"integer","minimum":0,"maximum":1000},"creditLimit":{"nullable":true,"type":"integer","minimum":0,"maximum":9007199254740991}},"required":["kind","name"]}}}},"responses":{"201":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ItemsItem114"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"postV1LeadsProviders"}},"/v1/leads/providers/{id}":{"patch":{"tags":["leads"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"enabled":{"type":"boolean"},"priority":{"type":"integer","minimum":0,"maximum":1000},"creditLimit":{"nullable":true,"type":"integer","minimum":0,"maximum":9007199254740991}}}}}},"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ItemsItem114"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"patchV1LeadsProvidersById"},"delete":{"tags":["leads"],"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"ok":{"type":"boolean","enum":[true]}},"required":["ok"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"deleteV1LeadsProvidersById"}},"/v1/leads/credits":{"get":{"tags":["leads"],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"providers":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"name":{"type":"string"},"kind":{"type":"string","enum":["apollo","hunter","pdl","dropcontact","findymail","zerobounce","neverbounce","kickbox","millionverifier","smtp","twilio_lookup","telnyx_lookup"]},"used":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"limit":{"nullable":true,"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["id","name","kind","used","limit"],"additionalProperties":false}},"totalUsed":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["providers","totalUsed"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1LeadsCredits"}},"/v1/leads/recent-searches":{"get":{"summary":"Searches run recently, newest first","tags":["leads"],"parameters":[{"schema":{"default":50,"type":"integer","minimum":1,"maximum":200},"in":"query","name":"limit","required":false}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"items":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"providerId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"criteria":{"$ref":"#/components/schemas/Criteria"},"resultCount":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"runs":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"updatedAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"}},"required":["id","providerId","criteria","resultCount","runs","updatedAt"],"additionalProperties":false}}},"required":["items"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1LeadsRecentSearches"},"delete":{"tags":["leads"],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"ok":{"type":"boolean","enum":[true]}},"required":["ok"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"deleteV1LeadsRecentSearches"}},"/v1/leads/recent-searches/{id}":{"delete":{"tags":["leads"],"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"ok":{"type":"boolean","enum":[true]}},"required":["ok"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"deleteV1LeadsRecentSearchesById"}},"/v1/leads/search":{"post":{"tags":["leads"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"providerId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"criteria":{"$ref":"#/components/schemas/Criteria2"},"limit":{"default":25,"type":"integer","minimum":1,"maximum":100}},"required":["providerId","criteria"]}}}},"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PostV1LeadsSearchResponse"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"postV1LeadsSearch"}},"/v1/leads":{"get":{"tags":["leads"],"parameters":[{"schema":{"default":50,"type":"integer","minimum":1,"maximum":200},"in":"query","name":"limit","required":false},{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"query","name":"cursor","required":false},{"schema":{"type":"string","enum":["preview","revealed","pushed"]},"in":"query","name":"status","required":false}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"items":{"$ref":"#/components/schemas/Items38"},"nextCursor":{"nullable":true,"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},"required":["items","nextCursor"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1Leads"}},"/v1/leads/saved-searches":{"get":{"tags":["leads"],"parameters":[{"schema":{"type":"integer","minimum":1,"maximum":200},"in":"query","name":"limit","required":false,"description":"Page size; omitted returns the whole list"},{"schema":{"type":"string","pattern":"^\\d{1,9}$"},"in":"query","name":"cursor","required":false,"description":"Opaque: the `nextCursor` of the previous page"}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"items":{"type":"array","items":{"$ref":"#/components/schemas/ItemsItem116"}},"nextCursor":{"nullable":true,"type":"string"}},"required":["items","nextCursor"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1LeadsSavedSearches"},"post":{"tags":["leads"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":200},"providerId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"criteria":{"$ref":"#/components/schemas/Criteria2"}},"required":["name","providerId","criteria"]}}}},"responses":{"201":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ItemsItem116"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"postV1LeadsSavedSearches"}},"/v1/leads/saved-searches/{id}":{"delete":{"tags":["leads"],"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"ok":{"type":"boolean","enum":[true]}},"required":["ok"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"deleteV1LeadsSavedSearchesById"},"get":{"tags":["leads"],"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ItemsItem116"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1LeadsSavedSearchesById"},"patch":{"tags":["leads"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":200},"criteria":{"$ref":"#/components/schemas/Criteria2"},"runEvery":{"nullable":true,"type":"string","enum":["daily","weekly"]},"autoEnrich":{"type":"boolean"},"maxResults":{"type":"integer","minimum":1,"maximum":100}}}}}},"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ItemsItem116"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"patchV1LeadsSavedSearchesById"}},"/v1/leads/reveal":{"post":{"summary":"Reveal email (and phone) for previewed leads; spends provider credits once per lead","tags":["leads"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"leadIds":{"$ref":"#/components/schemas/ProfileIds"}},"required":["leadIds"]}}}},"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"items":{"$ref":"#/components/schemas/Items38"},"creditsSpent":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"errors":{"type":"array","items":{"type":"object","properties":{"leadId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"error":{"type":"string"}},"required":["leadId","error"],"additionalProperties":false}}},"required":["items","creditsSpent","errors"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"postV1LeadsReveal"}},"/v1/leads/push":{"post":{"summary":"Verify, dedupe, apply DNC/jurisdiction gates, import as prospects and optionally enroll","tags":["leads"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"leadIds":{"$ref":"#/components/schemas/ProfileIds"},"sequenceId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"policy":{"$ref":"#/components/schemas/Policy"}},"required":["leadIds"]}}}},"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PostV1LeadsPushResponse"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"postV1LeadsPush"}},"/v1/leads/import":{"post":{"summary":"CSV lead import with verification policy (rows already parsed)","tags":["leads"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"rows":{"minItems":1,"maxItems":5000,"type":"array","items":{"type":"object","properties":{"email":{"type":"string","format":"email","pattern":"^(?:[A-Za-z0-9_'+\\-]+\\.)*[A-Za-z0-9_'+\\-]*[A-Za-z0-9_+-]@(?:[A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$"},"firstName":{"type":"string","maxLength":128},"lastName":{"type":"string","maxLength":128},"title":{"type":"string","maxLength":200},"company":{"type":"string","maxLength":200},"website":{"type":"string","maxLength":300},"linkedinUrl":{"type":"string","maxLength":300},"country":{"type":"string","minLength":2,"maxLength":2},"timezone":{"type":"string","maxLength":64},"customFields":{"default":{},"type":"object","additionalProperties":{}}},"required":["email"]}},"sequenceId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"policy":{"$ref":"#/components/schemas/Policy"}},"required":["rows"]}}}},"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PostV1LeadsPushResponse"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"postV1LeadsImport"}},"/v1/leads/{id}":{"get":{"tags":["leads"],"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ItemsItem115"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1LeadsById"}},"/v1/leads/lists/{id}/verification-stats":{"get":{"summary":"Stored email verification results for the people on a list","tags":["leads"],"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"listId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"members":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"withEmail":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"unverified":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"byStatus":{"type":"object","additionalProperties":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"estimatedBounceRate":{"type":"number"},"truncated":{"type":"boolean"}},"required":["listId","members","withEmail","unverified","byStatus","estimatedBounceRate","truncated"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1LeadsListsByIdVerificationStats"}},"/v1/leads/settings":{"get":{"summary":"Auto-enrichment on search (uses your own provider credits)","tags":["leads"],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetV1LeadsSettingsResponse"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1LeadsSettings"},"put":{"tags":["leads"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"autoEnrichOnSearch":{"type":"boolean"},"maxAutoEnrichPerSearch":{"type":"integer","minimum":1,"maximum":200}}}}}},"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetV1LeadsSettingsResponse"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"putV1LeadsSettings"}},"/v1/leads/verify":{"post":{"tags":["leads"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"email":{"type":"string","maxLength":320},"force":{"default":false,"type":"boolean"}},"required":["email"]}}}},"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PostV1LeadsVerifyResponse"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"postV1LeadsVerify"}},"/v1/leads/verify/{email}":{"get":{"summary":"Stored verification result for an address (404 until it has been verified)","tags":["leads"],"parameters":[{"schema":{"type":"string","minLength":3,"maxLength":320},"in":"path","name":"email","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PostV1LeadsVerifyResponse"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1LeadsVerifyByEmail"}},"/v1/leads/disposable-domains":{"post":{"tags":["leads"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"domains":{"minItems":1,"maxItems":100000,"type":"array","items":{"type":"string","maxLength":253}}},"required":["domains"]}}}},"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"added":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["added"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"postV1LeadsDisposableDomains"}},"/v1/leads/companies":{"get":{"tags":["leads"],"parameters":[{"schema":{"default":50,"type":"integer","minimum":1,"maximum":200},"in":"query","name":"limit","required":false},{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"query","name":"cursor","required":false},{"schema":{"type":"string","maxLength":100},"in":"query","name":"q","required":false},{"schema":{"type":"boolean"},"in":"query","name":"suppressed","required":false}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetV1LeadsCompaniesResponse"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1LeadsCompanies"},"post":{"summary":"Create a company by domain. 201 when created; 200 with the existing company (unchanged: PATCH it) when the domain is already known","tags":["leads"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PostV1LeadsCompaniesBody"}}}},"responses":{"201":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ItemsItem117"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"postV1LeadsCompanies"}},"/v1/leads/companies/import":{"post":{"summary":"Create or update up to 1000 companies by domain; a company that already exists is kept as it is, a bad domain is reported by row","tags":["leads"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"rows":{"minItems":1,"maxItems":1000,"type":"array","items":{"$ref":"#/components/schemas/PostV1LeadsCompaniesBody"}}},"required":["rows"]}}}},"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"imported":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"skipped":{"$ref":"#/components/schemas/Skipped2"}},"required":["imported","skipped"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"postV1LeadsCompaniesImport"}},"/v1/leads/companies/{id}":{"get":{"tags":["leads"],"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetV1LeadsCompaniesByIdResponse"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1LeadsCompaniesById"},"patch":{"tags":["leads"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":200},"industry":{"type":"string","maxLength":100},"sizeBand":{"type":"string","maxLength":30},"country":{"type":"string","minLength":2,"maxLength":2},"customFields":{"type":"object","additionalProperties":{}}}}}}},"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetV1LeadsCompaniesByIdResponse"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"patchV1LeadsCompaniesById"},"delete":{"tags":["leads"],"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"ok":{"type":"boolean","enum":[true]}},"required":["ok"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"deleteV1LeadsCompaniesById"}},"/v1/leads/companies/{id}/suppress":{"post":{"summary":"Do not contact anyone at this domain (consent domain blocklist)","tags":["leads"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"reason":{"type":"string","maxLength":200}}}}}},"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetV1LeadsCompaniesByIdResponse"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"postV1LeadsCompaniesByIdSuppress"}},"/v1/leads/companies/{id}/unsuppress":{"post":{"tags":["leads"],"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetV1LeadsCompaniesByIdResponse"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"postV1LeadsCompaniesByIdUnsuppress"}},"/v1/leads/companies/{id}/link":{"post":{"summary":"Link a contact (or change its link: primary flag, job title, role). A contact can be linked to several companies; one is primary","tags":["leads"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PostV1LeadsCompaniesByIdLinkBody"}}}},"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetV1LeadsCompaniesByIdResponse"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"postV1LeadsCompaniesByIdLink"}},"/v1/leads/companies/{id}/link/{profileId}":{"delete":{"tags":["leads"],"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true},{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"profileId","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetV1LeadsCompaniesByIdResponse"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"deleteV1LeadsCompaniesByIdLinkByProfileId"}},"/v1/profiles/{id}/companies":{"get":{"summary":"Every company this contact is linked to, primary first, with the link fields","tags":["leads"],"parameters":[{"schema":{"type":"integer","minimum":1,"maximum":200},"in":"query","name":"limit","required":false,"description":"Page size; omitted returns the whole list"},{"schema":{"type":"string","pattern":"^\\d{1,9}$"},"in":"query","name":"cursor","required":false,"description":"Opaque: the `nextCursor` of the previous page"},{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"items":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"domain":{"type":"string"},"name":{"type":"string"},"industry":{"nullable":true,"type":"string"},"sizeBand":{"nullable":true,"type":"string"},"country":{"nullable":true,"type":"string"},"suppressed":{"type":"boolean"},"suppressionReason":{"nullable":true,"type":"string"},"leadCount":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"contactCount":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"createdAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"stage":{"type":"string"},"ownerUserId":{"nullable":true,"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"customFields":{"type":"object","additionalProperties":{}},"score":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"link":{"type":"object","properties":{"isPrimary":{"type":"boolean"},"jobTitle":{"nullable":true,"type":"string"},"role":{"nullable":true,"type":"string"}},"required":["isPrimary","jobTitle","role"],"additionalProperties":false}},"required":["id","domain","name","industry","sizeBand","country","suppressed","suppressionReason","leadCount","contactCount","createdAt"],"additionalProperties":false}},"nextCursor":{"nullable":true,"type":"string"}},"required":["items","nextCursor"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1ProfilesByIdCompanies"}},"/v1/leads/phone-lookup":{"post":{"tags":["leads"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"phone":{"type":"string","maxLength":40},"country":{"type":"string","minLength":2,"maxLength":2},"force":{"default":false,"type":"boolean"}},"required":["phone"]}}}},"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"phone":{"type":"string"},"lineType":{"type":"string","enum":["mobile","landline","voip","toll_free","other","unknown"]},"carrier":{"nullable":true,"type":"string"},"landline":{"type":"boolean"},"provider":{"type":"string"},"checkedAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"}},"required":["phone","lineType","carrier","landline","provider","checkedAt"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"postV1LeadsPhoneLookup"}},"/v1/leads/clean":{"post":{"tags":["leads"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"emails":{"minItems":1,"maxItems":10000,"type":"array","items":{"type":"string","maxLength":320}},"maxBounceRate":{"default":0.05,"type":"number","minimum":0,"maximum":1}},"required":["emails"]}}}},"responses":{"201":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PostV1LeadsCleanResponse"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"postV1LeadsClean"}},"/v1/leads/enrich":{"post":{"tags":["leads"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"leadIds":{"$ref":"#/components/schemas/LeadIds"},"waterfallId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},"required":["leadIds"]}}}},"responses":{"201":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PostV1LeadsCleanResponse"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"postV1LeadsEnrich"}},"/v1/leads/jobs":{"get":{"tags":["leads"],"parameters":[{"schema":{"default":50,"type":"integer","minimum":1,"maximum":200},"in":"query","name":"limit","required":false},{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"query","name":"cursor","required":false}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"items":{"type":"array","items":{"$ref":"#/components/schemas/PostV1LeadsCleanResponse"}},"nextCursor":{"nullable":true,"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},"required":["items","nextCursor"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1LeadsJobs"}},"/v1/leads/jobs/{id}":{"get":{"tags":["leads"],"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"kind":{"type":"string","enum":["clean","enrich"]},"status":{"type":"string","enum":["queued","running","done","failed"]},"total":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"processed":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"summary":{"type":"object","additionalProperties":{}},"error":{"nullable":true,"type":"string"},"createdAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"rows":{"type":"array","items":{"type":"object","properties":{"email":{"type":"string"},"status":{"type":"string","enum":["valid","invalid","risky","catch_all","unknown","disposable"]},"risk":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"flags":{"type":"array","items":{"type":"string"}}},"required":["email","status","risk","flags"],"additionalProperties":false}}},"required":["id","kind","status","total","processed","summary","error","createdAt","rows"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1LeadsJobsById"}},"/v1/leads/filters":{"get":{"summary":"The criteria a lead search accepts (every one takes a list of values)","tags":["leads"],"parameters":[{"schema":{"type":"integer","minimum":1,"maximum":200},"in":"query","name":"limit","required":false,"description":"Page size; omitted returns the whole list"},{"schema":{"type":"string","pattern":"^\\d{1,9}$"},"in":"query","name":"cursor","required":false,"description":"Opaque: the `nextCursor` of the previous page"}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"items":{"type":"array","items":{"type":"object","properties":{"key":{"type":"string"},"label":{"type":"string"},"type":{"type":"string","enum":["list"]},"hint":{"type":"string"}},"required":["key","label","type","hint"],"additionalProperties":false}},"nextCursor":{"nullable":true,"type":"string"}},"required":["items","nextCursor"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1LeadsFilters"}},"/v1/leads/waterfalls":{"get":{"tags":["leads"],"parameters":[{"schema":{"type":"integer","minimum":1,"maximum":200},"in":"query","name":"limit","required":false,"description":"Page size; omitted returns the whole list"},{"schema":{"type":"string","pattern":"^\\d{1,9}$"},"in":"query","name":"cursor","required":false,"description":"Opaque: the `nextCursor` of the previous page"}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"items":{"type":"array","items":{"$ref":"#/components/schemas/ItemsItem118"}},"nextCursor":{"nullable":true,"type":"string"}},"required":["items","nextCursor"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1LeadsWaterfalls"},"post":{"tags":["leads"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":120},"providerIds":{"$ref":"#/components/schemas/ProviderIds"},"fields":{"default":["email","phone","title","linkedinUrl"],"minItems":1,"type":"array","items":{"type":"string","enum":["email","phone","title","linkedinUrl"]}}},"required":["name","providerIds"]}}}},"responses":{"201":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ItemsItem118"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"postV1LeadsWaterfalls"}},"/v1/leads/waterfalls/{id}":{"get":{"tags":["leads"],"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ItemsItem118"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1LeadsWaterfallsById"},"patch":{"tags":["leads"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":120},"providerIds":{"$ref":"#/components/schemas/ProviderIds"},"fields":{"minItems":1,"type":"array","items":{"type":"string","enum":["email","phone","title","linkedinUrl"]}}}}}}},"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ItemsItem118"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"patchV1LeadsWaterfallsById"},"delete":{"tags":["leads"],"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"ok":{"type":"boolean","enum":[true]}},"required":["ok"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"deleteV1LeadsWaterfallsById"}},"/v1/sms/estimate":{"post":{"summary":"Segments, encoding warnings and cost for an SMS/MMS send","tags":["sms"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"body":{"type":"string","maxLength":5000},"mediaCount":{"default":0,"type":"integer","minimum":0,"maximum":10},"recipients":{"type":"object","additionalProperties":{"type":"integer","minimum":0,"maximum":9007199254740991},"description":"Recipient count per country (ISO 3166-1 alpha-2), e.g. { \"US\": 1200, \"GB\": 300 }"},"shortenLinks":{"default":true,"type":"boolean"}},"required":["body","recipients"]}}}},"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"encoding":{"type":"string","enum":["GSM-7","UCS-2"]},"segments":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"unicodeChars":{"type":"array","items":{"type":"string"}},"gsmSegments":{"nullable":true,"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"mms":{"type":"boolean"},"warnings":{"type":"array","items":{"type":"string"}},"recipients":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"billableSegments":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"estimatedCostUsd":{"type":"number"},"perCountry":{"type":"array","items":{"type":"object","properties":{"country":{"type":"string"},"recipients":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"costUsd":{"type":"number"}},"required":["country","recipients","costUsd"],"additionalProperties":false}}},"required":["encoding","segments","unicodeChars","gsmSegments","mms","warnings","recipients","billableSegments","estimatedCostUsd","perCountry"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"postV1SmsEstimate"}},"/v1/sms/quiet-hours":{"post":{"summary":"Recipient-local quiet-hours preview per country","tags":["sms"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"countries":{"minItems":1,"maxItems":50,"type":"array","items":{"type":"string","minLength":2,"maxLength":2}}},"required":["countries"]}}}},"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"items":{"type":"array","items":{"type":"object","properties":{"country":{"type":"string"},"zone":{"type":"string"},"allowed":{"type":"boolean"},"nextSendAt":{"nullable":true,"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"}},"required":["country","zone","allowed","nextSendAt"],"additionalProperties":false}}},"required":["items"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"postV1SmsQuietHours"}},"/v1/sms/media/validate":{"post":{"tags":["sms"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"items":{"maxItems":20,"type":"array","items":{"type":"object","properties":{"url":{"type":"string","maxLength":2000},"contentType":{"type":"string","maxLength":100},"sizeBytes":{"type":"integer","minimum":0,"maximum":9007199254740991}},"required":["url","contentType","sizeBytes"]}}},"required":["items"]}}}},"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"ok":{"type":"boolean"},"errors":{"type":"array","items":{"type":"string"}},"warnings":{"type":"array","items":{"type":"string"}},"totalBytes":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["ok","errors","warnings","totalBytes"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"postV1SmsMediaValidate"}},"/v1/sms/carrier-errors":{"get":{"tags":["sms"],"parameters":[{"schema":{"type":"integer","minimum":1,"maximum":200},"in":"query","name":"limit","required":false,"description":"Page size; omitted returns the whole list"},{"schema":{"type":"string","pattern":"^\\d{1,9}$"},"in":"query","name":"cursor","required":false,"description":"Opaque: the `nextCursor` of the previous page"}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"items":{"type":"array","items":{"$ref":"#/components/schemas/ItemsItem119"}},"nextCursor":{"nullable":true,"type":"string"}},"required":["items","nextCursor"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1SmsCarrierErrors"}},"/v1/sms/carrier-errors/{code}":{"get":{"tags":["sms"],"parameters":[{"schema":{"type":"string","minLength":1,"maxLength":10},"in":"path","name":"code","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ItemsItem119"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1SmsCarrierErrorsByCode"}},"/v1/sms/registrations":{"get":{"tags":["sms"],"parameters":[{"schema":{"default":50,"type":"integer","minimum":1,"maximum":200},"in":"query","name":"limit","required":false},{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"query","name":"cursor","required":false}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"items":{"type":"array","items":{"$ref":"#/components/schemas/ItemsItem120"}},"nextCursor":{"nullable":true,"type":"string"}},"required":["items","nextCursor"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1SmsRegistrations"},"post":{"tags":["sms"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"kind":{"type":"string","enum":["tendlc_brand","tendlc_campaign","toll_free","short_code"]},"connectionId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"parentId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"payload":{"type":"object","additionalProperties":{}}},"required":["kind","connectionId","payload"]}}}},"responses":{"201":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ItemsItem120"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"postV1SmsRegistrations"}},"/v1/sms/registrations/{id}":{"get":{"tags":["sms"],"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ItemsItem120"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1SmsRegistrationsById"},"patch":{"tags":["sms"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"payload":{"type":"object","additionalProperties":{}}},"required":["payload"]}}}},"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ItemsItem120"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"patchV1SmsRegistrationsById"}},"/v1/sms/registrations/{id}/submit":{"post":{"tags":["sms"],"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ItemsItem120"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"postV1SmsRegistrationsByIdSubmit"}},"/v1/sms/registrations/{id}/poll":{"post":{"tags":["sms"],"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ItemsItem120"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"postV1SmsRegistrationsByIdPoll"}},"/v1/sms/registrations/{id}/reopen":{"post":{"tags":["sms"],"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ItemsItem120"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"postV1SmsRegistrationsByIdReopen"}},"/v1/sms/registrations/{id}/status":{"post":{"tags":["sms"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"string","enum":["in_review","approved","rejected"]},"note":{"type":"string","maxLength":1000}},"required":["status"]}}}},"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ItemsItem120"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"postV1SmsRegistrationsByIdStatus"}},"/v1/sms/senders":{"get":{"tags":["sms"],"parameters":[{"schema":{"default":50,"type":"integer","minimum":1,"maximum":200},"in":"query","name":"limit","required":false},{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"query","name":"cursor","required":false}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"items":{"type":"array","items":{"$ref":"#/components/schemas/ItemsItem121"}},"nextCursor":{"nullable":true,"type":"string"}},"required":["items","nextCursor"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1SmsSenders"},"post":{"tags":["sms"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"connectionId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"value":{"type":"string","minLength":3,"maxLength":20},"type":{"type":"string","enum":["long_code","toll_free","short_code","alphanumeric"]},"registrationId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"throughputPerSec":{"type":"integer","minimum":1,"maximum":1000},"dailyCap":{"nullable":true,"type":"integer","minimum":1,"maximum":9007199254740991}},"required":["connectionId","value","type"]}}}},"responses":{"201":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ItemsItem121"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"postV1SmsSenders"}},"/v1/sms/senders/{id}":{"get":{"tags":["sms"],"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ItemsItem121"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1SmsSendersById"},"delete":{"tags":["sms"],"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"ok":{"type":"boolean","enum":[true]}},"required":["ok"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"deleteV1SmsSendersById"}},"/v1/sms/configuration":{"get":{"tags":["sms"],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetV1SmsConfigurationResponse"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1SmsConfiguration"},"put":{"tags":["sms"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"defaultSenderId":{"nullable":true,"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"sendingStartMin":{"type":"integer","minimum":0,"maximum":1439},"sendingEndMin":{"type":"integer","minimum":0,"maximum":1439},"timezone":{"nullable":true,"type":"string","maxLength":64},"company":{"type":"object","properties":{"name":{"type":"string","maxLength":200},"website":{"type":"string","maxLength":500,"format":"uri"},"address":{"type":"string","maxLength":500},"contactEmail":{"type":"string","maxLength":320,"format":"email","pattern":"^(?:[A-Za-z0-9_'+\\-]+\\.)*[A-Za-z0-9_'+\\-]*[A-Za-z0-9_+-]@(?:[A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$"},"phone":{"type":"string","maxLength":30}}},"templates":{"type":"object","properties":{"help":{"type":"string","maxLength":320},"stop":{"type":"string","maxLength":320},"start":{"type":"string","maxLength":320},"optIn":{"type":"string","maxLength":320}}},"countryRules":{"maxItems":250,"type":"array","items":{"type":"object","properties":{"country":{"type":"string","minLength":2,"maxLength":2},"enabled":{"default":true,"type":"boolean"},"quietStartMin":{"type":"integer","minimum":0,"maximum":1439},"quietEndMin":{"type":"integer","minimum":0,"maximum":1439},"senderId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},"required":["country"]}}}}}}},"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetV1SmsConfigurationResponse"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"putV1SmsConfiguration"}},"/v1/sms/links":{"get":{"tags":["sms"],"parameters":[{"schema":{"default":50,"type":"integer","minimum":1,"maximum":200},"in":"query","name":"limit","required":false},{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"query","name":"cursor","required":false}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"items":{"type":"array","items":{"$ref":"#/components/schemas/ItemsItem122"}},"nextCursor":{"nullable":true,"type":"string"}},"required":["items","nextCursor"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1SmsLinks"},"post":{"tags":["sms"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"url":{"type":"string","maxLength":2000,"format":"uri"},"profileId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"ttlDays":{"type":"integer","minimum":1,"maximum":365}},"required":["url"]}}}},"responses":{"201":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ItemsItem122"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"postV1SmsLinks"}},"/s/{code}":{"get":{"summary":"Short-link redirect (records a click)","tags":["sms"],"parameters":[{"schema":{"type":"string","minLength":4,"maxLength":16},"in":"path","name":"code","required":true}],"security":[],"responses":{"302":{"description":"Default Response","content":{"application/json":{"schema":{"type":"string"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getSByCode"}},"/v1/sms/keywords":{"get":{"tags":["sms"],"parameters":[{"schema":{"type":"integer","minimum":1,"maximum":200},"in":"query","name":"limit","required":false,"description":"Page size; omitted returns the whole list"},{"schema":{"type":"string","pattern":"^\\d{1,9}$"},"in":"query","name":"cursor","required":false,"description":"Opaque: the `nextCursor` of the previous page"}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"items":{"type":"array","items":{"$ref":"#/components/schemas/ItemsItem123"}},"nextCursor":{"nullable":true,"type":"string"}},"required":["items","nextCursor"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1SmsKeywords"},"post":{"tags":["sms"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PostV1SmsKeywordsBody"}}}},"responses":{"201":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ItemsItem123"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"postV1SmsKeywords"}},"/v1/sms/keywords/{id}":{"put":{"tags":["sms"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PostV1SmsKeywordsBody"}}}},"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ItemsItem123"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"putV1SmsKeywordsById"},"delete":{"tags":["sms"],"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"ok":{"type":"boolean","enum":[true]}},"required":["ok"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"deleteV1SmsKeywordsById"}},"/v1/sms/conversations":{"get":{"tags":["sms"],"parameters":[{"schema":{"type":"integer","minimum":1,"maximum":200},"in":"query","name":"limit","required":false,"description":"Page size; omitted returns the whole list"},{"schema":{"type":"string","pattern":"^\\d{1,9}$"},"in":"query","name":"cursor","required":false,"description":"Opaque: the `nextCursor` of the previous page"}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"items":{"type":"array","items":{"type":"object","properties":{"profileId":{"nullable":true,"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"address":{"type":"string"},"connectionId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"lastText":{"nullable":true,"type":"string"},"lastAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"unread":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"assignedUserId":{"nullable":true,"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"inboundId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},"required":["profileId","address","connectionId","lastText","lastAt","unread","assignedUserId","inboundId"],"additionalProperties":false}},"nextCursor":{"nullable":true,"type":"string"}},"required":["items","nextCursor"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1SmsConversations"}},"/v1/sms/conversations/{profileId}":{"get":{"tags":["sms"],"parameters":[{"schema":{"type":"integer","minimum":1,"maximum":200},"in":"query","name":"limit","required":false,"description":"Page size; omitted returns the whole list"},{"schema":{"type":"string","pattern":"^\\d{1,9}$"},"in":"query","name":"cursor","required":false,"description":"Opaque: the `nextCursor` of the previous page"},{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"profileId","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"items":{"type":"array","items":{"type":"object","properties":{"kind":{"type":"string","enum":["received","sent"]},"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"at":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"text":{"nullable":true,"type":"string"},"status":{"nullable":true,"type":"string"}},"required":["kind","id","at","text","status"],"additionalProperties":false}},"nextCursor":{"nullable":true,"type":"string"}},"required":["items","nextCursor"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1SmsConversationsByProfileId"}},"/v1/sms/conversations/{profileId}/read":{"post":{"tags":["sms"],"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"profileId","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"ok":{"type":"boolean","enum":[true]}},"required":["ok"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"postV1SmsConversationsByProfileIdRead"}},"/v1/sms/conversations/{profileId}/reply":{"post":{"tags":["sms"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"connectionId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"body":{"type":"string","minLength":1,"maxLength":1600},"idempotencyKey":{"type":"string","minLength":8,"maxLength":100}},"required":["connectionId","body","idempotencyKey"]}}}},"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"profileId","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PostV1MessagesSendResponse"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"postV1SmsConversationsByProfileIdReply"}},"/v1/sms/canned-replies":{"get":{"tags":["sms"],"parameters":[{"schema":{"type":"integer","minimum":1,"maximum":200},"in":"query","name":"limit","required":false,"description":"Page size; omitted returns the whole list"},{"schema":{"type":"string","pattern":"^\\d{1,9}$"},"in":"query","name":"cursor","required":false,"description":"Opaque: the `nextCursor` of the previous page"}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"items":{"type":"array","items":{"$ref":"#/components/schemas/ItemsItem124"}},"nextCursor":{"nullable":true,"type":"string"}},"required":["items","nextCursor"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1SmsCannedReplies"},"post":{"tags":["sms"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"title":{"type":"string","minLength":1,"maxLength":100},"body":{"type":"string","minLength":1,"maxLength":1600}},"required":["title","body"]}}}},"responses":{"201":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ItemsItem124"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"postV1SmsCannedReplies"}},"/v1/sms/canned-replies/{id}":{"delete":{"tags":["sms"],"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"ok":{"type":"boolean","enum":[true]}},"required":["ok"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"deleteV1SmsCannedRepliesById"}},"/v1/conversations":{"get":{"summary":"Replies to marketing campaigns","tags":["outbound"],"parameters":[{"schema":{"default":50,"type":"integer","minimum":1,"maximum":200},"in":"query","name":"limit","required":false},{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"query","name":"cursor","required":false},{"schema":{"type":"string","enum":["positive","negative","neutral","ooo","auto_reply","bounce","unsubscribe","meeting","wrong_person"]},"in":"query","name":"category","required":false},{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"query","name":"connectionId","required":false},{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"query","name":"assigneeUserId","required":false},{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"query","name":"sequenceId","required":false},{"schema":{"type":"boolean"},"in":"query","name":"unread","required":false},{"schema":{"type":"string","maxLength":40},"in":"query","name":"label","required":false},{"schema":{"type":"string","enum":["new","contacted","replied","interested","meeting_booked","won","lost","not_interested","bounced","unsubscribed","do_not_contact"]},"in":"query","name":"leadStatus","required":false},{"schema":{"default":false,"type":"boolean"},"in":"query","name":"includeSnoozed","required":false},{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"query","name":"campaignId","required":false},{"schema":{"type":"boolean"},"in":"query","name":"important","required":false},{"schema":{"type":"boolean"},"in":"query","name":"reminders","required":false},{"schema":{"type":"boolean"},"in":"query","name":"unmatched","required":false},{"schema":{"type":"boolean"},"in":"query","name":"ignored","required":false},{"schema":{"type":"boolean"},"in":"query","name":"archived","required":false},{"schema":{"type":"boolean"},"in":"query","name":"snoozed","required":false},{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"query","name":"listId","required":false}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetV1OutboundInboxResponse"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1Conversations"}},"/v1/conversations/{id}":{"get":{"tags":["outbound"],"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ItemsItem83"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1ConversationsById"}},"/v1/conversations/{id}/messages":{"get":{"tags":["outbound"],"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetV1OutboundInboxByIdThreadResponse"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1ConversationsByIdMessages"}},"/v1/conversations/{id}/messages/{messageId}":{"get":{"tags":["outbound"],"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true},{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"messageId","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ItemsItem83"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1ConversationsByIdMessagesByMessageId"}},"/v1/campaigns/{id}/replies":{"get":{"summary":"Replies to one campaign","tags":["outbound"],"parameters":[{"schema":{"default":50,"type":"integer","minimum":1,"maximum":200},"in":"query","name":"limit","required":false},{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"query","name":"cursor","required":false},{"schema":{"type":"string","enum":["positive","negative","neutral","ooo","auto_reply","bounce","unsubscribe","meeting","wrong_person"]},"in":"query","name":"category","required":false},{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"query","name":"connectionId","required":false},{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"query","name":"assigneeUserId","required":false},{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"query","name":"sequenceId","required":false},{"schema":{"type":"boolean"},"in":"query","name":"unread","required":false},{"schema":{"type":"string","maxLength":40},"in":"query","name":"label","required":false},{"schema":{"type":"string","enum":["new","contacted","replied","interested","meeting_booked","won","lost","not_interested","bounced","unsubscribed","do_not_contact"]},"in":"query","name":"leadStatus","required":false},{"schema":{"default":false,"type":"boolean"},"in":"query","name":"includeSnoozed","required":false},{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"query","name":"campaignId","required":false},{"schema":{"type":"boolean"},"in":"query","name":"important","required":false},{"schema":{"type":"boolean"},"in":"query","name":"reminders","required":false},{"schema":{"type":"boolean"},"in":"query","name":"unmatched","required":false},{"schema":{"type":"boolean"},"in":"query","name":"ignored","required":false},{"schema":{"type":"boolean"},"in":"query","name":"archived","required":false},{"schema":{"type":"boolean"},"in":"query","name":"snoozed","required":false},{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"query","name":"listId","required":false},{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetV1OutboundInboxResponse"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1CampaignsByIdReplies"}},"/v1/outbound/inbox-views":{"get":{"tags":["outbound"],"parameters":[{"schema":{"type":"integer","minimum":1,"maximum":200},"in":"query","name":"limit","required":false,"description":"Page size; omitted returns the whole list"},{"schema":{"type":"string","pattern":"^\\d{1,9}$"},"in":"query","name":"cursor","required":false,"description":"Opaque: the `nextCursor` of the previous page"}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"items":{"type":"array","items":{"$ref":"#/components/schemas/ItemsItem125"}},"nextCursor":{"nullable":true,"type":"string"}},"required":["items","nextCursor"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1OutboundInboxViews"},"post":{"tags":["outbound"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":80},"filters":{"type":"object","properties":{"category":{"type":"string","enum":["positive","negative","neutral","ooo","auto_reply","bounce","unsubscribe","meeting","wrong_person"]},"connectionId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"assigneeUserId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"sequenceId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"unread":{"type":"boolean"},"label":{"type":"string","maxLength":40},"leadStatus":{"type":"string","enum":["new","contacted","replied","interested","meeting_booked","won","lost","not_interested","bounced","unsubscribed","do_not_contact"]}}},"shared":{"default":false,"type":"boolean"}},"required":["name","filters"]}}}},"responses":{"201":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ItemsItem125"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"postV1OutboundInboxViews"}},"/v1/outbound/inbox-views/{id}":{"delete":{"tags":["outbound"],"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"ok":{"type":"boolean","enum":[true]}},"required":["ok"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"deleteV1OutboundInboxViewsById"}},"/v1/outbound/inbox/bulk":{"post":{"tags":["outbound"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"ids":{"$ref":"#/components/schemas/Ids"},"action":{"oneOf":[{"type":"object","properties":{"type":{"type":"string","enum":["read"]}},"required":["type"]},{"type":"object","properties":{"type":{"type":"string","enum":["unread"]}},"required":["type"]},{"type":"object","properties":{"type":{"type":"string","enum":["archive"]}},"required":["type"]},{"type":"object","properties":{"type":{"type":"string","enum":["assign"]},"assigneeUserId":{"nullable":true,"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},"required":["type","assigneeUserId"]},{"type":"object","properties":{"type":{"type":"string","enum":["label"]},"add":{"default":[],"maxItems":20,"type":"array","items":{"type":"string","minLength":1,"maxLength":40}},"remove":{"default":[],"maxItems":20,"type":"array","items":{"type":"string","maxLength":40}}},"required":["type"]},{"type":"object","properties":{"type":{"type":"string","enum":["snooze"]},"until":{"type":"string","format":"date-time"}},"required":["type","until"]},{"type":"object","properties":{"type":{"type":"string","enum":["category"]},"category":{"type":"string","enum":["positive","negative","neutral","ooo","auto_reply","bounce","unsubscribe","meeting","wrong_person"]}},"required":["type","category"]}]}},"required":["ids","action"]}}}},"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PostV1OutboundInboxBulkResponse"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"postV1OutboundInboxBulk"}},"/v1/outbound/reply-snippets":{"get":{"tags":["outbound"],"parameters":[{"schema":{"type":"integer","minimum":1,"maximum":200},"in":"query","name":"limit","required":false,"description":"Page size; omitted returns the whole list"},{"schema":{"type":"string","pattern":"^\\d{1,9}$"},"in":"query","name":"cursor","required":false,"description":"Opaque: the `nextCursor` of the previous page"}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"items":{"type":"array","items":{"$ref":"#/components/schemas/ItemsItem126"}},"nextCursor":{"nullable":true,"type":"string"}},"required":["items","nextCursor"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1OutboundReplySnippets"},"post":{"tags":["outbound"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":80},"body":{"type":"string","minLength":1,"maxLength":5000}},"required":["name","body"]}}}},"responses":{"201":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ItemsItem126"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"postV1OutboundReplySnippets"}},"/v1/outbound/reply-snippets/{id}":{"put":{"tags":["outbound"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":80},"body":{"type":"string","minLength":1,"maxLength":5000}},"required":["name","body"]}}}},"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ItemsItem126"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"putV1OutboundReplySnippetsById"},"delete":{"tags":["outbound"],"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"ok":{"type":"boolean","enum":[true]}},"required":["ok"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"deleteV1OutboundReplySnippetsById"}},"/v1/outbound/inbox/{id}/presence":{"post":{"tags":["outbound"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"composing":{"default":false,"type":"boolean"}}}}}},"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"items":{"type":"array","items":{"type":"object","properties":{"userId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"composing":{"type":"boolean"},"seenAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"}},"required":["userId","composing","seenAt"],"additionalProperties":false}}},"required":["items"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"postV1OutboundInboxByIdPresence"}},"/v1/outbound/mailboxes/bulk-update":{"post":{"tags":["outbound"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"connectionIds":{"$ref":"#/components/schemas/Ids"},"settings":{"$ref":"#/components/schemas/PatchV1OutboundMailboxesByIdBody"},"meta":{"$ref":"#/components/schemas/Meta2"}},"required":["connectionIds"]}}}},"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PostV1OutboundInboxBulkResponse"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"postV1OutboundMailboxesBulkUpdate"}},"/v1/outbound/mailboxes/bulk-action":{"post":{"tags":["outbound"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"connectionIds":{"$ref":"#/components/schemas/Ids"},"action":{"type":"string","enum":["pause","resume"]}},"required":["connectionIds","action"]}}}},"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PostV1OutboundInboxBulkResponse"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"postV1OutboundMailboxesBulkAction"}},"/v1/outbound/mailboxes/reconnect-failed":{"post":{"tags":["outbound"],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"tested":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"recovered":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"items":{"type":"array","items":{"type":"object","properties":{"connectionId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"name":{"type":"string"},"health":{"type":"string"}},"required":["connectionId","name","health"],"additionalProperties":false}}},"required":["tested","recovered","items"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"postV1OutboundMailboxesReconnectFailed"}},"/v1/outbound/mailboxes/{id}/mark-fixed":{"post":{"tags":["outbound"],"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"connectionId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"health":{"type":"string"},"resumed":{"type":"boolean"}},"required":["connectionId","health","resumed"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"postV1OutboundMailboxesByIdMarkFixed"}},"/v1/outbound/mailboxes/domain-health":{"get":{"tags":["outbound"],"parameters":[{"schema":{"type":"integer","minimum":1,"maximum":200},"in":"query","name":"limit","required":false,"description":"Page size; omitted returns the whole list"},{"schema":{"type":"string","pattern":"^\\d{1,9}$"},"in":"query","name":"cursor","required":false,"description":"Opaque: the `nextCursor` of the previous page"}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"items":{"type":"array","items":{"type":"object","properties":{"domain":{"type":"string"},"mailboxes":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"Every active email connection sending from the domain: Gmail/Microsoft mailboxes, SMTP and email APIs alike"},"paused":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"sent":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"bounced":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"complaints":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"bounceRate":{"type":"number"},"complaintRate":{"type":"number"}},"required":["domain","mailboxes","paused","sent","bounced","complaints","bounceRate","complaintRate"],"additionalProperties":false}},"nextCursor":{"nullable":true,"type":"string"}},"required":["items","nextCursor"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1OutboundMailboxesDomainHealth"}},"/v1/outbound/mailboxes/{id}/daily":{"get":{"tags":["outbound"],"parameters":[{"schema":{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"},"in":"query","name":"from","required":false},{"schema":{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"},"in":"query","name":"to","required":false},{"schema":{"type":"integer","minimum":1,"maximum":200},"in":"query","name":"limit","required":false,"description":"Page size; omitted returns the whole list"},{"schema":{"type":"string","pattern":"^\\d{1,9}$"},"in":"query","name":"cursor","required":false,"description":"Opaque: the `nextCursor` of the previous page"},{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"items":{"$ref":"#/components/schemas/History"},"nextCursor":{"nullable":true,"type":"string"}},"required":["items","nextCursor"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1OutboundMailboxesByIdDaily"}},"/v1/outbound/mailboxes/{id}/campaigns":{"get":{"tags":["outbound"],"parameters":[{"schema":{"type":"integer","minimum":1,"maximum":200},"in":"query","name":"limit","required":false,"description":"Page size; omitted returns the whole list"},{"schema":{"type":"string","pattern":"^\\d{1,9}$"},"in":"query","name":"cursor","required":false,"description":"Opaque: the `nextCursor` of the previous page"},{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"items":{"type":"array","items":{"type":"object","properties":{"sequenceId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"name":{"type":"string"},"status":{"type":"string"},"via":{"type":"string","enum":["mailbox","pool"]},"poolId":{"nullable":true,"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},"required":["sequenceId","name","status","via","poolId"],"additionalProperties":false}},"nextCursor":{"nullable":true,"type":"string"}},"required":["items","nextCursor"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1OutboundMailboxesByIdCampaigns"}},"/v1/outbound/sequences/{id}/senders":{"get":{"summary":"The mailboxes this sequence sends from","tags":["outbound"],"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetV1OutboundSequencesByIdSendersResponse"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1OutboundSequencesByIdSenders"},"put":{"summary":"Replace the sequence sender list (several mailboxes get a pool of their own)","tags":["outbound"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"connectionIds":{"$ref":"#/components/schemas/ListIds3"}},"required":["connectionIds"]}}}},"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetV1OutboundSequencesByIdSendersResponse"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"putV1OutboundSequencesByIdSenders"},"post":{"summary":"Add mailboxes (by id or by tag) to the sequence sender list","tags":["outbound"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"connectionIds":{"$ref":"#/components/schemas/ListIds3"},"tags":{"maxItems":50,"type":"array","items":{"type":"string","minLength":1,"maxLength":64}}}}}}},"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetV1OutboundSequencesByIdSendersResponse"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"postV1OutboundSequencesByIdSenders"}},"/v1/outbound/sequences/{id}/senders/{connectionId}":{"delete":{"summary":"Remove one mailbox from the sequence sender list","tags":["outbound"],"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true},{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"connectionId","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetV1OutboundSequencesByIdSendersResponse"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"deleteV1OutboundSequencesByIdSendersByConnectionId"}},"/v1/outbound/mailbox-tags":{"get":{"tags":["outbound"],"parameters":[{"schema":{"type":"integer","minimum":1,"maximum":200},"in":"query","name":"limit","required":false,"description":"Page size; omitted returns the whole list"},{"schema":{"type":"string","pattern":"^\\d{1,9}$"},"in":"query","name":"cursor","required":false,"description":"Opaque: the `nextCursor` of the previous page"}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"items":{"type":"array","items":{"type":"object","properties":{"tag":{"type":"string"},"mailboxes":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"color":{"nullable":true,"type":"string"}},"required":["tag","mailboxes","color"],"additionalProperties":false}},"nextCursor":{"nullable":true,"type":"string"}},"required":["items","nextCursor"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1OutboundMailboxTags"}},"/v1/outbound/mailbox-tags/assign":{"post":{"tags":["outbound"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"connectionIds":{"$ref":"#/components/schemas/Ids"},"add":{"default":[],"maxItems":20,"type":"array","items":{"type":"string","minLength":1,"maxLength":40}},"remove":{"default":[],"maxItems":20,"type":"array","items":{"type":"string","maxLength":40}}},"required":["connectionIds"]}}}},"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PostV1OutboundInboxBulkResponse"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"postV1OutboundMailboxTagsAssign"}},"/v1/sender-pools/{id}/attach-by-tag":{"post":{"tags":["outbound"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"tags":{"minItems":1,"maxItems":20,"type":"array","items":{"type":"string","minLength":1,"maxLength":40}},"mode":{"default":"add","type":"string","enum":["add","replace"]}},"required":["tags"]}}}},"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ItemsItem22"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"postV1SenderPoolsByIdAttachByTag"}},"/v1/outbound/sequences/{id}/reallocate-mailboxes":{"post":{"tags":["outbound"],"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"moved":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"kept":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["moved","kept"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"postV1OutboundSequencesByIdReallocateMailboxes"}},"/v1/outbound/sequences/{id}/prospects/{profileId}/mailbox":{"post":{"tags":["outbound"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PostV1DeliverabilitySeedsBody"}}}},"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true},{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"profileId","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"ok":{"type":"boolean","enum":[true]}},"required":["ok"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"postV1OutboundSequencesByIdProspectsByProfileIdMailbox"}},"/v1/outbound/accounts":{"get":{"tags":["outbound"],"parameters":[{"schema":{"default":50,"type":"integer","minimum":1,"maximum":200},"in":"query","name":"limit","required":false},{"schema":{"type":"string"},"in":"query","name":"cursor","required":false},{"schema":{"type":"string","enum":["new","engaged","opportunity","customer","not_a_fit","do_not_contact"]},"in":"query","name":"status","required":false},{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"query","name":"ownerUserId","required":false},{"schema":{"type":"string","maxLength":100},"in":"query","name":"q","required":false}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"items":{"type":"array","items":{"$ref":"#/components/schemas/ItemsItem127"}},"nextCursor":{"nullable":true,"type":"string"}},"required":["items","nextCursor"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1OutboundAccounts"}},"/v1/outbound/accounts/backfill":{"post":{"tags":["outbound"],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"linked":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["linked"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"postV1OutboundAccountsBackfill"}},"/v1/outbound/accounts/{id}":{"get":{"tags":["outbound"],"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ItemsItem127"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1OutboundAccountsById"},"patch":{"tags":["outbound"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":200},"industry":{"nullable":true,"type":"string","maxLength":100},"sizeBand":{"nullable":true,"type":"string","maxLength":40},"country":{"nullable":true,"type":"string","minLength":2,"maxLength":2},"website":{"nullable":true,"type":"string","maxLength":300},"ownerUserId":{"nullable":true,"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"status":{"type":"string","enum":["new","engaged","opportunity","customer","not_a_fit","do_not_contact"]},"notes":{"nullable":true,"type":"string","maxLength":5000}}}}}},"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ItemsItem127"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"patchV1OutboundAccountsById"}},"/v1/outbound/mailbox-meta":{"get":{"tags":["outbound"],"parameters":[{"schema":{"type":"integer","minimum":1,"maximum":200},"in":"query","name":"limit","required":false,"description":"Page size; omitted returns the whole list"},{"schema":{"type":"string","pattern":"^\\d{1,9}$"},"in":"query","name":"cursor","required":false,"description":"Opaque: the `nextCursor` of the previous page"}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"items":{"type":"array","items":{"type":"object","properties":{"connectionId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"tags":{"type":"array","items":{"type":"string"}},"groupName":{"nullable":true,"type":"string"},"capJitterPct":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"domain":{"nullable":true,"type":"string"},"displayName":{"nullable":true,"type":"string"},"signature":{"nullable":true,"type":"string"},"bcc":{"nullable":true,"type":"string"},"trackingDomain":{"nullable":true,"type":"string"}},"required":["connectionId","tags","groupName","capJitterPct","domain","displayName","signature","bcc","trackingDomain"],"additionalProperties":false}},"nextCursor":{"nullable":true,"type":"string"}},"required":["items","nextCursor"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1OutboundMailboxMeta"}},"/v1/outbound/mailbox-meta/{id}":{"put":{"tags":["outbound"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Meta2"}}}},"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"ok":{"type":"boolean","enum":[true]}},"required":["ok"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"putV1OutboundMailboxMetaById"}},"/v1/outbound/domain-caps":{"get":{"tags":["outbound"],"parameters":[{"schema":{"type":"integer","minimum":1,"maximum":200},"in":"query","name":"limit","required":false,"description":"Page size; omitted returns the whole list"},{"schema":{"type":"string","pattern":"^\\d{1,9}$"},"in":"query","name":"cursor","required":false,"description":"Opaque: the `nextCursor` of the previous page"}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"items":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"domain":{"type":"string"},"dailyCap":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"mailboxes":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"perMailbox":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["id","domain","dailyCap","mailboxes","perMailbox"],"additionalProperties":false}},"nextCursor":{"nullable":true,"type":"string"}},"required":["items","nextCursor"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1OutboundDomainCaps"},"put":{"tags":["outbound"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"domain":{"type":"string","minLength":3,"maxLength":253,"pattern":"^[a-z0-9.-]+\\.[a-z]{2,}$"},"dailyCap":{"type":"integer","minimum":1,"maximum":1000000}},"required":["domain","dailyCap"]}}}},"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"ok":{"type":"boolean","enum":[true]}},"required":["ok"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"putV1OutboundDomainCaps"}},"/v1/outbound/domain-caps/{id}":{"delete":{"tags":["outbound"],"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"ok":{"type":"boolean","enum":[true]}},"required":["ok"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"deleteV1OutboundDomainCapsById"}},"/v1/outbound/mailboxes/bulk-connect":{"post":{"tags":["outbound"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"rows":{"minItems":1,"maxItems":200,"type":"array","items":{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":120},"email":{"type":"string","format":"email","pattern":"^(?:[A-Za-z0-9_'+\\-]+\\.)*[A-Za-z0-9_'+\\-]*[A-Za-z0-9_+-]@(?:[A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$"},"fromName":{"type":"string","maxLength":120},"host":{"type":"string","minLength":1,"maxLength":253},"port":{"default":587,"type":"integer","minimum":1,"maximum":65535},"secure":{"default":false,"type":"boolean"},"user":{"type":"string","minLength":1,"maxLength":320},"pass":{"type":"string","minLength":1,"maxLength":500},"imapHost":{"type":"string","minLength":1,"maxLength":253},"imapPort":{"default":993,"type":"integer","minimum":1,"maximum":65535},"imapSecure":{"default":true,"type":"boolean"},"imapUser":{"type":"string","maxLength":320},"imapPass":{"type":"string","maxLength":500},"pop3Host":{"type":"string","minLength":1,"maxLength":253},"pop3Port":{"default":995,"type":"integer","minimum":1,"maximum":65535},"pop3Secure":{"default":true,"type":"boolean"},"pop3User":{"type":"string","maxLength":320},"pop3Pass":{"type":"string","maxLength":500}},"required":["name","email","host","user","pass"]}}},"required":["rows"]}}}},"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"created":{"type":"array","items":{"type":"object","properties":{"row":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"connectionId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},"required":["row","connectionId"],"additionalProperties":false}},"errors":{"$ref":"#/components/schemas/Errors2"}},"required":["created","errors"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"postV1OutboundMailboxesBulkConnect"}},"/v1/outbound/sequences/{id}/variants":{"get":{"tags":["outbound"],"parameters":[{"schema":{"type":"integer","minimum":1,"maximum":200},"in":"query","name":"limit","required":false,"description":"Page size; omitted returns the whole list"},{"schema":{"type":"string","pattern":"^\\d{1,9}$"},"in":"query","name":"cursor","required":false,"description":"Opaque: the `nextCursor` of the previous page"},{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"items":{"type":"array","items":{"type":"object","properties":{"step":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"ready":{"type":"boolean"},"leader":{"nullable":true,"type":"string"},"variants":{"type":"array","items":{"type":"object","properties":{"key":{"type":"string"},"sent":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"replied":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"positive":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"replyRate":{"type":"number"},"weight":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"suggestedWeight":{"nullable":true,"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["key","sent","replied","positive","replyRate","weight","suggestedWeight"],"additionalProperties":false}}},"required":["step","ready","leader","variants"],"additionalProperties":false}},"nextCursor":{"nullable":true,"type":"string"}},"required":["items","nextCursor"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1OutboundSequencesByIdVariants"}},"/v1/outbound/sequences/{id}/prospects/{profileId}/pause":{"post":{"tags":["outbound"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"reason":{"default":"manual","type":"string","maxLength":80}}}}}},"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true},{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"profileId","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PostV1OutboundSequencesByIdProspectsByProfileIdPauseResponse"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"postV1OutboundSequencesByIdProspectsByProfileIdPause"}},"/v1/outbound/sequences/{id}/prospects/{profileId}/resume":{"post":{"tags":["outbound"],"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true},{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"profileId","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PostV1OutboundSequencesByIdProspectsByProfileIdPauseResponse"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"postV1OutboundSequencesByIdProspectsByProfileIdResume"}},"/v1/outbound/sequences/{id}/prospects/{profileId}/interested":{"post":{"summary":"Mark the lead interested for this sequence (credits the sequence pipeline)","tags":["outbound"],"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true},{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"profileId","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PostV1OutboundSequencesByIdProspectsByProfileIdPauseResponse"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"postV1OutboundSequencesByIdProspectsByProfileIdInterested"}},"/v1/outbound/sequences/{id}/prospects/{profileId}/not-interested":{"post":{"summary":"Mark the lead not interested for this sequence","tags":["outbound"],"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true},{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"profileId","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PostV1OutboundSequencesByIdProspectsByProfileIdPauseResponse"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"postV1OutboundSequencesByIdProspectsByProfileIdNotInterested"}},"/v1/outbound/sequences/{id}/prospects/{profileId}/skip":{"post":{"summary":"Skip a step for one lead (default: the next action it is about to take)","tags":["outbound"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"stepKey":{"type":"string","maxLength":64}}}}}},"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true},{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"profileId","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PostV1OutboundSequencesByIdProspectsByProfileIdPauseResponse"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"postV1OutboundSequencesByIdProspectsByProfileIdSkip"}},"/v1/outbound/sequences/{id}/skip-step":{"post":{"summary":"Skip a step for everyone (or the listed leads) who has not passed it","tags":["outbound"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"stepKey":{"type":"string","minLength":1,"maxLength":64},"profileIds":{"$ref":"#/components/schemas/ProfileIds5"}},"required":["stepKey"]}}}},"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PostV1OutboundSequencesByIdProspectsByProfileIdPauseResponse"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"postV1OutboundSequencesByIdSkipStep"}},"/v1/outbound/sequences/{id}/prospects/{profileId}/steps/{stepKey}/override":{"put":{"summary":"Replace one email step's copy for this lead only","tags":["outbound"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"subject":{"type":"string","maxLength":300},"text":{"type":"string","minLength":1,"maxLength":50000},"html":{"type":"string","maxLength":200000}},"required":["text"]}}}},"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true},{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"profileId","required":true},{"schema":{"type":"string","maxLength":64},"in":"path","name":"stepKey","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"ok":{"type":"boolean","enum":[true]}},"required":["ok"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"putV1OutboundSequencesByIdProspectsByProfileIdStepsByStepKeyOverride"},"delete":{"tags":["outbound"],"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true},{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"profileId","required":true},{"schema":{"type":"string","maxLength":64},"in":"path","name":"stepKey","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"ok":{"type":"boolean","enum":[true]}},"required":["ok"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"deleteV1OutboundSequencesByIdProspectsByProfileIdStepsByStepKeyOverride"}},"/v1/outbound/sequences/{id}/prospects/{profileId}/move-mailbox":{"post":{"tags":["outbound"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PostV1DeliverabilitySeedsBody"}}}},"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true},{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"profileId","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"ok":{"type":"boolean","enum":[true]}},"required":["ok"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"postV1OutboundSequencesByIdProspectsByProfileIdMoveMailbox"}},"/v1/outbound/sequences/{id}/move-leads":{"post":{"summary":"Move prospects to another sequence: enrolled there first (all gates apply), then ended here","tags":["outbound"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"toSequenceId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"profileIds":{"$ref":"#/components/schemas/ProfileIds2"}},"required":["toSequenceId","profileIds"]}}}},"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PostV1OutboundSequencesByIdProspectsByProfileIdPauseResponse"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"postV1OutboundSequencesByIdMoveLeads"}},"/v1/outbound/sequences/{id}/leads":{"get":{"summary":"Prospects of a sequence with their state (filter by state or email; export-ready)","tags":["outbound"],"parameters":[{"schema":{"type":"string","enum":["active","waiting","paused","completed","exited","failed"]},"in":"query","name":"state","required":false},{"schema":{"type":"string","maxLength":320},"in":"query","name":"email","required":false},{"schema":{"default":100,"type":"integer","minimum":1,"maximum":500},"in":"query","name":"limit","required":false},{"schema":{"type":"string"},"in":"query","name":"cursor","required":false},{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"items":{"type":"array","items":{"type":"object","properties":{"enrollmentId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"profileId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"email":{"nullable":true,"type":"string"},"state":{"type":"string"},"currentNodeId":{"nullable":true,"type":"string"},"nextRunAt":{"nullable":true,"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"pausedReason":{"nullable":true,"type":"string"},"exitedReason":{"nullable":true,"type":"string"},"enteredAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"stuckReason":{"nullable":true,"type":"string"},"overrides":{"type":"array","items":{"type":"string"}}},"required":["enrollmentId","profileId","email","state","currentNodeId","nextRunAt","pausedReason","exitedReason","enteredAt","stuckReason","overrides"],"additionalProperties":false}},"nextCursor":{"nullable":true,"type":"string"}},"required":["items","nextCursor"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1OutboundSequencesByIdLeads"}},"/v1/outbound/prospects/{profileId}/pause":{"post":{"summary":"Pause the person in every live sequence","tags":["outbound"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"reason":{"default":"manual","type":"string","maxLength":80}}}}}},"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"profileId","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PostV1OutboundSequencesByIdProspectsByProfileIdPauseResponse"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"postV1OutboundProspectsByProfileIdPause"}},"/v1/outbound/prospects/{profileId}/resume":{"post":{"tags":["outbound"],"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"profileId","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PostV1OutboundSequencesByIdProspectsByProfileIdPauseResponse"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"postV1OutboundProspectsByProfileIdResume"}},"/v1/outbound/prospects/{profileId}/stop-sequences":{"post":{"summary":"End every live sequence of a person (lifecycle change, CRM stage, manual)","tags":["outbound"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"reason":{"default":"manual","type":"string","minLength":1,"maxLength":80}}}}}},"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"profileId","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PostV1OutboundSequencesByIdProspectsByProfileIdPauseResponse"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"postV1OutboundProspectsByProfileIdStopSequences"}},"/v1/outbound/sequences/{id}/sending-status":{"get":{"summary":"Why is this sequence not sending","tags":["outbound"],"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"sequenceId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"status":{"type":"string"},"sending":{"type":"boolean"},"enrollments":{"type":"object","additionalProperties":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"window":{"type":"object","properties":{"openNow":{"type":"boolean"},"timezone":{"type":"string"},"nextOpenAt":{"nullable":true,"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"}},"required":["openNow","timezone","nextOpenAt"],"additionalProperties":false},"mailboxes":{"type":"array","items":{"type":"object","properties":{"connectionId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"name":{"type":"string"},"status":{"type":"string"},"health":{"type":"string"},"sentToday":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"dailyCap":{"nullable":true,"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"sequenceDailyLimit":{"nullable":true,"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"pausedForSequence":{"type":"boolean"},"atCap":{"type":"boolean"}},"required":["connectionId","name","status","health","sentToday","dailyCap","sequenceDailyLimit","pausedForSequence","atCap"],"additionalProperties":false}},"dailyNew":{"type":"object","properties":{"limit":{"nullable":true,"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"enrolledToday":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["limit","enrolledToday"],"additionalProperties":false},"reasons":{"$ref":"#/components/schemas/Reasons"}},"required":["sequenceId","status","sending","enrollments","window","mailboxes","dailyNew","reasons"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1OutboundSequencesByIdSendingStatus"}},"/v1/outbound/sequences/{id}/prospects/{profileId}/diagnostics":{"get":{"summary":"Why is this prospect not getting the next step","tags":["outbound"],"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true},{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"profileId","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"enrollmentId":{"nullable":true,"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"profileId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"state":{"nullable":true,"type":"string"},"currentNodeId":{"nullable":true,"type":"string"},"nextRunAt":{"nullable":true,"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"mailboxConnectionId":{"nullable":true,"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"eligible":{"nullable":true,"type":"boolean"},"reasons":{"$ref":"#/components/schemas/Reasons"},"recent":{"type":"array","items":{"type":"object","properties":{"at":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"nodeId":{"nullable":true,"type":"string"},"kind":{"type":"string"},"note":{"nullable":true,"type":"string"}},"required":["at","nodeId","kind","note"],"additionalProperties":false}}},"required":["enrollmentId","profileId","state","currentNodeId","nextRunAt","mailboxConnectionId","eligible","reasons","recent"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1OutboundSequencesByIdProspectsByProfileIdDiagnostics"}},"/v1/outbound/schedules":{"get":{"tags":["outbound"],"parameters":[{"schema":{"type":"integer","minimum":1,"maximum":200},"in":"query","name":"limit","required":false,"description":"Page size; omitted returns the whole list"},{"schema":{"type":"string","pattern":"^\\d{1,9}$"},"in":"query","name":"cursor","required":false,"description":"Opaque: the `nextCursor` of the previous page"}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"items":{"type":"array","items":{"$ref":"#/components/schemas/ItemsItem128"}},"nextCursor":{"nullable":true,"type":"string"}},"required":["items","nextCursor"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1OutboundSchedules"},"post":{"tags":["outbound"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PostV1OutboundSchedulesBody"}}}},"responses":{"201":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ItemsItem128"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"postV1OutboundSchedules"}},"/v1/outbound/schedules/{id}":{"get":{"tags":["outbound"],"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ItemsItem128"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1OutboundSchedulesById"},"put":{"summary":"Edit a schedule (re-compiles the sequences that use it)","tags":["outbound"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PostV1OutboundSchedulesBody"}}}},"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ItemsItem128"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"putV1OutboundSchedulesById"},"delete":{"tags":["outbound"],"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"ok":{"type":"boolean","enum":[true]}},"required":["ok"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"deleteV1OutboundSchedulesById"}},"/v1/outbound/analytics/v2":{"get":{"summary":"Opens, clicks, replies, time-to-reply by day, step, variant, provider, category, status or owner (group=status: `prospects` holds the number of prospects in each state)","tags":["outbound"],"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"query","name":"sequenceId","required":false},{"schema":{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"},"in":"query","name":"from","required":false},{"schema":{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"},"in":"query","name":"to","required":false},{"schema":{"$ref":"#/components/schemas/ProfileIds"},"in":"query","name":"sequenceIds","required":false},{"schema":{"default":"summary","type":"string","enum":["summary","day","step","variant","provider","category","status","user","sent_hour","sent_weekday","sequence"]},"in":"query","name":"group","required":false}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"group":{"type":"string"},"items":{"type":"array","items":{"type":"object","properties":{"key":{"type":"string"},"sent":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"bounced":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"opens":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"uniqueOpens":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"clicks":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"uniqueClicks":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"replies":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"positive":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"negative":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"openRate":{"type":"number"},"clickRate":{"type":"number"},"replyRate":{"type":"number"},"bounceRate":{"type":"number"},"positiveRate":{"type":"number"},"avgTimeToReplySec":{"nullable":true,"type":"number"},"prospects":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["key","sent","bounced","opens","uniqueOpens","clicks","uniqueClicks","replies","positive","negative","openRate","clickRate","replyRate","bounceRate","positiveRate","avgTimeToReplySec"],"additionalProperties":false}}},"required":["group","items"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1OutboundAnalyticsV2"}},"/v1/outbound/sequences/count":{"get":{"tags":["outbound"],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"total":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"byStatus":{"type":"object","additionalProperties":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}}},"required":["total","byStatus"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1OutboundSequencesCount"}},"/v1/outbound/sequences/search":{"get":{"summary":"Sequences a contact is in, by email","tags":["outbound"],"parameters":[{"schema":{"type":"string","minLength":3,"maxLength":320},"in":"query","name":"email","required":true},{"schema":{"type":"integer","minimum":1,"maximum":200},"in":"query","name":"limit","required":false,"description":"Page size; omitted returns the whole list"},{"schema":{"type":"string","pattern":"^\\d{1,9}$"},"in":"query","name":"cursor","required":false,"description":"Opaque: the `nextCursor` of the previous page"}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"items":{"type":"array","items":{"type":"object","properties":{"sequenceId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"name":{"type":"string"},"enrollmentId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"state":{"type":"string"},"enteredAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"}},"required":["sequenceId","name","enrollmentId","state","enteredAt"],"additionalProperties":false}},"nextCursor":{"nullable":true,"type":"string"}},"required":["items","nextCursor"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1OutboundSequencesSearch"}},"/v1/outbound/sequences/import":{"post":{"tags":["outbound"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":200},"data":{"type":"object","properties":{"version":{"type":"number","enum":[1]},"name":{"type":"string"},"settings":{"$ref":"#/components/schemas/Sequence"}},"required":["version","name","settings"]}},"required":["data"]}}}},"responses":{"201":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ItemsItem82"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"postV1OutboundSequencesImport"}},"/v1/outbound/sequences/{id}/duplicate":{"post":{"tags":["outbound"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":200}}}}}},"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"201":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ItemsItem82"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"postV1OutboundSequencesByIdDuplicate"}},"/v1/outbound/sequences/{id}/export":{"get":{"summary":"Shareable JSON of the sequence (signing secrets are never included)","tags":["outbound"],"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"version":{"type":"number","enum":[1]},"name":{"type":"string"},"settings":{"$ref":"#/components/schemas/Sequence2"}},"required":["version","name","settings"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1OutboundSequencesByIdExport"}},"/v1/outbound/sequences/{id}/folder":{"put":{"tags":["outbound"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"folder":{"nullable":true,"type":"string","maxLength":80}},"required":["folder"]}}}},"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ItemsItem82"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"putV1OutboundSequencesByIdFolder"}},"/v1/outbound/sequences/{id}/tags":{"put":{"tags":["outbound"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"tags":{"maxItems":20,"type":"array","items":{"type":"string","minLength":1,"maxLength":40}}},"required":["tags"]}}}},"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ItemsItem82"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"putV1OutboundSequencesByIdTags"}},"/v1/outbound/sequences/{id}/readiness":{"get":{"tags":["outbound"],"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"ready":{"type":"boolean"},"errors":{"type":"array","items":{"type":"string"}},"warnings":{"type":"array","items":{"type":"string"}}},"required":["ready","errors","warnings"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1OutboundSequencesByIdReadiness"}},"/v1/outbound/sequences/{id}/steps/{stepKey}/winner":{"post":{"summary":"Make one A/B variant the step's only template (takes effect on the next publish)","tags":["outbound"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"variant":{"type":"string","pattern":"^[a-z]$"}},"required":["variant"]}}}},"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true},{"schema":{"type":"string","maxLength":64},"in":"path","name":"stepKey","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ItemsItem82"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"postV1OutboundSequencesByIdStepsByStepKeyWinner"}},"/v1/outbound/reply-labels":{"get":{"tags":["outbound"],"parameters":[{"schema":{"type":"integer","minimum":1,"maximum":200},"in":"query","name":"limit","required":false,"description":"Page size; omitted returns the whole list"},{"schema":{"type":"string","pattern":"^\\d{1,9}$"},"in":"query","name":"cursor","required":false,"description":"Opaque: the `nextCursor` of the previous page"}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"items":{"type":"array","items":{"$ref":"#/components/schemas/ItemsItem129"}},"nextCursor":{"nullable":true,"type":"string"}},"required":["items","nextCursor"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1OutboundReplyLabels"},"post":{"tags":["outbound"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PostV1OutboundReplyLabelsBody"}}}},"responses":{"201":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ItemsItem129"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"postV1OutboundReplyLabels"}},"/v1/outbound/reply-labels/{id}":{"put":{"tags":["outbound"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PostV1OutboundReplyLabelsBody"}}}},"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ItemsItem129"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"putV1OutboundReplyLabelsById"},"delete":{"tags":["outbound"],"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"ok":{"type":"boolean","enum":[true]}},"required":["ok"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"deleteV1OutboundReplyLabelsById"},"get":{"tags":["outbound"],"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ItemsItem129"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1OutboundReplyLabelsById"}},"/v1/outbound/call-dispositions":{"get":{"tags":["outbound"],"parameters":[{"schema":{"type":"integer","minimum":1,"maximum":200},"in":"query","name":"limit","required":false,"description":"Page size; omitted returns the whole list"},{"schema":{"type":"string","pattern":"^\\d{1,9}$"},"in":"query","name":"cursor","required":false,"description":"Opaque: the `nextCursor` of the previous page"}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"items":{"type":"array","items":{"$ref":"#/components/schemas/ItemsItem130"}},"nextCursor":{"nullable":true,"type":"string"}},"required":["items","nextCursor"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1OutboundCallDispositions"},"put":{"tags":["outbound"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"key":{"type":"string","pattern":"^[a-z0-9_]{1,40}$"},"label":{"type":"string","minLength":1,"maxLength":80},"connected":{"default":false,"type":"boolean"},"position":{"default":0,"type":"integer","minimum":0,"maximum":1000}},"required":["key","label"]}}}},"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ItemsItem130"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"putV1OutboundCallDispositions"}},"/v1/outbound/call-dispositions/{key}":{"delete":{"tags":["outbound"],"parameters":[{"schema":{"type":"string","pattern":"^[a-z0-9_]{1,40}$"},"in":"path","name":"key","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"ok":{"type":"boolean","enum":[true]}},"required":["ok"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"deleteV1OutboundCallDispositionsByKey"}},"/v1/outbound/calls":{"post":{"summary":"Log a finished call (outcome, duration, recording link)","tags":["outbound"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"profileId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"outcome":{"type":"string","minLength":1,"maxLength":40},"durationSec":{"type":"integer","minimum":0,"maximum":86400},"recordingUrl":{"type":"string","maxLength":1000,"format":"uri"},"notes":{"type":"string","maxLength":5000},"transcript":{"type":"string","maxLength":100000},"externalId":{"type":"string","maxLength":200},"at":{"type":"string","format":"date-time"},"assigneeUserId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},"required":["profileId","outcome"]}}}},"responses":{"201":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ItemsItem85"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"postV1OutboundCalls"}},"/v1/outbound/calls/{id}":{"get":{"tags":["outbound"],"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ItemsItem85"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1OutboundCallsById"},"patch":{"tags":["outbound"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"outcome":{"type":"string","minLength":1,"maxLength":40},"durationSec":{"type":"integer","minimum":0,"maximum":86400},"recordingUrl":{"type":"string","maxLength":1000,"format":"uri"},"notes":{"type":"string","maxLength":5000},"transcript":{"type":"string","maxLength":100000},"externalId":{"type":"string","maxLength":200},"at":{"type":"string","format":"date-time"},"assigneeUserId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}}}}},"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ItemsItem85"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"patchV1OutboundCallsById"}},"/v1/outbound/calls/{id}/recording":{"delete":{"summary":"Delete the recording link and transcript of a logged call (outcome, length and notes stay)","tags":["outbound"],"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ItemsItem85"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"deleteV1OutboundCallsByIdRecording"}},"/v1/outbound/tasks/filters":{"get":{"summary":"Filter fields the task list accepts","tags":["outbound"],"parameters":[{"schema":{"type":"integer","minimum":1,"maximum":200},"in":"query","name":"limit","required":false,"description":"Page size; omitted returns the whole list"},{"schema":{"type":"string","pattern":"^\\d{1,9}$"},"in":"query","name":"cursor","required":false,"description":"Opaque: the `nextCursor` of the previous page"}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"items":{"type":"array","items":{"type":"object","properties":{"field":{"type":"string"},"type":{"type":"string"},"values":{"type":"array","items":{"type":"string"}}},"required":["field","type"],"additionalProperties":false}},"nextCursor":{"nullable":true,"type":"string"}},"required":["items","nextCursor"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1OutboundTasksFilters"}},"/v1/outbound/inbox/counts":{"get":{"tags":["outbound"],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"unread":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"important":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"reminders":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"unmatched":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["unread","important","reminders","unmatched"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1OutboundInboxCounts"}},"/v1/outbound/inbox/{id}/drafts":{"get":{"tags":["outbound"],"parameters":[{"schema":{"type":"integer","minimum":1,"maximum":200},"in":"query","name":"limit","required":false,"description":"Page size; omitted returns the whole list"},{"schema":{"type":"string","pattern":"^\\d{1,9}$"},"in":"query","name":"cursor","required":false,"description":"Opaque: the `nextCursor` of the previous page"},{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"items":{"type":"array","items":{"$ref":"#/components/schemas/ItemsItem131"}},"nextCursor":{"nullable":true,"type":"string"}},"required":["items","nextCursor"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1OutboundInboxByIdDrafts"},"post":{"tags":["outbound"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PostV1OutboundInboxByIdDraftsBody"}}}},"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"201":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ItemsItem131"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"postV1OutboundInboxByIdDrafts"}},"/v1/outbound/inbox/{id}/drafts/{draftId}":{"get":{"tags":["outbound"],"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true},{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"draftId","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ItemsItem131"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1OutboundInboxByIdDraftsByDraftId"},"put":{"tags":["outbound"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PostV1OutboundInboxByIdDraftsBody"}}}},"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true},{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"draftId","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ItemsItem131"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"putV1OutboundInboxByIdDraftsByDraftId"},"delete":{"tags":["outbound"],"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true},{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"draftId","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"ok":{"type":"boolean","enum":[true]}},"required":["ok"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"deleteV1OutboundInboxByIdDraftsByDraftId"}},"/v1/outbound/inbox/{id}/drafts/{draftId}/send":{"post":{"summary":"Send the draft as a reply (consent and suppression still apply) and delete it","tags":["outbound"],"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true},{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"draftId","required":true}],"responses":{"202":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PostV1MessagesSendResponse"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"postV1OutboundInboxByIdDraftsByDraftIdSend"}},"/v1/outbound/inbox/{id}/important":{"post":{"tags":["outbound"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"value":{"type":"boolean"}},"required":["value"]}}}},"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"ok":{"type":"boolean","enum":[true]}},"required":["ok"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"postV1OutboundInboxByIdImportant"}},"/v1/outbound/inbox/{id}/remind":{"post":{"tags":["outbound"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"at":{"nullable":true,"type":"string","format":"date-time"}},"required":["at"]}}}},"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"ok":{"type":"boolean","enum":[true]}},"required":["ok"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"postV1OutboundInboxByIdRemind"}},"/v1/outbound/inbox/{id}/ignore":{"post":{"summary":"Ignore a reply: hide it and take it out of the reply counters","tags":["outbound"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"value":{"type":"boolean"}},"required":["value"]}}}},"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"ok":{"type":"boolean","enum":[true]}},"required":["ok"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"postV1OutboundInboxByIdIgnore"}},"/v1/outbound/inbox/{id}/associate":{"post":{"summary":"Tie an unmatched reply to a prospect","tags":["outbound"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PostV1StagesByIdProfilesBody"}}}},"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ItemsItem83"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"postV1OutboundInboxByIdAssociate"}},"/v1/outbound/inbox/{id}/push-to-sequence":{"post":{"summary":"Move the reply's lead into another sequence","tags":["outbound"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"sequenceId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},"required":["sequenceId"]}}}},"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PostV1OutboundSequencesByIdEnrollResponse"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"postV1OutboundInboxByIdPushToSequence"}},"/v1/outbound/meetings/{id}/complete":{"post":{"tags":["outbound"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"outcome":{"default":"held","type":"string","enum":["held","no_show","rescheduled"]},"notes":{"type":"string","maxLength":5000}}}}}},"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"profileId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"completedAt":{"nullable":true,"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"outcome":{"nullable":true,"type":"string"}},"required":["id","profileId","completedAt","outcome"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"postV1OutboundMeetingsByIdComplete"}},"/v1/outbound/blocklist":{"get":{"summary":"Blocklist entries: domains (covering subdomains) and individual addresses","tags":["consent"],"parameters":[{"schema":{"type":"string","enum":["domain","email"]},"in":"query","name":"kind","required":false},{"schema":{"type":"string","maxLength":320},"in":"query","name":"q","required":false},{"schema":{"default":200,"type":"integer","minimum":1,"maximum":500},"in":"query","name":"limit","required":false}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"items":{"type":"array","items":{"$ref":"#/components/schemas/ItemsItem132"}}},"required":["items"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1OutboundBlocklist"}},"/v1/outbound/blocklist/bulk":{"post":{"summary":"Add many emails and domains at once; an address with an \"@\" is a do-not-send address, anything else a domain","tags":["consent"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"entries":{"minItems":1,"maxItems":5000,"type":"array","items":{"type":"string","minLength":1,"maxLength":320}},"reason":{"nullable":true,"type":"string","maxLength":500}},"required":["entries"]}}}},"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PostV1OutboundBlocklistBulkResponse"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"postV1OutboundBlocklistBulk"}},"/v1/outbound/blocklist/import":{"post":{"summary":"Import a CSV or pasted list of emails and domains","tags":["consent"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"csv":{"type":"string","minLength":1,"maxLength":2000000},"reason":{"nullable":true,"type":"string","maxLength":500}},"required":["csv"]}}}},"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PostV1OutboundBlocklistBulkResponse"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"postV1OutboundBlocklistImport"}},"/v1/outbound/blocklist/bulk-delete":{"post":{"summary":"Remove many blocklist entries by value; suppressions from bounces, complaints and unsubscribes are never lifted here","tags":["consent"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"entries":{"minItems":1,"maxItems":5000,"type":"array","items":{"type":"string","minLength":1,"maxLength":320}}},"required":["entries"]}}}},"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PostV1OutboundBlocklistBulkResponse"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"postV1OutboundBlocklistBulkDelete"}},"/v1/outbound/blocklist/download":{"get":{"tags":["consent"],"parameters":[{"schema":{"type":"string","enum":["domain","email"]},"in":"query","name":"kind","required":false},{"schema":{"type":"string","maxLength":320},"in":"query","name":"q","required":false},{"schema":{"default":200,"type":"integer","minimum":1,"maximum":500},"in":"query","name":"limit","required":false}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1OutboundBlocklistDownload"}},"/v1/outbound/blocklist/{id}":{"get":{"tags":["consent"],"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ItemsItem132"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1OutboundBlocklistById"},"patch":{"summary":"Edit the note of one blocklist entry","tags":["consent"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"reason":{"nullable":true,"type":"string","maxLength":500}},"required":["reason"]}}}},"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ItemsItem132"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"patchV1OutboundBlocklistById"}},"/v1/outbound/inbox/{id}/forward":{"post":{"summary":"Forward a reply to another address (optionally scheduled)","tags":["outbound"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"to":{"type":"string","minLength":3,"maxLength":320},"note":{"type":"string","maxLength":5000},"connectionId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"scheduledFor":{"type":"string","format":"date-time"}},"required":["to"]}}}},"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"202":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PostV1MessagesSendResponse"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"postV1OutboundInboxByIdForward"}},"/v1/outbound/inbox-mail/sent":{"get":{"summary":"Replies and forwards sent from the inbox","tags":["outbound"],"parameters":[{"schema":{"default":50,"type":"integer","minimum":1,"maximum":200},"in":"query","name":"limit","required":false},{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"query","name":"cursor","required":false}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetV1OutboundInboxMailSentResponse"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1OutboundInboxMailSent"}},"/v1/outbound/inbox-mail/scheduled":{"get":{"summary":"Replies and forwards waiting for their send time","tags":["outbound"],"parameters":[{"schema":{"default":50,"type":"integer","minimum":1,"maximum":200},"in":"query","name":"limit","required":false},{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"query","name":"cursor","required":false}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetV1OutboundInboxMailSentResponse"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1OutboundInboxMailScheduled"}},"/v1/outbound/inbox-mail/{id}/cancel":{"post":{"tags":["outbound"],"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"ok":{"type":"boolean","enum":[true]}},"required":["ok"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"postV1OutboundInboxMailByIdCancel"}},"/v1/outbound/inbox-mail/{id}/reschedule":{"post":{"tags":["outbound"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"at":{"type":"string","format":"date-time"}},"required":["at"]}}}},"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string"},"scheduledFor":{"type":"string"}},"required":["id","scheduledFor"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"postV1OutboundInboxMailByIdReschedule"}},"/v1/outbound/inbox/untracked":{"get":{"summary":"Replies that matched no send or prospect","tags":["outbound"],"parameters":[{"schema":{"default":50,"type":"integer","minimum":1,"maximum":200},"in":"query","name":"limit","required":false},{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"query","name":"cursor","required":false},{"schema":{"type":"string","enum":["positive","negative","neutral","ooo","auto_reply","bounce","unsubscribe","meeting","wrong_person"]},"in":"query","name":"category","required":false},{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"query","name":"connectionId","required":false},{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"query","name":"assigneeUserId","required":false},{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"query","name":"sequenceId","required":false},{"schema":{"type":"boolean"},"in":"query","name":"unread","required":false},{"schema":{"type":"string","maxLength":40},"in":"query","name":"label","required":false},{"schema":{"type":"string","enum":["new","contacted","replied","interested","meeting_booked","won","lost","not_interested","bounced","unsubscribed","do_not_contact"]},"in":"query","name":"leadStatus","required":false},{"schema":{"default":false,"type":"boolean"},"in":"query","name":"includeSnoozed","required":false},{"schema":{"type":"boolean"},"in":"query","name":"important","required":false},{"schema":{"type":"boolean"},"in":"query","name":"reminders","required":false},{"schema":{"type":"boolean"},"in":"query","name":"ignored","required":false},{"schema":{"type":"boolean"},"in":"query","name":"archived","required":false},{"schema":{"type":"boolean"},"in":"query","name":"snoozed","required":false},{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"query","name":"listId","required":false}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetV1OutboundInboxResponse"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1OutboundInboxUntracked"}},"/v1/outbound/send":{"post":{"summary":"Send one cold email from a chosen mailbox, outside any sequence (consent, suppression and caps still apply)","tags":["outbound"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"to":{"type":"string","minLength":3,"maxLength":320},"connectionId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"subject":{"type":"string","minLength":1,"maxLength":998},"text":{"type":"string","minLength":1,"maxLength":50000},"scheduledFor":{"type":"string","format":"date-time"},"idempotencyKey":{"type":"string","minLength":1,"maxLength":100}},"required":["to","connectionId","subject","text"]}}}},"responses":{"202":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PostV1MessagesSendResponse"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"postV1OutboundSend"}},"/v1/outbound/sequences/{id}/launch":{"post":{"summary":"Review gate: let held prospects start (the given ones, or every held prospect)","tags":["outbound"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"profileIds":{"$ref":"#/components/schemas/ProfileIds2"}}}}}},"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PostV1OutboundSequencesByIdProspectsByProfileIdPauseResponse"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"postV1OutboundSequencesByIdLaunch"}},"/v1/outbound/prospects/bulk-owner":{"post":{"summary":"Give many prospects one owner (or clear it)","tags":["outbound"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"profileIds":{"$ref":"#/components/schemas/ProfileIds2"},"ownerUserId":{"nullable":true,"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},"required":["profileIds","ownerUserId"]}}}},"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"updated":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"skipped":{"$ref":"#/components/schemas/Conflicts"}},"required":["updated","skipped"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"postV1OutboundProspectsBulkOwner"}},"/v1/outbound/sequences/{id}/share":{"get":{"summary":"A read-only link to the outline of this sequence (7 days); anyone with the link can read it","tags":["outbound"],"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetV1OutboundSequencesByIdShareResponse"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1OutboundSequencesByIdShare"}},"/p/seq/{token}":{"get":{"summary":"Shared read-only outline of a sequence","tags":["outbound"],"parameters":[{"schema":{"type":"string","minLength":20,"maxLength":800},"in":"path","name":"token","required":true}],"security":[],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"string"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getPSeqByToken"}},"/v1/outbound/inbox/predict":{"post":{"summary":"Test how a reply would be sorted (interested, not interested, out of office...) without storing anything","tags":["outbound"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"subject":{"type":"string","maxLength":500},"text":{"type":"string","minLength":1,"maxLength":20000},"useAi":{"default":false,"type":"boolean"}},"required":["text"]}}}},"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"category":{"type":"string","enum":["positive","negative","neutral","ooo","auto_reply","bounce","unsubscribe","meeting","wrong_person"]},"confidence":{"type":"number"},"source":{"type":"string","enum":["rule","llm"]},"label":{"nullable":true,"type":"string"},"oooUntil":{"nullable":true,"type":"string"},"rules":{"type":"object","properties":{"category":{"type":"string","enum":["positive","negative","neutral","ooo","auto_reply","bounce","unsubscribe","meeting","wrong_person"]},"confidence":{"type":"number"}},"required":["category","confidence"],"additionalProperties":false},"aiAvailable":{"type":"boolean"},"aiConsulted":{"type":"boolean"}},"required":["category","confidence","source","label","oooUntil","rules","aiAvailable","aiConsulted"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"postV1OutboundInboxPredict"}},"/v1/outbound/analytics/pipeline":{"get":{"summary":"Pipeline value per sequence: interested and meeting-booked prospects (open), won, and the deal values typed on them","tags":["outbound"],"parameters":[{"schema":{"type":"integer","minimum":1,"maximum":200},"in":"query","name":"limit","required":false,"description":"Page size; omitted returns the whole list"},{"schema":{"type":"string","pattern":"^\\d{1,9}$"},"in":"query","name":"cursor","required":false,"description":"Opaque: the `nextCursor` of the previous page"}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"items":{"type":"array","items":{"type":"object","properties":{"sequenceId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"interested":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"meetings":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"won":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"lost":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"openCents":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"wonCents":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"unvalued":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["sequenceId","interested","meetings","won","lost","openCents","wonCents","unvalued"],"additionalProperties":false}},"nextCursor":{"nullable":true,"type":"string"}},"required":["items","nextCursor"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1OutboundAnalyticsPipeline"}},"/v1/outbound/ai-key":{"get":{"tags":["outbound"],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetV1OutboundAiKeyResponse"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1OutboundAiKey"},"put":{"summary":"Save your own Anthropic API key (sealed; never returned). The key is checked with a free Anthropic call first: a rejected key is refused, an unreachable Anthropic saves it as verified: false","tags":["outbound"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"apiKey":{"type":"string","minLength":20,"maxLength":300}},"required":["apiKey"]}}}},"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetV1OutboundAiKeyResponse"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"putV1OutboundAiKey"},"delete":{"tags":["outbound"],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"ok":{"type":"boolean","enum":[true]}},"required":["ok"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"deleteV1OutboundAiKey"}},"/v1/outbound/personalize":{"post":{"summary":"Write one short AI snippet per lead from its custom fields; poll the job, review, then POST /apply to save it to the field. Drafts only: nothing is sent","tags":["outbound"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"profileIds":{"$ref":"#/components/schemas/LeadIds"},"field":{"type":"string","pattern":"^[a-z][a-z0-9_]{0,39}$"},"prompt":{"type":"string","minLength":5,"maxLength":2000},"researchField":{"type":"string","pattern":"^[a-z][a-z0-9_]{0,39}$"}},"required":["profileIds","field","prompt"]}}}},"responses":{"202":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PostV1OutboundPersonalizeResponse"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"postV1OutboundPersonalize"}},"/v1/outbound/personalize/{id}":{"get":{"tags":["outbound"],"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PostV1OutboundPersonalizeResponse"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1OutboundPersonalizeById"}},"/v1/outbound/personalize/{id}/apply":{"post":{"summary":"Save the reviewed snippets (all, or only the given leads) to the custom field they were written for","tags":["outbound"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"profileIds":{"$ref":"#/components/schemas/ProfileIds7"}}}}}},"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"applied":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"skipped":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["applied","skipped"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"postV1OutboundPersonalizeByIdApply"}},"/v1/agency/outbound":{"get":{"summary":"Last 30 days of outbound results per client workspace of your agency (null when you are not in an agency). Each client is read in its own tenant after a membership check","tags":["agency"],"security":[{"session":[]}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"nullable":true,"type":"object","properties":{"days":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"clients":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"name":{"type":"string"},"readable":{"type":"boolean"},"sent":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"bounced":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"replied":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"positive":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"meetings":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"replyRate":{"type":"number"},"interestedRate":{"type":"number"},"bounceRate":{"type":"number"},"openPipelineCents":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"wonCents":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"liveSequences":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"mailboxes":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"pausedMailboxes":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["id","name","readable","sent","bounced","replied","positive","meetings","replyRate","interestedRate","bounceRate","openPipelineCents","wonCents","liveSequences","mailboxes","pausedMailboxes"],"additionalProperties":false}}},"required":["days","clients"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1AgencyOutbound"}},"/v1/linkedin/accounts":{"get":{"summary":"Connected LinkedIn provider accounts with their limits, what ran today, what is queued and recent failures","tags":["whatsapp","linkedin"],"parameters":[{"schema":{"type":"integer","minimum":1,"maximum":200},"in":"query","name":"limit","required":false,"description":"Page size; omitted returns the whole list"},{"schema":{"type":"string","pattern":"^\\d{1,9}$"},"in":"query","name":"cursor","required":false,"description":"Opaque: the `nextCursor` of the previous page"}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"items":{"type":"array","items":{"type":"object","properties":{"connectionId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"name":{"type":"string"},"health":{"type":"string"},"limits":{"type":"object","properties":{"visitPerDay":{"type":"integer","minimum":0,"maximum":100},"connectPerDay":{"type":"integer","minimum":0,"maximum":80},"messagePerDay":{"type":"integer","minimum":0,"maximum":100},"likePerDay":{"type":"integer","minimum":0,"maximum":100},"inmailPerDay":{"default":0,"type":"integer","minimum":0,"maximum":30},"minGapSec":{"type":"integer","minimum":20,"maximum":3600},"maxGapSec":{"type":"integer","minimum":30,"maximum":7200},"hours":{"type":"object","properties":{"startMin":{"type":"integer","minimum":0,"maximum":1440},"endMin":{"type":"integer","minimum":0,"maximum":1440},"weekdays":{"minItems":1,"type":"array","items":{"type":"integer","minimum":1,"maximum":7}},"timezone":{"type":"string","maxLength":64}},"required":["startMin","endMin","weekdays","timezone"],"additionalProperties":false}},"required":["visitPerDay","connectPerDay","messagePerDay","likePerDay","inmailPerDay","minGapSec","maxGapSec","hours"],"additionalProperties":false},"today":{"type":"object","properties":{"visit":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"connect":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"message":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"like_post":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"inmail":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["visit","connect","message","like_post","inmail"],"additionalProperties":false},"queued":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"failures":{"type":"array","items":{"type":"object","properties":{"at":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"kind":{"type":"string","enum":["visit","connect","message","like_post","inmail"]},"error":{"type":"string"}},"required":["at","kind","error"],"additionalProperties":false}}},"required":["connectionId","name","health","limits","today","queued","failures"],"additionalProperties":false}},"nextCursor":{"nullable":true,"type":"string"}},"required":["items","nextCursor"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1LinkedinAccounts"}},"/v1/linkedin/accounts/limits":{"put":{"summary":"Set an account's daily limits, spacing between actions and working hours (lower than the maximum only)","tags":["whatsapp","linkedin"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"connectionId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"limits":{"type":"object","properties":{"visitPerDay":{"type":"integer","minimum":0,"maximum":100},"connectPerDay":{"type":"integer","minimum":0,"maximum":80},"messagePerDay":{"type":"integer","minimum":0,"maximum":100},"likePerDay":{"type":"integer","minimum":0,"maximum":100},"inmailPerDay":{"default":0,"type":"integer","minimum":0,"maximum":30},"minGapSec":{"type":"integer","minimum":20,"maximum":3600},"maxGapSec":{"type":"integer","minimum":30,"maximum":7200},"hours":{"type":"object","properties":{"startMin":{"type":"integer","minimum":0,"maximum":1440},"endMin":{"type":"integer","minimum":0,"maximum":1440},"weekdays":{"minItems":1,"type":"array","items":{"type":"integer","minimum":1,"maximum":7}},"timezone":{"type":"string","maxLength":64}},"required":["startMin","endMin","weekdays","timezone"]}},"required":["visitPerDay","connectPerDay","messagePerDay","likePerDay","minGapSec","maxGapSec","hours"]}},"required":["connectionId","limits"]}}}},"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"ok":{"type":"boolean","enum":[true]}},"required":["ok"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"putV1LinkedinAccountsLimits"}},"/v1/linkedin/actions":{"get":{"summary":"LinkedIn actions of the sequences: queued, sent, failed or skipped, newest first","tags":["whatsapp","linkedin"],"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"query","name":"connectionId","required":false},{"schema":{"type":"string","enum":["queued","sent","failed","skipped","manual"]},"in":"query","name":"status","required":false},{"schema":{"default":50,"type":"integer","minimum":1,"maximum":100},"in":"query","name":"limit","required":false},{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"query","name":"cursor","required":false}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"items":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"connectionId":{"nullable":true,"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"profileId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"workflowId":{"nullable":true,"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"stepKey":{"nullable":true,"type":"string"},"kind":{"type":"string","enum":["visit","connect","message","like_post","inmail"]},"status":{"type":"string","enum":["queued","sent","failed","skipped","manual"]},"runAfter":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"doneAt":{"nullable":true,"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"error":{"nullable":true,"type":"string"},"createdAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"}},"required":["id","connectionId","profileId","workflowId","stepKey","kind","status","runAfter","doneAt","error","createdAt"],"additionalProperties":false}},"nextCursor":{"nullable":true,"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},"required":["items","nextCursor"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1LinkedinActions"}},"/v1/linkedin/sequences/{id}/steps":{"get":{"summary":"Per step of one sequence: LinkedIn actions run, accepted invitations, replies and failures","tags":["whatsapp","linkedin"],"parameters":[{"schema":{"type":"integer","minimum":1,"maximum":200},"in":"query","name":"limit","required":false,"description":"Page size; omitted returns the whole list"},{"schema":{"type":"string","pattern":"^\\d{1,9}$"},"in":"query","name":"cursor","required":false,"description":"Opaque: the `nextCursor` of the previous page"},{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"items":{"type":"array","items":{"type":"object","properties":{"stepKey":{"type":"string"},"kind":{"type":"string"},"queued":{"type":"number"},"sent":{"type":"number"},"failed":{"type":"number"},"skipped":{"type":"number"},"manual":{"type":"number"},"accepted":{"type":"number"},"replied":{"type":"number"}},"required":["stepKey","kind","queued","sent","failed","skipped","manual","accepted","replied"],"additionalProperties":false}},"nextCursor":{"nullable":true,"type":"string"}},"required":["items","nextCursor"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1LinkedinSequencesByIdSteps"}},"/v1/linkedin/messages":{"post":{"summary":"Compose a LinkedIn message or InMail to a prospect. Queued like a sequence step: do-not-contact gate, account limits and spacing apply; becomes a task when no account is connected","tags":["whatsapp","linkedin"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"profileId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"text":{"type":"string","minLength":1,"maxLength":4000},"inmail":{"default":false,"type":"boolean"},"idempotencyKey":{"type":"string","minLength":1,"maxLength":200}},"required":["profileId","text"]}}}},"responses":{"202":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"status":{"type":"string","enum":["queued","manual","skipped"]},"reason":{"nullable":true,"type":"string"}},"required":["id","status","reason"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"postV1LinkedinMessages"}},"/v1/whatsapp/templates":{"get":{"summary":"Registered WhatsApp templates with their approval state","tags":["whatsapp","linkedin"],"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"query","name":"connectionId","required":false},{"schema":{"type":"string","enum":["draft","pending","approved","rejected","paused","disabled"]},"in":"query","name":"status","required":false},{"schema":{"type":"integer","minimum":1,"maximum":200},"in":"query","name":"limit","required":false,"description":"Page size; omitted returns the whole list"},{"schema":{"type":"string","pattern":"^\\d{1,9}$"},"in":"query","name":"cursor","required":false,"description":"Opaque: the `nextCursor` of the previous page"}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"items":{"type":"array","items":{"$ref":"#/components/schemas/ItemsItem135"}},"nextCursor":{"nullable":true,"type":"string"}},"required":["items","nextCursor"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1WhatsappTemplates"},"post":{"summary":"Register a WhatsApp template (already approved: give its provider id; otherwise it is submitted for approval) and create the Hermeticor template campaigns and flows use","tags":["whatsapp","linkedin"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"connectionId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"name":{"type":"string","pattern":"^[a-z0-9_]{1,200}$"},"language":{"type":"string","pattern":"^[a-z]{2}(_[A-Z]{2})?$"},"category":{"type":"string","enum":["marketing","utility","authentication"]},"body":{"type":"string","minLength":1,"maxLength":1024},"variables":{"default":[],"maxItems":20,"type":"array","items":{"type":"string","maxLength":200}},"providerTemplateId":{"type":"string","maxLength":200},"submit":{"default":false,"type":"boolean"},"header":{"type":"object","properties":{"format":{"type":"string","enum":["text","image","video","document"]},"text":{"type":"string","maxLength":60},"url":{"type":"string","format":"uri"},"handle":{"type":"string","maxLength":1000}},"required":["format"]},"footer":{"type":"string","maxLength":60},"buttons":{"default":[],"maxItems":10,"type":"array","items":{"$ref":"#/components/schemas/ButtonsItem2"}}},"required":["connectionId","name","language","category","body"]}}}},"responses":{"201":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ItemsItem135"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"postV1WhatsappTemplates"}},"/v1/whatsapp/templates/{id}":{"get":{"summary":"One registered template with its approval status (refresh=true pulls the latest status from the provider first)","tags":["whatsapp","linkedin"],"parameters":[{"schema":{"type":"string","enum":["true","false"]},"in":"query","name":"refresh","required":false},{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ItemsItem135"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1WhatsappTemplatesById"},"patch":{"summary":"Edit a draft or rejected template (any field) or an approved one (merge values only); the linked Hermeticor template follows","tags":["whatsapp","linkedin"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"body":{"type":"string","minLength":1,"maxLength":1024},"variables":{"maxItems":20,"type":"array","items":{"type":"string","maxLength":200}},"category":{"type":"string","enum":["marketing","utility","authentication"]},"language":{"type":"string","pattern":"^[a-z]{2}(_[A-Z]{2})?$"},"header":{"nullable":true,"type":"object","properties":{"format":{"type":"string","enum":["text","image","video","document"]},"text":{"type":"string","maxLength":60},"url":{"type":"string","format":"uri"},"handle":{"type":"string","maxLength":1000}},"required":["format"]},"footer":{"nullable":true,"type":"string","maxLength":60},"buttons":{"maxItems":10,"type":"array","items":{"$ref":"#/components/schemas/ButtonsItem2"}}}}}}},"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ItemsItem135"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"patchV1WhatsappTemplatesById"},"delete":{"summary":"Delete a template at the provider and here (localOnly=true skips the provider call); the linked Hermeticor template is archived","tags":["whatsapp","linkedin"],"parameters":[{"schema":{"default":"false","type":"string","enum":["true","false"]},"in":"query","name":"localOnly","required":false},{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"ok":{"type":"boolean","enum":[true]}},"required":["ok"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"deleteV1WhatsappTemplatesById"}},"/v1/whatsapp/templates/{id}/submit":{"post":{"summary":"Send a draft or rejected template to the provider for approval","tags":["whatsapp","linkedin"],"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ItemsItem135"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"postV1WhatsappTemplatesByIdSubmit"}},"/v1/whatsapp/templates/sync":{"post":{"summary":"Pull approval status from the provider into the registered templates","tags":["whatsapp","linkedin"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PostV1DeliverabilitySeedsBody"}}}},"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"updated":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"imported":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["updated","imported"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"postV1WhatsappTemplatesSync"}},"/v1/whatsapp/stats":{"get":{"summary":"WhatsApp delivery numbers per day (accepted, delivered, failed, blocked, replies) with the reasons messages were blocked; default last 30 days","tags":["whatsapp","linkedin"],"parameters":[{"schema":{"type":"string","format":"date-time"},"in":"query","name":"from","required":false},{"schema":{"type":"string","format":"date-time"},"in":"query","name":"to","required":false}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"days":{"type":"array","items":{"type":"object","properties":{"accepted":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"delivered":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"failed":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"blocked":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"replies":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"day":{"type":"string"}},"required":["accepted","delivered","failed","blocked","replies","day"],"additionalProperties":false}},"totals":{"type":"object","properties":{"accepted":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"delivered":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"failed":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"blocked":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"replies":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["accepted","delivered","failed","blocked","replies"],"additionalProperties":false},"blockReasons":{"$ref":"#/components/schemas/BlockReasons"}},"required":["days","totals","blockReasons"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1WhatsappStats"}},"/v1/whatsapp/test-send":{"post":{"summary":"Send a test to your own number. Requires both confirmations; records the opt-in as given by the person who clicked; STOP and suppression still win","tags":["whatsapp","linkedin"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"connectionId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"phone":{"type":"string","pattern":"^\\+[1-9]\\d{6,14}$"},"templateId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"text":{"type":"string","minLength":1,"maxLength":4096},"ownNumberConfirmed":{"type":"boolean","enum":[true]},"optInConfirmed":{"type":"boolean","enum":[true]},"idempotencyKey":{"type":"string","minLength":1,"maxLength":200}},"required":["connectionId","phone","ownNumberConfirmed","optInConfirmed"]}}}},"responses":{"202":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PostV1MessagesSendResponse"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"postV1WhatsappTestSend"}},"/v1/whatsapp/window/{id}":{"get":{"summary":"Is the 24-hour session window open for this contact (can free text be sent)?","tags":["whatsapp","linkedin"],"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"open":{"type":"boolean"},"closesAt":{"nullable":true,"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"}},"required":["open","closesAt"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1WhatsappWindowById"}},"/v1/whatsapp/send":{"post":{"summary":"Send one WhatsApp message: an approved template, or free text inside the 24-hour window. Consent, suppression and the window are enforced; needs an idempotencyKey (body) or Idempotency-Key header","tags":["whatsapp","linkedin"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"profileId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"connectionId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"templateId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"text":{"type":"string","minLength":1,"maxLength":4096},"idempotencyKey":{"type":"string","minLength":1,"maxLength":200}},"required":["profileId"]}}}},"responses":{"202":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PostV1MessagesSendResponse"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"postV1WhatsappSend"}},"/v1/whatsapp/connections/{connectionId}/account":{"get":{"summary":"Business and phone-number status, messaging-limit tier and the raw quality rating, read live from Meta","tags":["whatsapp","linkedin"],"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"connectionId","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"displayPhoneNumber":{"nullable":true,"type":"string"},"verifiedName":{"nullable":true,"type":"string"},"qualityRating":{"nullable":true,"type":"string"},"messagingLimitTier":{"nullable":true,"type":"string"},"phoneStatus":{"nullable":true,"type":"string"},"nameStatus":{"nullable":true,"type":"string"},"accountReviewStatus":{"nullable":true,"type":"string"},"businessVerificationStatus":{"nullable":true,"type":"string"}},"required":["displayPhoneNumber","verifiedName","qualityRating","messagingLimitTier","phoneStatus","nameStatus","accountReviewStatus","businessVerificationStatus"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1WhatsappConnectionsByConnectionIdAccount"}},"/v1/whatsapp/flows":{"get":{"summary":"WhatsApp Flows","tags":["whatsapp","linkedin"],"parameters":[{"schema":{"type":"integer","minimum":1,"maximum":200},"in":"query","name":"limit","required":false,"description":"Page size; omitted returns the whole list"},{"schema":{"type":"string","pattern":"^\\d{1,9}$"},"in":"query","name":"cursor","required":false,"description":"Opaque: the `nextCursor` of the previous page"}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"items":{"type":"array","items":{"$ref":"#/components/schemas/ItemsItem136"}},"nextCursor":{"nullable":true,"type":"string"}},"required":["items","nextCursor"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1WhatsappFlows"},"post":{"summary":"Create a Flow (draft) from its Flow JSON","tags":["whatsapp","linkedin"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"connectionId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"name":{"type":"string","minLength":1,"maxLength":200},"categories":{"$ref":"#/components/schemas/Categories"},"flowJson":{"type":"object","additionalProperties":{}},"firstScreen":{"type":"string","minLength":1,"maxLength":100},"cta":{"type":"string","minLength":1,"maxLength":30},"body":{"type":"string","minLength":1,"maxLength":1024},"header":{"nullable":true,"type":"string","maxLength":60},"templateName":{"nullable":true,"type":"string","maxLength":512},"templateLanguage":{"nullable":true,"type":"string","maxLength":15}},"required":["connectionId","name","flowJson","firstScreen","cta","body"]}}}},"responses":{"201":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ItemsItem136"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"postV1WhatsappFlows"}},"/v1/whatsapp/flows/{id}":{"get":{"summary":"One Flow","tags":["whatsapp","linkedin"],"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ItemsItem136"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1WhatsappFlowsById"},"patch":{"summary":"Edit a Flow (its JSON only before publishing)","tags":["whatsapp","linkedin"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"connectionId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"name":{"type":"string","minLength":1,"maxLength":200},"categories":{"minItems":1,"maxItems":5,"type":"array","items":{"type":"string","enum":["SIGN_UP","SIGN_IN","APPOINTMENT_BOOKING","LEAD_GENERATION","CONTACT_US","CUSTOMER_SUPPORT","SURVEY","OTHER"]}},"flowJson":{"type":"object","additionalProperties":{}},"firstScreen":{"type":"string","minLength":1,"maxLength":100},"cta":{"type":"string","minLength":1,"maxLength":30},"body":{"type":"string","minLength":1,"maxLength":1024},"header":{"nullable":true,"type":"string","maxLength":60},"templateName":{"nullable":true,"type":"string","maxLength":512},"templateLanguage":{"nullable":true,"type":"string","maxLength":15}}}}}},"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ItemsItem136"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"patchV1WhatsappFlowsById"}},"/v1/whatsapp/flows/{id}/publish":{"post":{"summary":"Upload the Flow JSON to Meta and publish it (validation errors are returned on the flow)","tags":["whatsapp","linkedin"],"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ItemsItem136"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"postV1WhatsappFlowsByIdPublish"}},"/v1/whatsapp/flows/{id}/deprecate":{"post":{"summary":"Deprecate a published Flow at Meta (it can no longer be sent)","tags":["whatsapp","linkedin"],"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ItemsItem136"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"postV1WhatsappFlowsByIdDeprecate"}},"/v1/whatsapp/flows/{id}/run":{"post":{"summary":"Send a published Flow to one contact. WhatsApp consent (marketing) and suppression apply; outside the 24-hour window the flow template is used. Needs an idempotency key","tags":["whatsapp","linkedin"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"profileId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"purpose":{"default":"marketing","type":"string","enum":["marketing","transactional"]},"idempotencyKey":{"type":"string","minLength":1,"maxLength":200}},"required":["profileId"]}}}},"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"202":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PostV1WhatsappFlowsByIdRunResponse"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"postV1WhatsappFlowsByIdRun"}},"/v1/whatsapp/flows/{id}/runs":{"get":{"summary":"Who was sent the Flow and what they answered","tags":["whatsapp","linkedin"],"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"query","name":"profileId","required":false},{"schema":{"type":"integer","minimum":1,"maximum":200},"in":"query","name":"limit","required":false,"description":"Page size; omitted returns the whole list"},{"schema":{"type":"string","pattern":"^\\d{1,9}$"},"in":"query","name":"cursor","required":false,"description":"Opaque: the `nextCursor` of the previous page"},{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"items":{"type":"array","items":{"$ref":"#/components/schemas/PostV1WhatsappFlowsByIdRunResponse"}},"nextCursor":{"nullable":true,"type":"string"}},"required":["items","nextCursor"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1WhatsappFlowsByIdRuns"}},"/client/push-tokens":{"post":{"summary":"Register a device push token for a profile (iOS, Android, or a web push subscription)","tags":["push"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"type":{"type":"string","enum":["push-token"]},"attributes":{"type":"object","properties":{"token":{"type":"string","minLength":1,"maxLength":4096},"platform":{"type":"string","enum":["ios","android","web"]},"vendor":{"type":"string","enum":["apns","fcm","expo","web_push"]},"enablement_status":{"type":"string","enum":["AUTHORIZED","DENIED","UNAUTHORIZED","PROVISIONAL","NOT_DETERMINED"]},"background":{"type":"string","enum":["AVAILABLE","DENIED","RESTRICTED"]},"device_metadata":{"type":"object","properties":{"device_id":{"type":"string","maxLength":200},"klaviyo_sdk":{"type":"string","maxLength":200},"sdk_version":{"type":"string","maxLength":200},"device_model":{"type":"string","maxLength":200},"os_name":{"type":"string","maxLength":200},"os_version":{"type":"string","maxLength":200},"app_name":{"type":"string","maxLength":200},"app_version":{"type":"string","maxLength":200},"app_build":{"type":"string","maxLength":200},"app_id":{"type":"string","maxLength":200},"environment":{"type":"string","enum":["sandbox","production"]}},"additionalProperties":{}},"profile":{"$ref":"#/components/schemas/Profile3"}},"required":["token","platform","vendor","profile"]}},"required":["attributes"]}},"required":["data"]}}}},"responses":{"202":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"ok":{"type":"boolean","enum":[true]}},"required":["ok"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"postClientPushTokens"}},"/client/push-token-unregister":{"post":{"summary":"Remove a device push token (logout)","tags":["push"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"type":{"type":"string","enum":["push-token-unregister","push-token"]},"attributes":{"type":"object","properties":{"token":{"type":"string","minLength":1,"maxLength":4096},"platform":{"type":"string","enum":["ios","android","web"]},"vendor":{"type":"string","enum":["apns","fcm","expo","web_push"]},"profile":{"$ref":"#/components/schemas/Profile3"}},"required":["token","vendor"]}},"required":["attributes"]}},"required":["data"]}}}},"responses":{"202":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"ok":{"type":"boolean","enum":[true]}},"required":["ok"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"postClientPushTokenUnregister"}},"/client/push-config":{"get":{"summary":"The workspace's VAPID public key, for browsers subscribing to web push","tags":["push"],"parameters":[{"schema":{"type":"string","maxLength":200},"in":"query","name":"company_id","required":false},{"schema":{"type":"string","maxLength":200},"in":"query","name":"k","required":false}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"vapidPublicKey":{"nullable":true,"type":"string"}},"required":["vapidPublicKey"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getClientPushConfig"}},"/v1/push-tokens":{"get":{"summary":"Registered devices, newest first; filter by profile, vendor or validity","tags":["push"],"parameters":[{"schema":{"default":50,"type":"integer","minimum":1,"maximum":200},"in":"query","name":"limit","required":false},{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"query","name":"cursor","required":false},{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"query","name":"profileId","required":false},{"schema":{"type":"string","enum":["apns","fcm","expo","web_push"]},"in":"query","name":"vendor","required":false},{"schema":{"type":"string","enum":["true","false"]},"in":"query","name":"valid","required":false}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"items":{"$ref":"#/components/schemas/Items42"},"nextCursor":{"nullable":true,"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},"required":["items","nextCursor"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1PushTokens"},"post":{"summary":"Register a device for a profile (server side; the SDKs use /client/push-tokens)","tags":["push"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"profileId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"token":{"type":"string","minLength":1,"maxLength":4096},"platform":{"type":"string","enum":["ios","android","web"]},"vendor":{"type":"string","enum":["apns","fcm","expo","web_push"]},"appId":{"type":"string","maxLength":200},"environment":{"default":"production","type":"string","enum":["sandbox","production"]},"enablementStatus":{"default":"AUTHORIZED","type":"string","enum":["AUTHORIZED","DENIED","UNAUTHORIZED","PROVISIONAL","NOT_DETERMINED"]},"background":{"default":"AVAILABLE","type":"string","enum":["AVAILABLE","DENIED","RESTRICTED"]},"deviceMetadata":{"default":{},"type":"object","additionalProperties":{}}},"required":["profileId","token","platform","vendor"]}}}},"responses":{"201":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ItemsItem137"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"postV1PushTokens"}},"/v1/push-tokens/{id}":{"get":{"summary":"One registered device; `profileId` names the profile it belongs to","tags":["push"],"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ItemsItem137"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1PushTokensById"},"delete":{"summary":"Delete a registered device","tags":["push"],"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"ok":{"type":"boolean","enum":[true]}},"required":["ok"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"deleteV1PushTokensById"}},"/v1/profiles/{id}/push-tokens":{"get":{"summary":"The devices registered for one profile, including ones the provider rejected","tags":["push"],"parameters":[{"schema":{"type":"integer","minimum":1,"maximum":200},"in":"query","name":"limit","required":false,"description":"Page size; omitted returns the whole list"},{"schema":{"type":"string","pattern":"^\\d{1,9}$"},"in":"query","name":"cursor","required":false,"description":"Opaque: the `nextCursor` of the previous page"},{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"items":{"$ref":"#/components/schemas/Items42"},"nextCursor":{"nullable":true,"type":"string"}},"required":["items","nextCursor"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1ProfilesByIdPushTokens"}},"/v1/push/vapid-keys":{"post":{"summary":"Generate a VAPID key pair for a web push connection. The private key is returned once and is not stored here: put it in the connection.","tags":["push"],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"publicKey":{"type":"string"},"privateKey":{"type":"string"}},"required":["publicKey","privateKey"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"postV1PushVapidKeys"}},"/v1/push/stats":{"get":{"summary":"Push sends, deliveries, failures, opens and retired devices for a window","tags":["push"],"parameters":[{"schema":{"type":"string","format":"date-time"},"in":"query","name":"from","required":false},{"schema":{"type":"string","format":"date-time"},"in":"query","name":"to","required":false}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetV1PushStatsResponse"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1PushStats"}},"/v1/push/test-send":{"post":{"summary":"Send a push template (with a flow step's extras) to a test profile's devices or one pasted device token, through the normal send checks","tags":["push"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"profileId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"pushToken":{"$ref":"#/components/schemas/PushToken"},"templateId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"push":{"$ref":"#/components/schemas/Push"},"connectionId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"purpose":{"default":"marketing","type":"string","enum":["marketing","transactional","operational"]}},"required":["templateId"]}}}},"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PostV1TemplatesByIdTestSendResponse"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"postV1PushTestSend"}},"/v1/campaigns/{id}/push":{"get":{"summary":"A push campaign's title, body and extras (image, link, data, badge, sound, TTL, per-platform overrides)","tags":["push","campaigns"],"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetV1CampaignsByIdPushResponse"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1CampaignsByIdPush"},"put":{"summary":"Set the content of a draft push campaign","tags":["push","campaigns"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"title":{"type":"string","maxLength":200},"body":{"type":"string","minLength":1,"maxLength":4000},"extras":{"default":{},"type":"object","properties":{"imageUrl":{"type":"string","maxLength":2000},"url":{"type":"string","maxLength":2000},"data":{"type":"object","additionalProperties":{"type":"string","maxLength":1000}},"badge":{"type":"integer","minimum":0,"maximum":99999},"sound":{"type":"string","maxLength":100},"ttlSeconds":{"type":"integer","minimum":0,"maximum":2419200},"priority":{"type":"string","enum":["high","normal"]},"collapseKey":{"type":"string","maxLength":64},"ios":{"$ref":"#/components/schemas/Ios"},"android":{"$ref":"#/components/schemas/Ios"},"web":{"$ref":"#/components/schemas/Ios"}}}},"required":["title","body"]}}}},"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetV1CampaignsByIdPushResponse"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"putV1CampaignsByIdPush"}},"/v1/campaigns/{id}/push-stats":{"get":{"summary":"Push numbers of one campaign: sent, delivered, failed, opened, devices retired, and why sends were held back","tags":["push","campaigns"],"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetV1PushStatsResponse"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1CampaignsByIdPushStats"}},"/v1/hooks/subscribe":{"post":{"summary":"Subscribe a Zapier/Make REST hook to a trigger","tags":["hooks"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"trigger":{"type":"string","enum":["new_reply","profile_created","campaign_sent"]},"targetUrl":{"type":"string","maxLength":2048,"format":"uri"}},"required":["trigger","targetUrl"]}}}},"responses":{"201":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PostV1WebhooksEndpointsResponse"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"postV1HooksSubscribe"}},"/v1/hooks/{id}":{"delete":{"summary":"Unsubscribe a REST hook","tags":["hooks"],"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"ok":{"type":"boolean","enum":[true]}},"required":["ok"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"deleteV1HooksById"}},"/v1/hooks/triggers/{trigger}/sample":{"get":{"summary":"Sample payload used by Zapier/Make to map fields","tags":["hooks"],"parameters":[{"schema":{"type":"string","enum":["new_reply","profile_created","campaign_sent"]},"in":"path","name":"trigger","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"array","items":{"type":"object","additionalProperties":{}}}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1HooksTriggersByTriggerSample"}},"/v1/agency":{"get":{"tags":["agency"],"security":[{"session":[]}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"nullable":true,"type":"object","properties":{"organizationId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"name":{"type":"string"},"role":{"type":"string"},"clients":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"name":{"type":"string"},"timezone":{"type":"string"},"metrics":{"nullable":true,"type":"object","properties":{"sent30d":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"clicked30d":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"activeFlows":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"activeCampaigns":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["sent30d","clicked30d","activeFlows","activeCampaigns"],"additionalProperties":false},"status":{"default":"active","type":"string","enum":["active","paused","pending_deletion"]},"deleteAfter":{"default":null,"nullable":true,"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"quota":{"default":null,"nullable":true,"type":"object","properties":{"sendsEmail":{"nullable":true,"type":"integer","minimum":0,"maximum":9007199254740991},"sendsSms":{"nullable":true,"type":"integer","minimum":0,"maximum":9007199254740991}},"required":["sendsEmail","sendsSms"],"additionalProperties":false},"usage":{"default":null,"nullable":true,"type":"object","properties":{"period":{"type":"string","pattern":"^\\d{4}-\\d{2}$"},"sends_email":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"sends_sms":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"sends_whatsapp":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"sends_push":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"sends_postcard":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"ai_tokens":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["period","sends_email","sends_sms","sends_whatsapp","sends_push","sends_postcard","ai_tokens"],"additionalProperties":false},"reputation":{"default":null,"nullable":true,"type":"object","properties":{"sent30d":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"bounceRate":{"type":"number"},"complaintRate":{"type":"number"},"rating":{"type":"string","enum":["good","watch","poor","unknown"]}},"required":["sent30d","bounceRate","complaintRate","rating"],"additionalProperties":false}},"required":["id","name","timezone","metrics","status","deleteAfter","quota","usage","reputation"],"additionalProperties":false}}},"required":["organizationId","name","role","clients"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1Agency"}},"/v1/agency/enable":{"post":{"summary":"Turn the current workspace's organization into an agency; the caller becomes its owner","tags":["agency"],"security":[{"session":[]}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"ok":{"type":"boolean","enum":[true]}},"required":["ok"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"postV1AgencyEnable"}},"/v1/agency/clients":{"post":{"tags":["agency"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":200},"timezone":{"type":"string","maxLength":64}},"required":["name"]}}}},"security":[{"session":[]}],"responses":{"201":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ListsItem"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"postV1AgencyClients"}},"/v1/agency/clients/{workspaceId}":{"get":{"summary":"One client: lifecycle state, send quota, this month's usage and 30-day reputation","tags":["agency"],"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"workspaceId","required":true}],"security":[{"session":[]}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"name":{"type":"string"},"status":{"type":"string","enum":["active","paused","pending_deletion"]},"pausedAt":{"nullable":true,"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"pausedReason":{"nullable":true,"type":"string"},"deleteAfter":{"nullable":true,"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"quota":{"$ref":"#/components/schemas/Quota"},"usage":{"$ref":"#/components/schemas/ItemsItem102"},"reputation":{"type":"object","properties":{"sent30d":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"bounceRate":{"type":"number"},"complaintRate":{"type":"number"},"rating":{"type":"string","enum":["good","watch","poor","unknown"]}},"required":["sent30d","bounceRate","complaintRate","rating"],"additionalProperties":false}},"required":["id","name","status","pausedAt","pausedReason","deleteAfter","quota","usage","reputation"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1AgencyClientsByWorkspaceId"},"patch":{"summary":"Rename a client workspace from the agency","tags":["agency"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":120}},"required":["name"]}}}},"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"workspaceId","required":true}],"security":[{"session":[]}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ListsItem"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"patchV1AgencyClientsByWorkspaceId"}},"/v1/agency/clients/{workspaceId}/pause":{"post":{"summary":"Pause a client workspace: every send request is refused until it is resumed","tags":["agency"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"reason":{"type":"string","maxLength":300}}}}}},"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"workspaceId","required":true}],"security":[{"session":[]}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"ok":{"type":"boolean","enum":[true]}},"required":["ok"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"postV1AgencyClientsByWorkspaceIdPause"}},"/v1/agency/clients/{workspaceId}/resume":{"post":{"summary":"Resume a paused client (also cancels a pending deletion)","tags":["agency"],"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"workspaceId","required":true}],"security":[{"session":[]}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"ok":{"type":"boolean","enum":[true]}},"required":["ok"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"postV1AgencyClientsByWorkspaceIdResume"}},"/v1/agency/clients/{workspaceId}/delete":{"post":{"summary":"Schedule deletion after a grace period; the client is paused immediately and resume cancels it","tags":["agency"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"graceDays":{"default":30,"type":"integer","minimum":1,"maximum":90}}}}}},"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"workspaceId","required":true}],"security":[{"session":[]}],"responses":{"202":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"deleteAfter":{"type":"string"}},"required":["deleteAfter"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"postV1AgencyClientsByWorkspaceIdDelete"}},"/v1/agency/clients/{workspaceId}/quota":{"put":{"summary":"Monthly send cap for one client (null lifts it); it can only tighten the client's plan limit","tags":["agency"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"sendsEmail":{"nullable":true,"type":"integer","minimum":0,"maximum":9007199254740991},"sendsSms":{"nullable":true,"type":"integer","minimum":0,"maximum":9007199254740991}},"required":["sendsEmail","sendsSms"]}}}},"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"workspaceId","required":true}],"security":[{"session":[]}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Quota"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"putV1AgencyClientsByWorkspaceIdQuota"}},"/v1/agency/clients/{workspaceId}/modules":{"get":{"summary":"Which modules this client may use (the rest are switched off)","tags":["agency"],"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"workspaceId","required":true}],"security":[{"session":[]}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetV1AgencyClientsByWorkspaceIdModulesResponse"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1AgencyClientsByWorkspaceIdModules"},"put":{"summary":"Switch client modules off or on; takes effect within 30 seconds on every instance","tags":["agency"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"disabled":{"maxItems":20,"type":"array","items":{"type":"string","maxLength":40}}},"required":["disabled"]}}}},"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"workspaceId","required":true}],"security":[{"session":[]}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetV1AgencyClientsByWorkspaceIdModulesResponse"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"putV1AgencyClientsByWorkspaceIdModules"}},"/v1/agency/members":{"get":{"tags":["agency"],"parameters":[{"schema":{"type":"integer","minimum":1,"maximum":200},"in":"query","name":"limit","required":false,"description":"Page size; omitted returns the whole list"},{"schema":{"type":"string","pattern":"^\\d{1,9}$"},"in":"query","name":"cursor","required":false,"description":"Opaque: the `nextCursor` of the previous page"}],"security":[{"session":[]}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"items":{"type":"array","items":{"$ref":"#/components/schemas/ItemsItem138"}},"nextCursor":{"nullable":true,"type":"string"}},"required":["items","nextCursor"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1AgencyMembers"},"post":{"summary":"Add or re-role agency staff; the role cascades into every client workspace","tags":["agency"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"email":{"type":"string","format":"email","pattern":"^(?:[A-Za-z0-9_'+\\-]+\\.)*[A-Za-z0-9_'+\\-]*[A-Za-z0-9_+-]@(?:[A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$"},"role":{"type":"string","enum":["admin","marketer","sales","analyst","viewer"]}},"required":["email","role"]}}}},"security":[{"session":[]}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"ok":{"type":"boolean","enum":[true]}},"required":["ok"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"postV1AgencyMembers"}},"/v1/agency/members/{userId}":{"delete":{"tags":["agency"],"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"userId","required":true}],"security":[{"session":[]}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"ok":{"type":"boolean","enum":[true]}},"required":["ok"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"deleteV1AgencyMembersByUserId"},"get":{"tags":["agency"],"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"userId","required":true}],"security":[{"session":[]}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ItemsItem138"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1AgencyMembersByUserId"}},"/v1/agency/copy-template":{"post":{"summary":"Copy a template (current version) from the current workspace into a client workspace","tags":["agency"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PostV1AgencyCopyTemplateBody"}}}},"security":[{"session":[]}],"responses":{"201":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PostV1AgencyCopyTemplateResponse"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"postV1AgencyCopyTemplate"}},"/v1/agency/copy-workflow":{"post":{"summary":"Copy a flow into a client workspace as a draft. Template/segment/connection references do not travel: the returned validation lists what to re-link.","tags":["agency"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PostV1AgencyCopyTemplateBody"}}}},"security":[{"session":[]}],"responses":{"201":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PostV1AgencyCopyTemplateResponse"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"postV1AgencyCopyWorkflow"}},"/v1/workspace/ip-allowlist":{"get":{"tags":["workspace"],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetV1WorkspaceIpAllowlistResponse"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1WorkspaceIpAllowlist"},"put":{"summary":"Restrict sessions and secret API keys to these IPs/CIDRs (empty = open). Refuses a list that excludes the caller.","tags":["workspace"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"entries":{"maxItems":100,"type":"array","items":{"type":"string","minLength":1,"maxLength":64}}},"required":["entries"]}}}},"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetV1WorkspaceIpAllowlistResponse"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"putV1WorkspaceIpAllowlist"}},"/v1/siem":{"get":{"tags":["audit"],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"url":{"type":"string"},"enabled":{"type":"boolean"},"lastPushAt":{"nullable":true,"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"lastError":{"nullable":true,"type":"string"},"configured":{"type":"boolean","enum":[true]}},"required":["id","url","enabled","lastPushAt","lastError","configured"],"additionalProperties":false},{"type":"object","properties":{"configured":{"type":"boolean","enum":[false]}},"required":["configured"],"additionalProperties":false}]}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1Siem"},"put":{"summary":"Push the audit stream (NDJSON, HMAC-signed with the secret) to an https endpoint","tags":["audit"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"url":{"type":"string","format":"uri"},"secret":{"type":"string","minLength":16,"maxLength":200},"enabled":{"default":true,"type":"boolean"}},"required":["url","secret"]}}}},"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"url":{"type":"string"},"enabled":{"type":"boolean"},"lastPushAt":{"nullable":true,"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"lastError":{"nullable":true,"type":"string"}},"required":["id","url","enabled","lastPushAt","lastError"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"putV1Siem"},"delete":{"tags":["audit"],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"ok":{"type":"boolean","enum":[true]}},"required":["ok"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"deleteV1Siem"}},"/v1/commerce/stores":{"get":{"tags":["commerce"],"parameters":[{"schema":{"default":50,"type":"integer","minimum":1,"maximum":200},"in":"query","name":"limit","required":false},{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"query","name":"cursor","required":false}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"items":{"type":"array","items":{"$ref":"#/components/schemas/ItemsItem139"}},"nextCursor":{"nullable":true,"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},"required":["items","nextCursor"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1CommerceStores"},"post":{"tags":["commerce"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":200},"domain":{"type":"string","maxLength":253},"currency":{"type":"string","minLength":3,"maxLength":3},"connectionId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"listId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"platform":{"type":"string","maxLength":100},"email":{"type":"string","format":"email","pattern":"^(?:[A-Za-z0-9_'+\\-]+\\.)*[A-Za-z0-9_'+\\-]*[A-Za-z0-9_+-]@(?:[A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$"},"phone":{"type":"string","maxLength":40},"address":{"$ref":"#/components/schemas/Address"},"timezone":{"type":"string","maxLength":64},"primaryLocale":{"type":"string","maxLength":16},"moneyFormat":{"type":"string","maxLength":32},"isSyncing":{"type":"boolean"}},"required":["name"]}}}},"responses":{"201":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ItemsItem139"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"postV1CommerceStores"}},"/v1/commerce/activate":{"post":{"summary":"Turn ecommerce on: creates the first store if the workspace has none (safe to repeat)","tags":["commerce"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":200},"currency":{"type":"string","minLength":3,"maxLength":3}}}}}},"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"store":{"$ref":"#/components/schemas/ItemsItem139"},"created":{"type":"boolean"}},"required":["store","created"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"postV1CommerceActivate"}},"/v1/commerce/stores/{storeId}":{"get":{"tags":["commerce"],"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"storeId","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ItemsItem139"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1CommerceStoresByStoreId"},"patch":{"tags":["commerce"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":200},"domain":{"type":"string","maxLength":253},"currency":{"type":"string","minLength":3,"maxLength":3},"connectionId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"listId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"platform":{"type":"string","maxLength":100},"email":{"type":"string","format":"email","pattern":"^(?:[A-Za-z0-9_'+\\-]+\\.)*[A-Za-z0-9_'+\\-]*[A-Za-z0-9_+-]@(?:[A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$"},"phone":{"type":"string","maxLength":40},"address":{"$ref":"#/components/schemas/Address"},"timezone":{"type":"string","maxLength":64},"primaryLocale":{"type":"string","maxLength":16},"moneyFormat":{"type":"string","maxLength":32},"isSyncing":{"type":"boolean"}}}}}},"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"storeId","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ItemsItem139"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"patchV1CommerceStoresByStoreId"},"delete":{"tags":["commerce"],"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"storeId","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"ok":{"type":"boolean","enum":[true]}},"required":["ok"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"deleteV1CommerceStoresByStoreId"}},"/v1/commerce/stores/{storeId}/stats":{"get":{"tags":["commerce"],"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"storeId","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"orders":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"revenueMinor":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"refundedMinor":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"aovMinor":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"openCarts":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"abandonedCarts":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["orders","revenueMinor","refundedMinor","aovMinor","openCarts","abandonedCarts"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1CommerceStoresByStoreIdStats"}},"/v1/commerce/stores/{storeId}/bought-together":{"get":{"summary":"Pairs of products that are bought in the same order","tags":["commerce"],"parameters":[{"schema":{"default":20,"type":"integer","minimum":1,"maximum":100},"in":"query","name":"limit","required":false},{"schema":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}(?:[T ]\\d{2}:\\d{2}(?::\\d{2}(?:\\.\\d+)?)?(?:Z|[+-]\\d{2}:?\\d{2})?)?$","format":"date"},"in":"query","name":"since","required":false},{"schema":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}(?:[T ]\\d{2}:\\d{2}(?::\\d{2}(?:\\.\\d+)?)?(?:Z|[+-]\\d{2}:?\\d{2})?)?$","format":"date"},"in":"query","name":"until","required":false},{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"storeId","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"items":{"type":"array","items":{"type":"object","properties":{"productA":{"type":"string"},"titleA":{"nullable":true,"type":"string"},"productB":{"type":"string"},"titleB":{"nullable":true,"type":"string"},"orders":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["productA","titleA","productB","titleB","orders"],"additionalProperties":false}}},"required":["items"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1CommerceStoresByStoreIdBoughtTogether"}},"/v1/commerce/stores/{storeId}/product-rankings":{"get":{"summary":"Best-selling products across the whole store","tags":["commerce"],"parameters":[{"schema":{"default":"revenue","type":"string","enum":["revenue","units"]},"in":"query","name":"by","required":false},{"schema":{"default":20,"type":"integer","minimum":1,"maximum":100},"in":"query","name":"limit","required":false},{"schema":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}(?:[T ]\\d{2}:\\d{2}(?::\\d{2}(?:\\.\\d+)?)?(?:Z|[+-]\\d{2}:?\\d{2})?)?$","format":"date"},"in":"query","name":"since","required":false},{"schema":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}(?:[T ]\\d{2}:\\d{2}(?::\\d{2}(?:\\.\\d+)?)?(?:Z|[+-]\\d{2}:?\\d{2})?)?$","format":"date"},"in":"query","name":"until","required":false},{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"storeId","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"items":{"type":"array","items":{"type":"object","properties":{"productId":{"type":"string"},"title":{"nullable":true,"type":"string"},"units":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"revenueMinor":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"orders":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["productId","title","units","revenueMinor","orders"],"additionalProperties":false}}},"required":["items"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1CommerceStoresByStoreIdProductRankings"}},"/v1/commerce/orders":{"get":{"tags":["commerce"],"parameters":[{"schema":{"default":50,"type":"integer","minimum":1,"maximum":200},"in":"query","name":"limit","required":false},{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"query","name":"cursor","required":false},{"schema":{"type":"string","enum":["pending","paid","shipped","cancelled","refunded"]},"in":"query","name":"status","required":false},{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"query","name":"profileId","required":false},{"schema":{"type":"string","format":"email","pattern":"^(?:[A-Za-z0-9_'+\\-]+\\.)*[A-Za-z0-9_'+\\-]*[A-Za-z0-9_+-]@(?:[A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$"},"in":"query","name":"email","required":false},{"schema":{"type":"string"},"in":"query","name":"promoCode","required":false},{"schema":{"type":"string","pattern":"^[a-z][a-z0-9_]{0,31}$"},"in":"query","name":"conversionSource","required":false},{"schema":{"type":"string","maxLength":128},"in":"query","name":"campaignId","required":false},{"schema":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"in":"query","name":"since","required":false}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetV1CommerceOrdersResponse"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1CommerceOrders"}},"/v1/commerce/stores/{storeId}/orders":{"get":{"tags":["commerce"],"parameters":[{"schema":{"default":50,"type":"integer","minimum":1,"maximum":200},"in":"query","name":"limit","required":false},{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"query","name":"cursor","required":false},{"schema":{"type":"string","enum":["pending","paid","shipped","cancelled","refunded"]},"in":"query","name":"status","required":false},{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"query","name":"profileId","required":false},{"schema":{"type":"string","format":"email","pattern":"^(?:[A-Za-z0-9_'+\\-]+\\.)*[A-Za-z0-9_'+\\-]*[A-Za-z0-9_+-]@(?:[A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$"},"in":"query","name":"email","required":false},{"schema":{"type":"string"},"in":"query","name":"promoCode","required":false},{"schema":{"type":"string","pattern":"^[a-z][a-z0-9_]{0,31}$"},"in":"query","name":"conversionSource","required":false},{"schema":{"type":"string","maxLength":128},"in":"query","name":"campaignId","required":false},{"schema":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"in":"query","name":"since","required":false},{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"storeId","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetV1CommerceOrdersResponse"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1CommerceStoresByStoreIdOrders"},"post":{"tags":["commerce"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PostV1CommerceStoresByStoreIdOrdersBody"}}}},"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"storeId","required":true}],"responses":{"201":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PostV1CommerceStoresByStoreIdOrdersResponse"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"postV1CommerceStoresByStoreIdOrders"},"put":{"tags":["commerce"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PostV1CommerceStoresByStoreIdOrdersBody"}}}},"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"storeId","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PostV1CommerceStoresByStoreIdOrdersResponse"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"putV1CommerceStoresByStoreIdOrders"}},"/v1/commerce/stores/{storeId}/orders/batch":{"post":{"summary":"Upsert up to 100 orders (with status) in one all-or-nothing request","tags":["commerce"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"orders":{"minItems":1,"maxItems":100,"type":"array","items":{"$ref":"#/components/schemas/PostV1CommerceStoresByStoreIdOrdersBody"}}},"required":["orders"]}}}},"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"storeId","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"items":{"type":"array","items":{"$ref":"#/components/schemas/PostV1CommerceStoresByStoreIdOrdersResponse"}}},"required":["items"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"postV1CommerceStoresByStoreIdOrdersBatch"}},"/v1/commerce/stores/{storeId}/orders/{id}":{"get":{"tags":["commerce"],"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"storeId","required":true},{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PostV1CommerceStoresByStoreIdOrdersResponse"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1CommerceStoresByStoreIdOrdersById"},"put":{"summary":"Create or replace the order under the store's own order id","tags":["commerce"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"email":{"type":"string","format":"email","pattern":"^(?:[A-Za-z0-9_'+\\-]+\\.)*[A-Za-z0-9_'+\\-]*[A-Za-z0-9_+-]@(?:[A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$"},"profileId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"status":{"default":"paid","type":"string","enum":["pending","paid","shipped","cancelled","refunded"]},"currency":{"type":"string","minLength":3,"maxLength":3},"totalMinor":{"type":"integer","minimum":0,"maximum":9007199254740991},"discountMinor":{"default":0,"type":"integer","minimum":0,"maximum":9007199254740991},"taxMinor":{"default":0,"type":"integer","minimum":0,"maximum":9007199254740991},"shippingMinor":{"default":0,"type":"integer","minimum":0,"maximum":9007199254740991},"promoCode":{"type":"string","maxLength":128},"promoPoolId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"campaignId":{"type":"string","maxLength":128},"conversionSource":{"type":"string","pattern":"^[a-z][a-z0-9_]{0,31}$"},"trackingUrl":{"type":"string","format":"uri"},"placedAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"landingPageId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"adRef":{"type":"string","maxLength":200},"clickId":{"type":"string","maxLength":300},"utm":{"type":"object","additionalProperties":{"type":"string","maxLength":300}},"shippingAddress":{"$ref":"#/components/schemas/Address"},"billingAddress":{"$ref":"#/components/schemas/Address"},"orderUrl":{"type":"string","format":"uri"},"financialStatus":{"type":"string","maxLength":64},"fulfillmentStatus":{"type":"string","maxLength":64},"lines":{"$ref":"#/components/schemas/Lines"}},"required":["currency"]}}}},"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"storeId","required":true},{"schema":{"type":"string","minLength":1,"maxLength":128},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PostV1CommerceStoresByStoreIdOrdersResponse"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"putV1CommerceStoresByStoreIdOrdersById"},"patch":{"tags":["commerce"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"string","enum":["pending","paid","shipped","cancelled","refunded"]},"refundedMinor":{"type":"integer","minimum":0,"maximum":9007199254740991},"trackingUrl":{"type":"string","format":"uri"},"promoCode":{"type":"string","maxLength":128},"promoPoolId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"campaignId":{"type":"string","maxLength":128},"conversionSource":{"type":"string","pattern":"^[a-z][a-z0-9_]{0,31}$"},"landingPageId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"adRef":{"type":"string","maxLength":200},"clickId":{"type":"string","maxLength":300},"utm":{"type":"object","additionalProperties":{"type":"string","maxLength":300}},"shippingAddress":{"$ref":"#/components/schemas/Address"},"billingAddress":{"$ref":"#/components/schemas/Address"},"orderUrl":{"type":"string","format":"uri"},"financialStatus":{"type":"string","maxLength":64},"fulfillmentStatus":{"type":"string","maxLength":64}}}}}},"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"storeId","required":true},{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PostV1CommerceStoresByStoreIdOrdersResponse"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"patchV1CommerceStoresByStoreIdOrdersById"},"delete":{"tags":["commerce"],"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"storeId","required":true},{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"ok":{"type":"boolean","enum":[true]}},"required":["ok"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"deleteV1CommerceStoresByStoreIdOrdersById"}},"/v1/commerce/stores/{storeId}/orders/{id}/lines":{"get":{"tags":["commerce"],"parameters":[{"schema":{"type":"integer","minimum":1,"maximum":200},"in":"query","name":"limit","required":false,"description":"Page size; omitted returns the whole list"},{"schema":{"type":"string","pattern":"^\\d{1,9}$"},"in":"query","name":"cursor","required":false,"description":"Opaque: the `nextCursor` of the previous page"},{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"storeId","required":true},{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"items":{"$ref":"#/components/schemas/Lines2"},"nextCursor":{"nullable":true,"type":"string"}},"required":["items","nextCursor"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1CommerceStoresByStoreIdOrdersByIdLines"},"post":{"tags":["commerce"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/LinesItem"}}}},"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"storeId","required":true},{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"201":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LinesItem2"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"postV1CommerceStoresByStoreIdOrdersByIdLines"}},"/v1/commerce/stores/{storeId}/orders/{id}/lines/{lineId}":{"get":{"tags":["commerce"],"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"storeId","required":true},{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true},{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"lineId","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LinesItem2"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1CommerceStoresByStoreIdOrdersByIdLinesByLineId"},"patch":{"tags":["commerce"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"productId":{"type":"string","maxLength":128},"variantId":{"type":"string","maxLength":128},"title":{"type":"string","maxLength":300},"quantity":{"type":"integer","minimum":1,"maximum":100000},"priceMinor":{"type":"integer","minimum":0,"maximum":9007199254740991},"discountMinor":{"type":"integer","minimum":0,"maximum":9007199254740991}}}}}},"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"storeId","required":true},{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true},{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"lineId","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LinesItem2"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"patchV1CommerceStoresByStoreIdOrdersByIdLinesByLineId"},"delete":{"tags":["commerce"],"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"storeId","required":true},{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true},{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"lineId","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"ok":{"type":"boolean","enum":[true]}},"required":["ok"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"deleteV1CommerceStoresByStoreIdOrdersByIdLinesByLineId"}},"/v1/commerce/stores/{storeId}/carts":{"get":{"tags":["commerce"],"parameters":[{"schema":{"default":50,"type":"integer","minimum":1,"maximum":200},"in":"query","name":"limit","required":false},{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"query","name":"cursor","required":false},{"schema":{"type":"string","enum":["open","abandoned","converted"]},"in":"query","name":"status","required":false},{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"query","name":"profileId","required":false},{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"storeId","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"items":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"storeId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"externalId":{"type":"string"},"profileId":{"nullable":true,"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"email":{"nullable":true,"type":"string"},"status":{"type":"string","enum":["open","abandoned","converted"]},"currency":{"type":"string"},"totalMinor":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"taxMinor":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"recoveryUrl":{"nullable":true,"type":"string"},"campaignId":{"nullable":true,"type":"string"},"updatedAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"}},"required":["id","storeId","externalId","profileId","email","status","currency","totalMinor","taxMinor","recoveryUrl","campaignId","updatedAt"],"additionalProperties":false}},"nextCursor":{"nullable":true,"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},"required":["items","nextCursor"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1CommerceStoresByStoreIdCarts"},"post":{"tags":["commerce"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PostV1CommerceStoresByStoreIdCartsBody"}}}},"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"storeId","required":true}],"responses":{"201":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PostV1CommerceStoresByStoreIdCartsResponse"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"postV1CommerceStoresByStoreIdCarts"},"put":{"tags":["commerce"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PostV1CommerceStoresByStoreIdCartsBody"}}}},"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"storeId","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PostV1CommerceStoresByStoreIdCartsResponse"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"putV1CommerceStoresByStoreIdCarts"}},"/v1/commerce/stores/{storeId}/carts/{id}":{"get":{"tags":["commerce"],"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"storeId","required":true},{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PostV1CommerceStoresByStoreIdCartsResponse"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1CommerceStoresByStoreIdCartsById"},"patch":{"tags":["commerce"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"currency":{"type":"string","minLength":3,"maxLength":3},"totalMinor":{"type":"integer","minimum":0,"maximum":9007199254740991},"taxMinor":{"type":"integer","minimum":0,"maximum":9007199254740991},"recoveryUrl":{"type":"string","format":"uri"},"campaignId":{"type":"string","maxLength":128},"status":{"type":"string","enum":["open","abandoned","converted"]}}}}}},"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"storeId","required":true},{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PostV1CommerceStoresByStoreIdCartsResponse"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"patchV1CommerceStoresByStoreIdCartsById"},"delete":{"tags":["commerce"],"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"storeId","required":true},{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"ok":{"type":"boolean","enum":[true]}},"required":["ok"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"deleteV1CommerceStoresByStoreIdCartsById"}},"/v1/commerce/stores/{storeId}/carts/{id}/lines":{"get":{"tags":["commerce"],"parameters":[{"schema":{"type":"integer","minimum":1,"maximum":200},"in":"query","name":"limit","required":false,"description":"Page size; omitted returns the whole list"},{"schema":{"type":"string","pattern":"^\\d{1,9}$"},"in":"query","name":"cursor","required":false,"description":"Opaque: the `nextCursor` of the previous page"},{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"storeId","required":true},{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"items":{"$ref":"#/components/schemas/Lines4"},"nextCursor":{"nullable":true,"type":"string"}},"required":["items","nextCursor"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1CommerceStoresByStoreIdCartsByIdLines"},"post":{"tags":["commerce"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/LinesItem3"}}}},"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"storeId","required":true},{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"201":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LinesItem4"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"postV1CommerceStoresByStoreIdCartsByIdLines"}},"/v1/commerce/stores/{storeId}/carts/{id}/lines/{lineId}":{"get":{"tags":["commerce"],"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"storeId","required":true},{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true},{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"lineId","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LinesItem4"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1CommerceStoresByStoreIdCartsByIdLinesByLineId"},"patch":{"tags":["commerce"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"productId":{"type":"string","maxLength":128},"variantId":{"type":"string","maxLength":128},"title":{"type":"string","maxLength":300},"quantity":{"type":"integer","minimum":1,"maximum":100000},"priceMinor":{"type":"integer","minimum":0,"maximum":9007199254740991}}}}}},"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"storeId","required":true},{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true},{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"lineId","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LinesItem4"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"patchV1CommerceStoresByStoreIdCartsByIdLinesByLineId"},"delete":{"tags":["commerce"],"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"storeId","required":true},{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true},{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"lineId","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"ok":{"type":"boolean","enum":[true]}},"required":["ok"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"deleteV1CommerceStoresByStoreIdCartsByIdLinesByLineId"}},"/v1/commerce/stores/{storeId}/customers":{"get":{"tags":["commerce"],"parameters":[{"schema":{"default":50,"type":"integer","minimum":1,"maximum":200},"in":"query","name":"limit","required":false},{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"query","name":"cursor","required":false},{"schema":{"type":"string","format":"email","pattern":"^(?:[A-Za-z0-9_'+\\-]+\\.)*[A-Za-z0-9_'+\\-]*[A-Za-z0-9_+-]@(?:[A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$"},"in":"query","name":"email","required":false},{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"storeId","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"items":{"type":"array","items":{"$ref":"#/components/schemas/ItemsItem141"}},"nextCursor":{"nullable":true,"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},"required":["items","nextCursor"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1CommerceStoresByStoreIdCustomers"},"post":{"tags":["commerce"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":128},"email":{"type":"string","format":"email","pattern":"^(?:[A-Za-z0-9_'+\\-]+\\.)*[A-Za-z0-9_'+\\-]*[A-Za-z0-9_+-]@(?:[A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$"},"firstName":{"type":"string","maxLength":200},"lastName":{"type":"string","maxLength":200},"company":{"type":"string","maxLength":200},"optInStatus":{"type":"boolean"},"address":{"$ref":"#/components/schemas/Address"}},"required":["id","email"]}}}},"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"storeId","required":true}],"responses":{"201":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ItemsItem141"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"postV1CommerceStoresByStoreIdCustomers"}},"/v1/commerce/stores/{storeId}/customers/{customerId}":{"get":{"tags":["commerce"],"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"storeId","required":true},{"schema":{"type":"string","minLength":1,"maxLength":128},"in":"path","name":"customerId","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ItemsItem141"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1CommerceStoresByStoreIdCustomersByCustomerId"},"put":{"tags":["commerce"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"email":{"type":"string","format":"email","pattern":"^(?:[A-Za-z0-9_'+\\-]+\\.)*[A-Za-z0-9_'+\\-]*[A-Za-z0-9_+-]@(?:[A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$"},"firstName":{"type":"string","maxLength":200},"lastName":{"type":"string","maxLength":200},"company":{"type":"string","maxLength":200},"optInStatus":{"type":"boolean"},"address":{"$ref":"#/components/schemas/Address"}},"required":["email"]}}}},"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"storeId","required":true},{"schema":{"type":"string","minLength":1,"maxLength":128},"in":"path","name":"customerId","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ItemsItem141"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"putV1CommerceStoresByStoreIdCustomersByCustomerId"},"patch":{"tags":["commerce"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"email":{"type":"string","format":"email","pattern":"^(?:[A-Za-z0-9_'+\\-]+\\.)*[A-Za-z0-9_'+\\-]*[A-Za-z0-9_+-]@(?:[A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$"},"firstName":{"type":"string","maxLength":200},"lastName":{"type":"string","maxLength":200},"company":{"type":"string","maxLength":200},"optInStatus":{"type":"boolean"},"address":{"$ref":"#/components/schemas/Address"}}}}}},"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"storeId","required":true},{"schema":{"type":"string","minLength":1,"maxLength":128},"in":"path","name":"customerId","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ItemsItem141"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"patchV1CommerceStoresByStoreIdCustomersByCustomerId"},"delete":{"tags":["commerce"],"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"storeId","required":true},{"schema":{"type":"string","minLength":1,"maxLength":128},"in":"path","name":"customerId","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"ok":{"type":"boolean","enum":[true]}},"required":["ok"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"deleteV1CommerceStoresByStoreIdCustomersByCustomerId"}},"/v1/commerce/stores/{storeId}/products":{"get":{"tags":["commerce"],"parameters":[{"schema":{"default":50,"type":"integer","minimum":1,"maximum":200},"in":"query","name":"limit","required":false},{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"query","name":"cursor","required":false},{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"storeId","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"items":{"$ref":"#/components/schemas/Items33"},"nextCursor":{"nullable":true,"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},"required":["items","nextCursor"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1CommerceStoresByStoreIdProducts"},"post":{"summary":"Add a product to this store under its store id","tags":["commerce"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"title":{"type":"string","minLength":1,"maxLength":500},"description":{"nullable":true,"type":"string","maxLength":10000},"url":{"nullable":true,"type":"string","maxLength":2048,"format":"uri"},"imageUrl":{"nullable":true,"type":"string","maxLength":2048,"format":"uri"},"priceMinor":{"nullable":true,"type":"integer","minimum":0,"maximum":9007199254740991},"currency":{"nullable":true,"type":"string","minLength":3,"maxLength":3},"inventory":{"nullable":true,"type":"integer","minimum":0,"maximum":9007199254740991},"published":{"type":"boolean"},"categories":{"maxItems":50,"type":"array","items":{"type":"string","minLength":1,"maxLength":256}},"variants":{"$ref":"#/components/schemas/Variants4"},"customMetadata":{"nullable":true,"type":"object","additionalProperties":{}},"imageThumbnailUrl":{"nullable":true,"type":"string","maxLength":2048,"format":"uri"},"handle":{"nullable":true,"type":"string","maxLength":256},"type":{"nullable":true,"type":"string","maxLength":256},"vendor":{"nullable":true,"type":"string","maxLength":256},"publishedAtForeign":{"nullable":true,"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"id":{"type":"string","minLength":1,"maxLength":256}},"required":["title","id"]}}}},"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"storeId","required":true}],"responses":{"201":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ItemsItem92"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"postV1CommerceStoresByStoreIdProducts"}},"/v1/commerce/stores/{storeId}/products/{productId}":{"get":{"tags":["commerce"],"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"storeId","required":true},{"schema":{"type":"string","minLength":1,"maxLength":256},"in":"path","name":"productId","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ItemsItem92"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1CommerceStoresByStoreIdProductsByProductId"},"patch":{"summary":"Change only the fields sent","tags":["commerce"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PatchV1CatalogItemsByIdBody"}}}},"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"storeId","required":true},{"schema":{"type":"string","minLength":1,"maxLength":256},"in":"path","name":"productId","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ItemsItem92"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"patchV1CommerceStoresByStoreIdProductsByProductId"},"put":{"summary":"Create or replace a product in this store","tags":["commerce"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PutV1CatalogItemsByIdBody"}}}},"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"storeId","required":true},{"schema":{"type":"string","minLength":1,"maxLength":256},"in":"path","name":"productId","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ItemsItem92"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"putV1CommerceStoresByStoreIdProductsByProductId"},"delete":{"tags":["commerce"],"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"storeId","required":true},{"schema":{"type":"string","minLength":1,"maxLength":256},"in":"path","name":"productId","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"ok":{"type":"boolean","enum":[true]}},"required":["ok"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"deleteV1CommerceStoresByStoreIdProductsByProductId"}},"/v1/commerce/stores/{storeId}/products/{productId}/variants":{"get":{"tags":["commerce"],"parameters":[{"schema":{"type":"integer","minimum":1,"maximum":200},"in":"query","name":"limit","required":false,"description":"Page size; omitted returns the whole list"},{"schema":{"type":"string","pattern":"^\\d{1,9}$"},"in":"query","name":"cursor","required":false,"description":"Opaque: the `nextCursor` of the previous page"},{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"storeId","required":true},{"schema":{"type":"string","minLength":1,"maxLength":256},"in":"path","name":"productId","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetV1CatalogItemsByIdVariantsResponse"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1CommerceStoresByStoreIdProductsByProductIdVariants"},"post":{"summary":"Add a variant to a store product under its store id","tags":["commerce"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"sku":{"nullable":true,"type":"string","maxLength":256},"title":{"type":"string","minLength":1,"maxLength":500},"priceMinor":{"nullable":true,"type":"integer","minimum":0,"maximum":9007199254740991},"currency":{"nullable":true,"type":"string","minLength":3,"maxLength":3},"inventory":{"nullable":true,"type":"integer","minimum":0,"maximum":9007199254740991},"url":{"nullable":true,"type":"string","maxLength":2048,"format":"uri"},"imageUrl":{"nullable":true,"type":"string","maxLength":2048,"format":"uri"},"published":{"type":"boolean"},"inventoryPolicy":{"nullable":true,"type":"string","enum":["deny","continue"]},"backorders":{"nullable":true,"type":"string","maxLength":64},"visibility":{"nullable":true,"type":"string","maxLength":64},"imageThumbnailUrl":{"nullable":true,"type":"string","maxLength":2048,"format":"uri"},"customMetadata":{"nullable":true,"type":"object","additionalProperties":{}},"id":{"type":"string","minLength":1,"maxLength":256}},"required":["title","id"]}}}},"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"storeId","required":true},{"schema":{"type":"string","minLength":1,"maxLength":256},"in":"path","name":"productId","required":true}],"responses":{"201":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/VariantsItem4"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"postV1CommerceStoresByStoreIdProductsByProductIdVariants"}},"/v1/commerce/stores/{storeId}/products/{productId}/variants/{variantId}":{"put":{"summary":"Create or replace a variant of a store product","tags":["commerce"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PutV1CatalogItemsByIdVariantsByVariantIdBody"}}}},"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"storeId","required":true},{"schema":{"type":"string","minLength":1,"maxLength":256},"in":"path","name":"productId","required":true},{"schema":{"type":"string","minLength":1,"maxLength":256},"in":"path","name":"variantId","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/VariantsItem4"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"putV1CommerceStoresByStoreIdProductsByProductIdVariantsByVariantId"},"patch":{"summary":"Change only the fields sent","tags":["commerce"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PatchV1CatalogVariantsByIdBody"}}}},"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"storeId","required":true},{"schema":{"type":"string","minLength":1,"maxLength":256},"in":"path","name":"productId","required":true},{"schema":{"type":"string","minLength":1,"maxLength":256},"in":"path","name":"variantId","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/VariantsItem4"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"patchV1CommerceStoresByStoreIdProductsByProductIdVariantsByVariantId"},"delete":{"tags":["commerce"],"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"storeId","required":true},{"schema":{"type":"string","minLength":1,"maxLength":256},"in":"path","name":"productId","required":true},{"schema":{"type":"string","minLength":1,"maxLength":256},"in":"path","name":"variantId","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"ok":{"type":"boolean","enum":[true]}},"required":["ok"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"deleteV1CommerceStoresByStoreIdProductsByProductIdVariantsByVariantId"}},"/v1/commerce/stores/{storeId}/products/{productId}/images":{"get":{"tags":["commerce"],"parameters":[{"schema":{"type":"integer","minimum":1,"maximum":200},"in":"query","name":"limit","required":false,"description":"Page size; omitted returns the whole list"},{"schema":{"type":"string","pattern":"^\\d{1,9}$"},"in":"query","name":"cursor","required":false,"description":"Opaque: the `nextCursor` of the previous page"},{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"storeId","required":true},{"schema":{"type":"string","minLength":1,"maxLength":256},"in":"path","name":"productId","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"items":{"type":"array","items":{"$ref":"#/components/schemas/ItemsItem142"}},"nextCursor":{"nullable":true,"type":"string"}},"required":["items","nextCursor"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1CommerceStoresByStoreIdProductsByProductIdImages"},"post":{"tags":["commerce"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":128},"url":{"type":"string","maxLength":2048,"format":"uri"},"variantIds":{"maxItems":100,"type":"array","items":{"type":"string","maxLength":256}}},"required":["id","url"]}}}},"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"storeId","required":true},{"schema":{"type":"string","minLength":1,"maxLength":256},"in":"path","name":"productId","required":true}],"responses":{"201":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ItemsItem142"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"postV1CommerceStoresByStoreIdProductsByProductIdImages"}},"/v1/commerce/stores/{storeId}/products/{productId}/images/{imageId}":{"get":{"tags":["commerce"],"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"storeId","required":true},{"schema":{"type":"string","minLength":1,"maxLength":256},"in":"path","name":"productId","required":true},{"schema":{"type":"string","minLength":1,"maxLength":128},"in":"path","name":"imageId","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ItemsItem142"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1CommerceStoresByStoreIdProductsByProductIdImagesByImageId"},"put":{"tags":["commerce"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"url":{"type":"string","maxLength":2048,"format":"uri"},"variantIds":{"maxItems":100,"type":"array","items":{"type":"string","maxLength":256}}},"required":["url"]}}}},"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"storeId","required":true},{"schema":{"type":"string","minLength":1,"maxLength":256},"in":"path","name":"productId","required":true},{"schema":{"type":"string","minLength":1,"maxLength":128},"in":"path","name":"imageId","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ItemsItem142"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"putV1CommerceStoresByStoreIdProductsByProductIdImagesByImageId"},"patch":{"tags":["commerce"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"url":{"type":"string","maxLength":2048,"format":"uri"},"variantIds":{"maxItems":100,"type":"array","items":{"type":"string","maxLength":256}}}}}}},"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"storeId","required":true},{"schema":{"type":"string","minLength":1,"maxLength":256},"in":"path","name":"productId","required":true},{"schema":{"type":"string","minLength":1,"maxLength":128},"in":"path","name":"imageId","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ItemsItem142"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"patchV1CommerceStoresByStoreIdProductsByProductIdImagesByImageId"},"delete":{"tags":["commerce"],"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"storeId","required":true},{"schema":{"type":"string","minLength":1,"maxLength":256},"in":"path","name":"productId","required":true},{"schema":{"type":"string","minLength":1,"maxLength":128},"in":"path","name":"imageId","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"ok":{"type":"boolean","enum":[true]}},"required":["ok"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"deleteV1CommerceStoresByStoreIdProductsByProductIdImagesByImageId"}},"/v1/commerce/attribution/metrics":{"get":{"tags":["commerce"],"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"query","name":"storeId","required":false},{"schema":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"in":"query","name":"since","required":false},{"schema":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"in":"query","name":"until","required":false},{"schema":{"type":"integer","minimum":1,"maximum":200},"in":"query","name":"limit","required":false,"description":"Page size; omitted returns the whole list"},{"schema":{"type":"string","pattern":"^\\d{1,9}$"},"in":"query","name":"cursor","required":false,"description":"Opaque: the `nextCursor` of the previous page"}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"items":{"type":"array","items":{"type":"object","properties":{"orders":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"revenueMinor":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"refundedMinor":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"aovMinor":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"conversionSource":{"type":"string","pattern":"^[a-z][a-z0-9_]{0,31}$"}},"required":["orders","revenueMinor","refundedMinor","aovMinor","conversionSource"],"additionalProperties":false}},"nextCursor":{"nullable":true,"type":"string"}},"required":["items","nextCursor"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1CommerceAttributionMetrics"}},"/v1/commerce/attribution/sources":{"get":{"tags":["commerce"],"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"query","name":"storeId","required":false},{"schema":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"in":"query","name":"since","required":false},{"schema":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"in":"query","name":"until","required":false},{"schema":{"type":"integer","minimum":1,"maximum":200},"in":"query","name":"limit","required":false,"description":"Page size; omitted returns the whole list"},{"schema":{"type":"string","pattern":"^\\d{1,9}$"},"in":"query","name":"cursor","required":false,"description":"Opaque: the `nextCursor` of the previous page"}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"items":{"type":"array","items":{"$ref":"#/components/schemas/ItemsItem143"}},"nextCursor":{"nullable":true,"type":"string"}},"required":["items","nextCursor"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1CommerceAttributionSources"}},"/v1/commerce/attribution/metrics/{conversionSource}/{conversionSourceId}":{"get":{"tags":["commerce"],"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"query","name":"storeId","required":false},{"schema":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"in":"query","name":"since","required":false},{"schema":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"in":"query","name":"until","required":false},{"schema":{"type":"string","pattern":"^[a-z][a-z0-9_]{0,31}$"},"in":"path","name":"conversionSource","required":true},{"schema":{"type":"string","minLength":1,"maxLength":128},"in":"path","name":"conversionSourceId","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ItemsItem143"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1CommerceAttributionMetricsByConversionSourceByConversionSourceId"}},"/v1/commerce/attribution/products/{conversionSource}/{conversionSourceId}":{"get":{"tags":["commerce"],"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"query","name":"storeId","required":false},{"schema":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"in":"query","name":"since","required":false},{"schema":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"in":"query","name":"until","required":false},{"schema":{"type":"integer","minimum":1,"maximum":200},"in":"query","name":"limit","required":false,"description":"Page size; omitted returns the whole list"},{"schema":{"type":"string","pattern":"^\\d{1,9}$"},"in":"query","name":"cursor","required":false,"description":"Opaque: the `nextCursor` of the previous page"},{"schema":{"type":"string","pattern":"^[a-z][a-z0-9_]{0,31}$"},"in":"path","name":"conversionSource","required":true},{"schema":{"type":"string","minLength":1,"maxLength":128},"in":"path","name":"conversionSourceId","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetV1ReportsByIdProductsResponse"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1CommerceAttributionProductsByConversionSourceByConversionSourceId"}},"/v1/events/export":{"get":{"summary":"The same filters as GET /v1/events, as CSV text (first 50,000 events); POST /v1/events/export-jobs exports every match as a file","tags":["metrics"],"parameters":[{"schema":{"type":"string","maxLength":128},"in":"query","name":"name","required":false},{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"query","name":"profileId","required":false},{"schema":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"in":"query","name":"from","required":false},{"schema":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"in":"query","name":"to","required":false},{"schema":{"type":"string","maxLength":4000},"in":"query","name":"filter","required":false},{"schema":{"type":"string","enum":["datetime","-datetime"]},"in":"query","name":"sort","required":false},{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"query","name":"journeyId","required":false},{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"query","name":"broadcastId","required":false}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetV1SegmentsByIdExportResponse"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1EventsExport"}},"/v1/events/export-jobs":{"post":{"summary":"Every event matching the GET /v1/events filters as a CSV file, prepared in the background (poll GET /v1/exports/:id for the download link)","tags":["metrics"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","maxLength":128},"profileId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"from":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"to":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"filter":{"type":"string","maxLength":4000},"sort":{"type":"string","enum":["datetime","-datetime"]},"journeyId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"broadcastId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}}}}},"responses":{"202":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ItemsItem14"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"postV1EventsExportJobs"}},"/v1/events/{id}":{"get":{"tags":["metrics"],"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ItemsItem25"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1EventsById"}},"/v1/metrics":{"get":{"summary":"Metrics: observed events plus custom metrics, with counts and last-seen","tags":["metrics"],"parameters":[{"schema":{"type":"integer","minimum":1,"maximum":200},"in":"query","name":"limit","required":false,"description":"Page size; omitted returns the whole list"},{"schema":{"type":"string","pattern":"^\\d{1,9}$"},"in":"query","name":"cursor","required":false,"description":"Opaque: the `nextCursor` of the previous page"}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"items":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string"},"kind":{"type":"string","enum":["event","custom"]},"customMetricId":{"nullable":true,"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"category":{"type":"string","enum":["standard","custom"]},"goal":{"type":"boolean"},"eventCount":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"lastEventAt":{"nullable":true,"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"firstSeenAt":{"nullable":true,"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"}},"required":["name","kind","customMetricId","category","goal","eventCount","lastEventAt","firstSeenAt"],"additionalProperties":false}},"nextCursor":{"nullable":true,"type":"string"}},"required":["items","nextCursor"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1Metrics"}},"/v1/metrics/{name}":{"get":{"summary":"Metric detail with observed property keys and types (name, custom metric id or mapped:<role>)","tags":["metrics"],"parameters":[{"schema":{"type":"string","minLength":1,"maxLength":128},"in":"path","name":"name","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string"},"kind":{"type":"string","enum":["event","custom"]},"customMetricId":{"nullable":true,"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"category":{"type":"string","enum":["standard","custom"]},"goal":{"type":"boolean"},"eventCount":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"lastEventAt":{"nullable":true,"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"firstSeenAt":{"nullable":true,"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"schema":{"nullable":true,"type":"object","additionalProperties":{"type":"string"}},"properties":{"type":"array","items":{"type":"object","properties":{"key":{"type":"string"},"types":{"type":"array","items":{"type":"string"}},"seen":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["key","types","seen"],"additionalProperties":false}}},"required":["name","kind","customMetricId","category","goal","eventCount","lastEventAt","firstSeenAt","schema","properties"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1MetricsByName"}},"/v1/metrics/aggregates":{"post":{"summary":"Aggregate a metric over time: measurement, interval, breakdown, filters, timezone","tags":["metrics"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"metric":{"type":"string","minLength":1,"maxLength":128,"description":"An event name, a custom metric id (a name alone is read as an event name), or mapped:<role>"},"measurement":{"default":"count","type":"string","enum":["count","unique","sum_value","avg_value","sum_property","avg_property"]},"measurementProperty":{"type":"string","minLength":1,"maxLength":128},"interval":{"default":"day","type":"string","enum":["hour","day","week","month"]},"by":{"type":"string","minLength":1,"maxLength":128},"from":{"$ref":"#/components/schemas/GetV1Audit"},"to":{"$ref":"#/components/schemas/GetV1Audit"},"timezone":{"default":"UTC","type":"string","minLength":1,"maxLength":64},"filter":{"$ref":"#/components/schemas/Conditions4"},"topN":{"default":10,"type":"integer","minimum":1,"maximum":25}},"required":["metric","from","to"]}}}},"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"metric":{"type":"string"},"measurement":{"type":"string"},"interval":{"type":"string"},"timezone":{"type":"string"},"by":{"nullable":true,"type":"string"},"buckets":{"type":"array","items":{"type":"string"}},"series":{"type":"array","items":{"type":"object","properties":{"key":{"type":"string"},"values":{"type":"array","items":{"type":"number"}},"total":{"type":"number"}},"required":["key","values","total"],"additionalProperties":false}},"total":{"type":"number"}},"required":["metric","measurement","interval","timezone","by","buckets","series","total"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"postV1MetricsAggregates"}},"/v1/custom-metrics":{"get":{"tags":["metrics"],"parameters":[{"schema":{"type":"integer","minimum":1,"maximum":200},"in":"query","name":"limit","required":false,"description":"Page size; omitted returns the whole list"},{"schema":{"type":"string","pattern":"^\\d{1,9}$"},"in":"query","name":"cursor","required":false,"description":"Opaque: the `nextCursor` of the previous page"}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"items":{"type":"array","items":{"$ref":"#/components/schemas/ItemsItem144"}},"nextCursor":{"nullable":true,"type":"string"}},"required":["items","nextCursor"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1CustomMetrics"},"post":{"tags":["metrics"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":128},"description":{"default":null,"nullable":true,"type":"string","maxLength":500},"definition":{"$ref":"#/components/schemas/Definition8"}},"required":["name","definition"]}}}},"responses":{"201":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ItemsItem144"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"postV1CustomMetrics"}},"/v1/custom-metrics/{id}":{"get":{"tags":["metrics"],"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ItemsItem144"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1CustomMetricsById"},"patch":{"tags":["metrics"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":128},"description":{"nullable":true,"type":"string","maxLength":500},"definition":{"$ref":"#/components/schemas/Definition8"}}}}}},"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ItemsItem144"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"patchV1CustomMetricsById"},"delete":{"tags":["metrics"],"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"ok":{"type":"boolean","enum":[true]}},"required":["ok"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"deleteV1CustomMetricsById"}},"/v1/mapped-metrics":{"get":{"tags":["metrics"],"parameters":[{"schema":{"type":"integer","minimum":1,"maximum":200},"in":"query","name":"limit","required":false,"description":"Page size; omitted returns the whole list"},{"schema":{"type":"string","pattern":"^\\d{1,9}$"},"in":"query","name":"cursor","required":false,"description":"Opaque: the `nextCursor` of the previous page"}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"items":{"type":"array","items":{"$ref":"#/components/schemas/ItemsItem145"}},"nextCursor":{"nullable":true,"type":"string"}},"required":["items","nextCursor"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1MappedMetrics"}},"/v1/mapped-metrics/{role}":{"get":{"tags":["metrics"],"parameters":[{"schema":{"type":"string","enum":["placed_order","viewed_product","started_checkout","added_to_cart","submitted_form"]},"in":"path","name":"role","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ItemsItem145"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1MappedMetricsByRole"},"put":{"tags":["metrics"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"metricName":{"type":"string","minLength":1,"maxLength":128}},"required":["metricName"]}}}},"parameters":[{"schema":{"type":"string","enum":["placed_order","viewed_product","started_checkout","added_to_cart","submitted_form"]},"in":"path","name":"role","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ItemsItem145"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"putV1MappedMetricsByRole"},"delete":{"summary":"Reset a role to its default event","tags":["metrics"],"parameters":[{"schema":{"type":"string","enum":["placed_order","viewed_product","started_checkout","added_to_cart","submitted_form"]},"in":"path","name":"role","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"ok":{"type":"boolean","enum":[true]}},"required":["ok"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"deleteV1MappedMetricsByRole"}},"/v1/object-types/{id}":{"get":{"tags":["objects"],"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ItemsItem71"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1ObjectTypesById"},"patch":{"tags":["objects"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":128}}}}}},"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ItemsItem71"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"patchV1ObjectTypesById"},"delete":{"summary":"Deletes the type with all its records, relations, versions and logs","tags":["objects"],"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"ok":{"type":"boolean","enum":[true]}},"required":["ok"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"deleteV1ObjectTypesById"}},"/v1/object-types/{id}/versions":{"get":{"tags":["objects"],"parameters":[{"schema":{"type":"integer","minimum":1,"maximum":200},"in":"query","name":"limit","required":false,"description":"Page size; omitted returns the whole list"},{"schema":{"type":"string","pattern":"^\\d{1,9}$"},"in":"query","name":"cursor","required":false,"description":"Opaque: the `nextCursor` of the previous page"},{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"items":{"type":"array","items":{"$ref":"#/components/schemas/ItemsItem146"}},"nextCursor":{"nullable":true,"type":"string"}},"required":["items","nextCursor"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1ObjectTypesByIdVersions"}},"/v1/object-types/{id}/draft":{"get":{"tags":["objects"],"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"draft":{"nullable":true,"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"version":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"status":{"type":"string","enum":["draft","published"]},"fields":{"type":"object","additionalProperties":{"type":"string","enum":["string","number","boolean","date"]}},"publishedAt":{"nullable":true,"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"createdAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"}},"required":["id","version","status","fields","publishedAt","createdAt"],"additionalProperties":false}},"required":["draft"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1ObjectTypesByIdDraft"},"put":{"tags":["objects"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"fields":{"type":"object","additionalProperties":{"type":"string","enum":["string","number","boolean","date"]}}},"required":["fields"]}}}},"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ItemsItem146"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"putV1ObjectTypesByIdDraft"},"delete":{"tags":["objects"],"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"ok":{"type":"boolean","enum":[true]}},"required":["ok"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"deleteV1ObjectTypesByIdDraft"}},"/v1/object-types/{id}/draft/publish":{"post":{"tags":["objects"],"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ItemsItem146"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"postV1ObjectTypesByIdDraftPublish"}},"/v1/object-types/{id}/relationships":{"get":{"tags":["objects"],"parameters":[{"schema":{"type":"integer","minimum":1,"maximum":200},"in":"query","name":"limit","required":false,"description":"Page size; omitted returns the whole list"},{"schema":{"type":"string","pattern":"^\\d{1,9}$"},"in":"query","name":"cursor","required":false,"description":"Opaque: the `nextCursor` of the previous page"},{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"items":{"type":"array","items":{"$ref":"#/components/schemas/ItemsItem147"}},"nextCursor":{"nullable":true,"type":"string"}},"required":["items","nextCursor"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1ObjectTypesByIdRelationships"},"put":{"tags":["objects"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"target":{"anyOf":[{"type":"string","enum":["profile"]},{"type":"string","pattern":"^[a-z][a-z0-9_]{0,62}$"}]},"name":{"type":"string","minLength":1,"maxLength":64},"cardinality":{"default":"many_to_many","type":"string","enum":["one_to_one","one_to_many","many_to_many"]}},"required":["target","name"]}}}},"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ItemsItem147"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"putV1ObjectTypesByIdRelationships"}},"/v1/object-types/{id}/relationships/{target}":{"delete":{"tags":["objects"],"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true},{"schema":{"type":"string","minLength":1,"maxLength":63},"in":"path","name":"target","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"ok":{"type":"boolean","enum":[true]}},"required":["ok"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"deleteV1ObjectTypesByIdRelationshipsByTarget"}},"/v1/object-types/{id}/ingestion-logs":{"get":{"tags":["objects"],"parameters":[{"schema":{"default":50,"type":"integer","minimum":1,"maximum":200},"in":"query","name":"limit","required":false},{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"query","name":"cursor","required":false},{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"items":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"op":{"type":"string","enum":["upsert","delete"]},"total":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"created":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"updated":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"deleted":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"failed":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"errors":{"$ref":"#/components/schemas/Errors4"},"at":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"}},"required":["id","op","total","created","updated","deleted","failed","errors","at"],"additionalProperties":false}},"nextCursor":{"nullable":true,"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},"required":["items","nextCursor"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1ObjectTypesByIdIngestionLogs"}},"/v1/objects/{type}/bulk":{"post":{"summary":"Upsert up to 500 records by externalId; bad records are reported, the rest land","tags":["objects"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"records":{"minItems":1,"maxItems":500,"type":"array","items":{"type":"object","properties":{"externalId":{"type":"string","minLength":1,"maxLength":256},"name":{"type":"string","minLength":1,"maxLength":256},"attributes":{"default":{},"type":"object","additionalProperties":{}}},"required":["externalId","name"]}}},"required":["records"]}}}},"parameters":[{"schema":{"type":"string","pattern":"^[a-z][a-z0-9_]{0,62}$"},"in":"path","name":"type","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PostV1ObjectsByTypeBulkResponse"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"postV1ObjectsByTypeBulk"}},"/v1/objects/{type}/bulk-delete":{"post":{"tags":["objects"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"externalIds":{"minItems":1,"maxItems":500,"type":"array","items":{"type":"string","minLength":1,"maxLength":256}}},"required":["externalIds"]}}}},"parameters":[{"schema":{"type":"string","pattern":"^[a-z][a-z0-9_]{0,62}$"},"in":"path","name":"type","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PostV1ObjectsByTypeBulkResponse"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"postV1ObjectsByTypeBulkDelete"}},"/v1/objects/{type}/query":{"post":{"tags":["objects"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"search":{"type":"string","maxLength":200},"filter":{"$ref":"#/components/schemas/Conditions4"},"limit":{"default":50,"type":"integer","minimum":1,"maximum":200},"cursor":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}}}}},"parameters":[{"schema":{"type":"string","pattern":"^[a-z][a-z0-9_]{0,62}$"},"in":"path","name":"type","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetV1ObjectsByTypeResponse"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"postV1ObjectsByTypeQuery"}},"/v1/objects/{type}/{id}/relations":{"get":{"tags":["objects"],"parameters":[{"schema":{"type":"integer","minimum":1,"maximum":200},"in":"query","name":"limit","required":false,"description":"Page size; omitted returns the whole list"},{"schema":{"type":"string","pattern":"^\\d{1,9}$"},"in":"query","name":"cursor","required":false,"description":"Opaque: the `nextCursor` of the previous page"},{"schema":{"type":"string","pattern":"^[a-z][a-z0-9_]{0,62}$"},"in":"path","name":"type","required":true},{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"items":{"type":"array","items":{"type":"object","properties":{"direction":{"type":"string","enum":["out","in"]},"kind":{"type":"string"},"type":{"type":"string"},"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"name":{"type":"string"}},"required":["direction","kind","type","id","name"],"additionalProperties":false}},"nextCursor":{"nullable":true,"type":"string"}},"required":["items","nextCursor"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1ObjectsByTypeByIdRelations"},"post":{"tags":["objects"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"toType":{"type":"string","pattern":"^[a-z][a-z0-9_]{0,62}$"},"toId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"kind":{"default":"related","type":"string","minLength":1,"maxLength":64}},"required":["toType","toId"]}}}},"parameters":[{"schema":{"type":"string","pattern":"^[a-z][a-z0-9_]{0,62}$"},"in":"path","name":"type","required":true},{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"ok":{"type":"boolean","enum":[true]}},"required":["ok"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"postV1ObjectsByTypeByIdRelations"}},"/v1/objects/{type}/{id}/relations/{toId}/{kind}":{"delete":{"tags":["objects"],"parameters":[{"schema":{"type":"string","pattern":"^[a-z][a-z0-9_]{0,62}$"},"in":"path","name":"type","required":true},{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true},{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"toId","required":true},{"schema":{"type":"string","minLength":1,"maxLength":64},"in":"path","name":"kind","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"ok":{"type":"boolean","enum":[true]}},"required":["ok"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"deleteV1ObjectsByTypeByIdRelationsByToIdByKind"}},"/v1/reporting/values":{"post":{"summary":"Values report for campaigns, workflows, forms or segments: statistics list, timeframe, conversion metric, compare-to-previous","tags":["reporting"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PostV1ReportingValuesBody"}}}},"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"from":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},"to":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},"rows":{"type":"array","items":{"type":"object","properties":{"key":{"type":"string"},"label":{"type":"string"},"statistics":{"type":"object","additionalProperties":{"nullable":true,"type":"number"}}},"required":["key","label","statistics"],"additionalProperties":false}},"totals":{"type":"object","additionalProperties":{"nullable":true,"type":"number"}},"previous":{"$ref":"#/components/schemas/Previous"}},"required":["from","to","rows","totals","previous"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"postV1ReportingValues"}},"/v1/reporting/series":{"post":{"summary":"Time series of the same statistics, bucketed by day, week or month","tags":["reporting"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PostV1ReportingValuesBody"}}}},"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"from":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},"to":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},"interval":{"type":"string"},"points":{"type":"array","items":{"type":"object","properties":{"bucket":{"type":"string"},"statistics":{"type":"object","additionalProperties":{"nullable":true,"type":"number"}}},"required":["bucket","statistics"],"additionalProperties":false}},"totals":{"type":"object","additionalProperties":{"nullable":true,"type":"number"}},"previous":{"$ref":"#/components/schemas/Previous"}},"required":["from","to","interval","points","totals","previous"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"postV1ReportingSeries"}},"/v1/used-by/{kind}/{id}":{"get":{"summary":"Workflows, campaigns, segments and custom metrics that reference a list, segment, template or metric (event name or custom metric id)","tags":["used-by"],"parameters":[{"schema":{"type":"integer","minimum":1,"maximum":200},"in":"query","name":"limit","required":false,"description":"Page size; omitted returns the whole list"},{"schema":{"type":"string","pattern":"^\\d{1,9}$"},"in":"query","name":"cursor","required":false,"description":"Opaque: the `nextCursor` of the previous page"},{"schema":{"type":"string","enum":["list","segment","template","metric","sender"]},"in":"path","name":"kind","required":true},{"schema":{"type":"string","minLength":1,"maxLength":128},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"items":{"type":"array","items":{"type":"object","properties":{"kind":{"type":"string","enum":["workflow","campaign","segment","form","custom_metric","sender_pool"]},"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"name":{"type":"string"},"status":{"nullable":true,"type":"string"},"via":{"type":"string"}},"required":["kind","id","name","status","via"],"additionalProperties":false}},"nextCursor":{"nullable":true,"type":"string"}},"required":["items","nextCursor"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1UsedByByKindById"}},"/v1/pipelines/{type}":{"post":{"summary":"identify, track, page, screen, group or alias","tags":["pipelines"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","additionalProperties":{}}}}},"parameters":[{"schema":{"type":"string","enum":["identify","track","page","screen","group","alias"]},"in":"path","name":"type","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PostV1PipelinesByTypeResponse"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"postV1PipelinesByType"}},"/v1/pipelines/posthog":{"post":{"summary":"PostHog capture-format events, batch or person export: events become track/page, persons and $identify become identify","tags":["pipelines"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/PostV1PipelinesPosthogBodyVariant"},{"type":"object","properties":{"batch":{"$ref":"#/components/schemas/PostV1PipelinesPosthogBodyVariant"}},"required":["batch"]},{"$ref":"#/components/schemas/PostV1PipelinesPosthogBodyVariantItem"}]}}}},"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PostV1PipelinesByTypeResponse"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"postV1PipelinesPosthog"}},"/v1/pipelines/batch":{"post":{"summary":"Mixed batch of identify/track/page/screen/group/alias calls; bad calls are rejected by index, the rest land","tags":["pipelines"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"batch":{"minItems":1,"maxItems":1000,"type":"array","items":{}}},"required":["batch"]}}}},"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PostV1PipelinesByTypeResponse"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"postV1PipelinesBatch"}},"/v2/entity":{"post":{"summary":"Unified entity call for people and objects: identify, event, page, screen, delete, merge, add/delete relationships","tags":["pipelines"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"type":{"type":"string","enum":["person","object"]},"identifiers":{"$ref":"#/components/schemas/Identifiers2"},"action":{"type":"string","enum":["identify","event","page","screen","delete","merge","add_relationships","delete_relationships"]},"name":{"type":"string","maxLength":128},"attributes":{"type":"object","additionalProperties":{}},"timestamp":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"messageId":{"type":"string","minLength":1,"maxLength":256},"primary":{"$ref":"#/components/schemas/Identifiers2"},"relationships":{"maxItems":100,"type":"array","items":{"type":"object","properties":{"objectType":{"type":"string","pattern":"^[a-z][a-z0-9_]{0,62}$"},"objectId":{"type":"string","minLength":1,"maxLength":256},"kind":{"type":"string","maxLength":64}},"required":["objectType","objectId"]}}},"required":["type","identifiers","action"]}}}},"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"ok":{"type":"boolean","enum":[true]}},"required":["ok"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"postV2Entity"}},"/v2/batch":{"post":{"tags":["pipelines"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"requests":{"minItems":1,"maxItems":1000,"type":"array","items":{}}},"required":["requests"]}}}},"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PostV1PipelinesByTypeResponse"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"postV2Batch"}},"/v1/metrics/ingest":{"post":{"summary":"A custom sender reports an outcome for a delivery id (delivered, opened, clicked, converted, bounced, spammed, dropped, deferred, failed); it feeds the same status, suppression and reports as provider events","tags":["metrics"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"deliveryId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"metric":{"type":"string","enum":["delivered","opened","clicked","converted","bounced","spammed","dropped","deferred","failed"]},"bounceType":{"type":"string","enum":["hard","soft"]},"reason":{"type":"string","maxLength":500},"eventId":{"type":"string","minLength":1,"maxLength":128},"timestamp":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"href":{"type":"string","maxLength":2000,"format":"uri"},"userAgent":{"type":"string","maxLength":512}},"required":["deliveryId","metric"]}}}},"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"ok":{"type":"boolean","enum":[true]}},"required":["ok"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"postV1MetricsIngest"}},"/v1/metrics/{name}/properties":{"get":{"tags":["metrics"],"parameters":[{"schema":{"type":"integer","minimum":1,"maximum":200},"in":"query","name":"limit","required":false,"description":"Page size; omitted returns the whole list"},{"schema":{"type":"string","pattern":"^\\d{1,9}$"},"in":"query","name":"cursor","required":false,"description":"Opaque: the `nextCursor` of the previous page"},{"schema":{"type":"string","minLength":1,"maxLength":128},"in":"path","name":"name","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"items":{"type":"array","items":{"$ref":"#/components/schemas/ItemsItem148"}},"nextCursor":{"nullable":true,"type":"string"}},"required":["items","nextCursor"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1MetricsByNameProperties"}},"/v1/metric-properties/{id}":{"get":{"tags":["metrics"],"parameters":[{"schema":{"type":"string","minLength":1,"maxLength":600},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ItemsItem148"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1MetricPropertiesById"}},"/v1/pipelines/rudderstack":{"post":{"summary":"RudderStack-format events (single or batch): use as a webhook destination in RudderStack","tags":["pipelines"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"anyOf":[{"type":"object","properties":{"batch":{"minItems":1,"maxItems":1000,"type":"array","items":{"type":"object","properties":{"type":{"type":"string","enum":["identify","track","page","screen","group","alias"]}},"required":["type"],"additionalProperties":{}}}},"required":["batch"]},{"type":"object","properties":{"type":{"type":"string","enum":["identify","track","page","screen","group","alias"]}},"required":["type"],"additionalProperties":{}}]}}}},"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PostV1PipelinesByTypeResponse"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"postV1PipelinesRudderstack"}},"/v1/embeds":{"post":{"summary":"Signed, expiring link to embed a read-only segment or journey view in another site (only the given origin may frame it)","tags":["embeds"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"kind":{"type":"string","enum":["segment","workflow"]},"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"origin":{"type":"string","maxLength":200,"format":"uri"},"ttlMinutes":{"default":60,"type":"integer","minimum":1,"maximum":1440}},"required":["kind","id","origin"]}}}},"responses":{"201":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetV1OutboundSequencesByIdShareResponse"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"postV1Embeds"}},"/p/embed/{token}":{"get":{"summary":"Embedded read-only segment or journey view","tags":["embeds"],"parameters":[{"schema":{"type":"string","minLength":20,"maxLength":1200},"in":"path","name":"token","required":true}],"security":[],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"string"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getPEmbedByToken"}},"/v1/collections":{"post":{"tags":["collections"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","pattern":"^[a-z][a-z0-9_]{0,62}$"},"description":{"type":"string","maxLength":500},"rows":{"maxItems":20000,"type":"array","items":{"type":"object","additionalProperties":{}}},"csv":{"type":"string","maxLength":5000000}},"required":["name"]}}}},"responses":{"201":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PostV1CollectionsResponse"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"postV1Collections"},"get":{"tags":["collections"],"parameters":[{"schema":{"type":"integer","minimum":1,"maximum":200},"in":"query","name":"limit","required":false,"description":"Page size; omitted returns the whole list"},{"schema":{"type":"string","pattern":"^\\d{1,9}$"},"in":"query","name":"cursor","required":false,"description":"Opaque: the `nextCursor` of the previous page"}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"items":{"type":"array","items":{"$ref":"#/components/schemas/PostV1CollectionsResponse"}},"nextCursor":{"nullable":true,"type":"string"}},"required":["items","nextCursor"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1Collections"}},"/v1/collections/{id}":{"get":{"tags":["collections"],"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PostV1CollectionsResponse"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1CollectionsById"},"put":{"tags":["collections"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","pattern":"^[a-z][a-z0-9_]{0,62}$"},"description":{"nullable":true,"type":"string","maxLength":500}}}}}},"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PostV1CollectionsResponse"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"putV1CollectionsById"},"delete":{"tags":["collections"],"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"ok":{"type":"boolean","enum":[true]}},"required":["ok"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"deleteV1CollectionsById"}},"/v1/collections/{id}/content":{"get":{"tags":["collections"],"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"rows":{"type":"array","items":{"type":"object","additionalProperties":{}}}},"required":["rows"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1CollectionsByIdContent"},"put":{"summary":"Replaces every row (JSON array of objects, or CSV text with a header row)","tags":["collections"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"rows":{"maxItems":20000,"type":"array","items":{"type":"object","additionalProperties":{}}},"csv":{"type":"string","maxLength":5000000}}}}}},"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PostV1CollectionsResponse"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"putV1CollectionsByIdContent"}},"/v1/data-sources":{"post":{"tags":["objects"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":128},"typeKey":{"type":"string","pattern":"^[a-z][a-z0-9_]{0,62}$"}},"required":["name","typeKey"]}}}},"responses":{"201":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PostV1DataSourcesResponse"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"postV1DataSources"},"get":{"tags":["objects"],"parameters":[{"schema":{"type":"integer","minimum":1,"maximum":200},"in":"query","name":"limit","required":false,"description":"Page size; omitted returns the whole list"},{"schema":{"type":"string","pattern":"^\\d{1,9}$"},"in":"query","name":"cursor","required":false,"description":"Opaque: the `nextCursor` of the previous page"}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"items":{"type":"array","items":{"$ref":"#/components/schemas/PostV1DataSourcesResponse"}},"nextCursor":{"nullable":true,"type":"string"}},"required":["items","nextCursor"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1DataSources"}},"/v1/data-sources/{id}":{"get":{"tags":["objects"],"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PostV1DataSourcesResponse"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1DataSourcesById"},"patch":{"tags":["objects"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":128},"status":{"type":"string","enum":["active","paused"]}}}}}},"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PostV1DataSourcesResponse"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"patchV1DataSourcesById"},"delete":{"tags":["objects"],"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"ok":{"type":"boolean","enum":[true]}},"required":["ok"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"deleteV1DataSourcesById"}},"/v1/data-sources/{id}/mapping":{"get":{"tags":["objects"],"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"mapping":{"nullable":true,"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"dataSourceId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"externalIdField":{"type":"string"},"nameField":{"nullable":true,"type":"string"},"fields":{"type":"object","additionalProperties":{"type":"string"}}},"required":["id","dataSourceId","externalIdField","nameField","fields"],"additionalProperties":false}},"required":["mapping"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1DataSourcesByIdMapping"},"put":{"tags":["objects"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"externalIdField":{"type":"string","minLength":1,"maxLength":128},"nameField":{"nullable":true,"type":"string","maxLength":128},"fields":{"default":{},"type":"object","additionalProperties":{"type":"string","minLength":1,"maxLength":128}}},"required":["externalIdField"]}}}},"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PutV1DataSourcesByIdMappingResponse"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"putV1DataSourcesByIdMapping"}},"/v1/source-mappings/{id}":{"get":{"tags":["objects"],"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PutV1DataSourcesByIdMappingResponse"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1SourceMappingsById"}},"/v1/data-sources/{id}/records":{"post":{"summary":"Send up to 500 source records; the mapping turns them into object upserts by external id","tags":["objects"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"records":{"minItems":1,"maxItems":500,"type":"array","items":{"type":"object","additionalProperties":{}}}},"required":["records"]}}}},"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PostV1ObjectsByTypeBulkResponse"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"postV1DataSourcesByIdRecords"}},"/v1/profiles/{id}/objects":{"get":{"tags":["objects"],"parameters":[{"schema":{"type":"integer","minimum":1,"maximum":200},"in":"query","name":"limit","required":false,"description":"Page size; omitted returns the whole list"},{"schema":{"type":"string","pattern":"^\\d{1,9}$"},"in":"query","name":"cursor","required":false,"description":"Opaque: the `nextCursor` of the previous page"},{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"items":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string"},"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"externalId":{"nullable":true,"type":"string"},"name":{"type":"string"},"role":{"nullable":true,"type":"string"}},"required":["type","id","externalId","name","role"],"additionalProperties":false}},"nextCursor":{"nullable":true,"type":"string"}},"required":["items","nextCursor"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1ProfilesByIdObjects"}},"/v1/analytics/engagement":{"get":{"summary":"Opens or clicks by country, email client or device (machine opens excluded unless includeMachine)","tags":["analytics"],"parameters":[{"schema":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}(?:[T ]\\d{2}:\\d{2}(?::\\d{2}(?:\\.\\d+)?)?(?:Z|[+-]\\d{2}:?\\d{2})?)?$","format":"date"},"in":"query","name":"from","required":true},{"schema":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}(?:[T ]\\d{2}:\\d{2}(?::\\d{2}(?:\\.\\d+)?)?(?:Z|[+-]\\d{2}:?\\d{2})?)?$","format":"date"},"in":"query","name":"to","required":true},{"schema":{"default":"client","type":"string","enum":["country","client","device"]},"in":"query","name":"by","required":false},{"schema":{"default":"open","type":"string","enum":["open","click"]},"in":"query","name":"kind","required":false},{"schema":{"type":"string","maxLength":32},"in":"query","name":"sourceKind","required":false},{"schema":{"type":"string","maxLength":128},"in":"query","name":"sourceId","required":false},{"schema":{"type":"string","enum":["true","false"]},"in":"query","name":"includeMachine","required":false}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"by":{"type":"string","enum":["country","client","device"]},"kind":{"type":"string","enum":["open","click"]},"rows":{"$ref":"#/components/schemas/Rows"}},"required":["by","kind","rows"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1AnalyticsEngagement"}},"/v1/analytics/engagement/heatmap":{"get":{"summary":"Opens or clicks by weekday and hour of day in the given time zone (machine opens excluded unless includeMachine)","tags":["analytics"],"parameters":[{"schema":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}(?:[T ]\\d{2}:\\d{2}(?::\\d{2}(?:\\.\\d+)?)?(?:Z|[+-]\\d{2}:?\\d{2})?)?$","format":"date"},"in":"query","name":"from","required":true},{"schema":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}(?:[T ]\\d{2}:\\d{2}(?::\\d{2}(?:\\.\\d+)?)?(?:Z|[+-]\\d{2}:?\\d{2})?)?$","format":"date"},"in":"query","name":"to","required":true},{"schema":{"default":"open","type":"string","enum":["open","click"]},"in":"query","name":"kind","required":false},{"schema":{"default":"UTC","type":"string","minLength":1,"maxLength":64},"in":"query","name":"timezone","required":false},{"schema":{"type":"string","enum":["true","false"]},"in":"query","name":"includeMachine","required":false}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"kind":{"type":"string","enum":["open","click"]},"timezone":{"type":"string"},"cells":{"type":"array","items":{"type":"object","properties":{"weekday":{"type":"integer","minimum":0,"maximum":6},"hour":{"type":"integer","minimum":0,"maximum":23},"events":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["weekday","hour","events"],"additionalProperties":false}}},"required":["kind","timezone","cells"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1AnalyticsEngagementHeatmap"}},"/v1/analytics/assets/downloads":{"get":{"summary":"Tracked asset links: lifetime hits, plus asset_downloaded events and distinct people in the range","tags":["analytics"],"parameters":[{"schema":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}(?:[T ]\\d{2}:\\d{2}(?::\\d{2}(?:\\.\\d+)?)?(?:Z|[+-]\\d{2}:?\\d{2})?)?$","format":"date"},"in":"query","name":"from","required":true},{"schema":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}(?:[T ]\\d{2}:\\d{2}(?::\\d{2}(?:\\.\\d+)?)?(?:Z|[+-]\\d{2}:?\\d{2})?)?$","format":"date"},"in":"query","name":"to","required":true},{"schema":{"type":"integer","minimum":1,"maximum":200},"in":"query","name":"limit","required":false,"description":"Page size; omitted returns the whole list"},{"schema":{"type":"string","pattern":"^\\d{1,9}$"},"in":"query","name":"cursor","required":false,"description":"Opaque: the `nextCursor` of the previous page"}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"items":{"type":"array","items":{"type":"object","properties":{"linkId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"assetId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"label":{"type":"string"},"revoked":{"type":"boolean"},"totalHits":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"recordedDownloads":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"people":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["linkId","assetId","label","revoked","totalHits","recordedDownloads","people"],"additionalProperties":false}},"nextCursor":{"nullable":true,"type":"string"}},"required":["items","nextCursor"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1AnalyticsAssetsDownloads"}},"/v1/analytics/content-slots":{"get":{"summary":"Impressions per dynamic content slot and per matching rule","tags":["analytics"],"parameters":[{"schema":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}(?:[T ]\\d{2}:\\d{2}(?::\\d{2}(?:\\.\\d+)?)?(?:Z|[+-]\\d{2}:?\\d{2})?)?$","format":"date"},"in":"query","name":"from","required":true},{"schema":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}(?:[T ]\\d{2}:\\d{2}(?::\\d{2}(?:\\.\\d+)?)?(?:Z|[+-]\\d{2}:?\\d{2})?)?$","format":"date"},"in":"query","name":"to","required":true},{"schema":{"type":"integer","minimum":1,"maximum":200},"in":"query","name":"limit","required":false,"description":"Page size; omitted returns the whole list"},{"schema":{"type":"string","pattern":"^\\d{1,9}$"},"in":"query","name":"cursor","required":false,"description":"Opaque: the `nextCursor` of the previous page"}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"items":{"type":"array","items":{"type":"object","properties":{"key":{"type":"string"},"name":{"type":"string"},"impressions":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"byRule":{"type":"array","items":{"type":"object","properties":{"matched":{"type":"string"},"impressions":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["matched","impressions"],"additionalProperties":false}}},"required":["key","name","impressions","byRule"],"additionalProperties":false}},"nextCursor":{"nullable":true,"type":"string"}},"required":["items","nextCursor"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1AnalyticsContentSlots"}},"/v1/analytics/sources/{kind}/{id}/links":{"get":{"summary":"Clicks per link for a campaign, journey or sequence; pass stepKey for one action","tags":["analytics"],"parameters":[{"schema":{"type":"string","maxLength":128},"in":"query","name":"stepKey","required":false},{"schema":{"type":"string","maxLength":128},"in":"query","name":"variantKey","required":false},{"schema":{"type":"string","enum":["true","false"]},"in":"query","name":"byVariant","required":false},{"schema":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}(?:[T ]\\d{2}:\\d{2}(?::\\d{2}(?:\\.\\d+)?)?(?:Z|[+-]\\d{2}:?\\d{2})?)?$","format":"date"},"in":"query","name":"from","required":false},{"schema":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}(?:[T ]\\d{2}:\\d{2}(?::\\d{2}(?:\\.\\d+)?)?(?:Z|[+-]\\d{2}:?\\d{2})?)?$","format":"date"},"in":"query","name":"to","required":false},{"schema":{"type":"string","minLength":1,"maxLength":32},"in":"path","name":"kind","required":true},{"schema":{"type":"string","minLength":1,"maxLength":128},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"rows":{"type":"array","items":{"type":"object","properties":{"url":{"type":"string"},"clicks":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"uniqueClicks":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"variantKey":{"nullable":true,"type":"string"}},"required":["url","clicks","uniqueClicks"],"additionalProperties":false}}},"required":["rows"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1AnalyticsSourcesByKindByIdLinks"}},"/v1/analytics/sources/{kind}/{id}/actions":{"get":{"summary":"Sent, delivered, bounced, unique opens and clicks per action of a journey or sequence","tags":["analytics"],"parameters":[{"schema":{"type":"integer","minimum":1,"maximum":200},"in":"query","name":"limit","required":false,"description":"Page size; omitted returns the whole list"},{"schema":{"type":"string","pattern":"^\\d{1,9}$"},"in":"query","name":"cursor","required":false,"description":"Opaque: the `nextCursor` of the previous page"},{"schema":{"type":"string","minLength":1,"maxLength":32},"in":"path","name":"kind","required":true},{"schema":{"type":"string","minLength":1,"maxLength":128},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"items":{"type":"array","items":{"type":"object","properties":{"stepKey":{"nullable":true,"type":"string"},"sent":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"delivered":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"bounced":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"failed":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"openedUnique":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"clickedUnique":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["stepKey","sent","delivered","bounced","failed","openedUnique","clickedUnique"],"additionalProperties":false}},"nextCursor":{"nullable":true,"type":"string"}},"required":["items","nextCursor"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1AnalyticsSourcesByKindByIdActions"}},"/v1/analytics/deliveries/export":{"get":{"summary":"Delivery-level export with open and click counts; format=csv returns the CSV text in `csv`","tags":["analytics"],"parameters":[{"schema":{"type":"string","maxLength":32},"in":"query","name":"sourceKind","required":false},{"schema":{"type":"string","maxLength":128},"in":"query","name":"sourceId","required":false},{"schema":{"type":"string","maxLength":128},"in":"query","name":"stepKey","required":false},{"schema":{"type":"string","maxLength":32},"in":"query","name":"status","required":false},{"schema":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}(?:[T ]\\d{2}:\\d{2}(?::\\d{2}(?:\\.\\d+)?)?(?:Z|[+-]\\d{2}:?\\d{2})?)?$","format":"date"},"in":"query","name":"from","required":true},{"schema":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}(?:[T ]\\d{2}:\\d{2}(?::\\d{2}(?:\\.\\d+)?)?(?:Z|[+-]\\d{2}:?\\d{2})?)?$","format":"date"},"in":"query","name":"to","required":true},{"schema":{"default":"json","type":"string","enum":["json","csv"]},"in":"query","name":"format","required":false}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"items":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"profileId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"channel":{"type":"string"},"destination":{"nullable":true,"type":"string"},"status":{"type":"string"},"sourceKind":{"type":"string"},"sourceId":{"type":"string"},"stepKey":{"nullable":true,"type":"string"},"variantKey":{"nullable":true,"type":"string"},"subject":{"nullable":true,"type":"string"},"sentAt":{"nullable":true,"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"createdAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"opens":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"clicks":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["id","profileId","channel","destination","status","sourceKind","sourceId","stepKey","variantKey","subject","sentAt","createdAt","opens","clicks"],"additionalProperties":false}},"truncated":{"type":"boolean"},"csv":{"nullable":true,"type":"string"}},"required":["items","truncated","csv"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1AnalyticsDeliveriesExport"}},"/v1/analytics/dashboards":{"get":{"summary":"Dashboards; ?archived=true lists the archived ones","tags":["analytics"],"parameters":[{"schema":{"type":"string","enum":["true","false"]},"in":"query","name":"archived","required":false},{"schema":{"type":"integer","minimum":1,"maximum":200},"in":"query","name":"limit","required":false,"description":"Page size; omitted returns the whole list"},{"schema":{"type":"string","pattern":"^\\d{1,9}$"},"in":"query","name":"cursor","required":false,"description":"Opaque: the `nextCursor` of the previous page"}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"items":{"type":"array","items":{"$ref":"#/components/schemas/ItemsItem149"}},"nextCursor":{"nullable":true,"type":"string"}},"required":["items","nextCursor"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1AnalyticsDashboards"},"post":{"tags":["analytics"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":128},"widgets":{"default":[],"maxItems":24,"type":"array","items":{"$ref":"#/components/schemas/WidgetsItem2"}}},"required":["name"]}}}},"responses":{"201":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ItemsItem149"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"postV1AnalyticsDashboards"}},"/v1/analytics/dashboards/batch/archive":{"post":{"tags":["analytics"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PostV1SnippetsBulkDeleteBody"}}}},"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"count":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["count"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"postV1AnalyticsDashboardsBatchArchive"}},"/v1/analytics/dashboards/batch/restore":{"post":{"tags":["analytics"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PostV1SnippetsBulkDeleteBody"}}}},"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"count":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["count"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"postV1AnalyticsDashboardsBatchRestore"}},"/v1/analytics/dashboards/owners/batch/update":{"post":{"summary":"Reassign dashboards to another member (null = unassigned)","tags":["analytics"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PostV1AnalyticsReportsOwnersBatchUpdateBody"}}}},"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"count":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["count"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"postV1AnalyticsDashboardsOwnersBatchUpdate"}},"/v1/analytics/dashboards/{id}/widgets/{reportId}":{"put":{"summary":"Add a report widget, or replace the one already showing it","tags":["analytics"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"title":{"nullable":true,"type":"string","maxLength":128},"size":{"default":"half","type":"string","enum":["half","full"]}}}}}},"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true},{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"reportId","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ItemsItem149"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"putV1AnalyticsDashboardsByIdWidgetsByReportId"},"delete":{"tags":["analytics"],"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true},{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"reportId","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ItemsItem149"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"deleteV1AnalyticsDashboardsByIdWidgetsByReportId"}},"/v1/analytics/dashboards/{id}/export":{"get":{"summary":"Every widget as one CSV","tags":["analytics"],"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"filename":{"type":"string"},"csv":{"type":"string"}},"required":["filename","csv"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1AnalyticsDashboardsByIdExport"}},"/v1/analytics/dashboards/{id}/definition/export":{"get":{"summary":"The dashboard and its reports as portable JSON (no schedules, recipients or sharing)","tags":["analytics"],"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"version":{"type":"number","enum":[1]},"dashboard":{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":128},"widgets":{"maxItems":24,"type":"array","items":{"type":"object","properties":{"report":{"type":"integer","minimum":0,"maximum":9007199254740991},"title":{"nullable":true,"type":"string","maxLength":128},"size":{"default":"half","type":"string","enum":["half","full"]}},"required":["report","size"],"additionalProperties":false}}},"required":["name","widgets"],"additionalProperties":false},"reports":{"maxItems":24,"type":"array","items":{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":200},"query":{"$ref":"#/components/schemas/Query"},"rollingDays":{"default":null,"nullable":true,"type":"integer","minimum":1,"maximum":365}},"required":["name","query","rollingDays"],"additionalProperties":false}}},"required":["version","dashboard","reports"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1AnalyticsDashboardsByIdDefinitionExport"}},"/v1/analytics/dashboards/import":{"post":{"summary":"Create a dashboard and its reports from an exported definition","tags":["analytics"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"version":{"type":"number","enum":[1]},"dashboard":{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":128},"widgets":{"maxItems":24,"type":"array","items":{"type":"object","properties":{"report":{"type":"integer","minimum":0,"maximum":9007199254740991},"title":{"nullable":true,"type":"string","maxLength":128},"size":{"default":"half","type":"string","enum":["half","full"]}},"required":["report"]}}},"required":["name","widgets"]},"reports":{"maxItems":24,"type":"array","items":{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":200},"query":{"$ref":"#/components/schemas/Query3"},"rollingDays":{"default":null,"nullable":true,"type":"integer","minimum":1,"maximum":365}},"required":["name","query"]}}},"required":["version","dashboard","reports"]}}}},"responses":{"201":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ItemsItem149"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"postV1AnalyticsDashboardsImport"}},"/v1/analytics/dashboards/{id}":{"get":{"tags":["analytics"],"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ItemsItem149"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1AnalyticsDashboardsById"},"patch":{"tags":["analytics"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":128},"widgets":{"maxItems":24,"type":"array","items":{"$ref":"#/components/schemas/WidgetsItem2"}}}}}}},"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ItemsItem149"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"patchV1AnalyticsDashboardsById"},"delete":{"tags":["analytics"],"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"ok":{"type":"boolean","enum":[true]}},"required":["ok"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"deleteV1AnalyticsDashboardsById"}},"/v1/analytics/dashboards/{id}/clone":{"post":{"summary":"Copy a dashboard with its widgets","tags":["analytics"],"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"201":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ItemsItem149"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"postV1AnalyticsDashboardsByIdClone"}},"/v1/analytics/dashboards/{id}/run":{"get":{"summary":"Runs every widget report; a failing widget carries its own error","tags":["analytics"],"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"name":{"type":"string"},"widgets":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"reportId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"title":{"nullable":true,"type":"string","maxLength":128},"size":{"default":"half","type":"string","enum":["half","full"]},"reportName":{"nullable":true,"type":"string"},"run":{"nullable":true,"type":"object","properties":{"kind":{"type":"string"},"result":{}},"required":["kind","result"],"additionalProperties":false},"error":{"nullable":true,"type":"string"}},"required":["id","reportId","size","reportName","run","error"],"additionalProperties":false}}},"required":["id","name","widgets"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1AnalyticsDashboardsByIdRun"}},"/v1/analytics/rfm":{"get":{"summary":"Customers grouped by how recently and how often they ordered (champions, at risk, lost ...); needs 25 buyers","tags":["analytics"],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"orderEvent":{"type":"string"},"customers":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"minCustomers":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"enough":{"type":"boolean"},"reason":{"nullable":true,"type":"string"},"groups":{"type":"array","items":{"type":"object","properties":{"key":{"type":"string"},"label":{"type":"string"},"meaning":{"type":"string"},"customers":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"revenueMinor":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["key","label","meaning","customers","revenueMinor"],"additionalProperties":false}}},"required":["orderEvent","customers","minCustomers","enough","reason","groups"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1AnalyticsRfm"}},"/v1/analytics/customer-insights":{"get":{"summary":"Buyers, repeat rate, order value, days between orders, new versus returning buyers and customers at risk","tags":["analytics"],"parameters":[{"schema":{"default":90,"type":"integer","minimum":7,"maximum":365},"in":"query","name":"days","required":false}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"orderEvent":{"type":"string"},"days":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"buyers":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"repeatBuyers":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"repeatRate":{"nullable":true,"type":"number"},"orders":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"revenueMinor":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"avgOrderMinor":{"nullable":true,"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"avgOrdersPerBuyer":{"nullable":true,"type":"number"},"avgDaysBetweenOrders":{"nullable":true,"type":"number"},"newBuyers":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"returningBuyers":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"newRevenueMinor":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"returningRevenueMinor":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"atRisk":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["orderEvent","days","buyers","repeatBuyers","repeatRate","orders","revenueMinor","avgOrderMinor","avgOrdersPerBuyer","avgDaysBetweenOrders","newBuyers","returningBuyers","newRevenueMinor","returningRevenueMinor","atRisk"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1AnalyticsCustomerInsights"}},"/v1/analytics/deliverability-by-domain":{"get":{"summary":"Email delivery, bounce, complaint and open rates per recipient mailbox domain","tags":["analytics"],"parameters":[{"schema":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}(?:[T ]\\d{2}:\\d{2}(?::\\d{2}(?:\\.\\d+)?)?(?:Z|[+-]\\d{2}:?\\d{2})?)?$","format":"date"},"in":"query","name":"from","required":true},{"schema":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}(?:[T ]\\d{2}:\\d{2}(?::\\d{2}(?:\\.\\d+)?)?(?:Z|[+-]\\d{2}:?\\d{2})?)?$","format":"date"},"in":"query","name":"to","required":true},{"schema":{"default":25,"type":"integer","minimum":1,"maximum":100},"in":"query","name":"limit","required":false}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"rows":{"type":"array","items":{"type":"object","properties":{"domain":{"type":"string"},"sent":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"delivered":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"bounced":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"complained":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"opened":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"clicked":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"deliveryRate":{"nullable":true,"type":"number"},"bounceRate":{"nullable":true,"type":"number"},"complaintRate":{"nullable":true,"type":"number"},"openRate":{"nullable":true,"type":"number"}},"required":["domain","sent","delivered","bounced","complained","opened","clicked","deliveryRate","bounceRate","complaintRate","openRate"],"additionalProperties":false}},"truncated":{"type":"boolean"}},"required":["rows","truncated"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1AnalyticsDeliverabilityByDomain"}},"/v1/account-exports":{"post":{"summary":"Export the whole workspace (profiles, segments, campaigns, templates, flows, forms, suppressions, events, lists) as a zip of NDJSON plus manifest","tags":["platform"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"datasets":{"maxItems":20,"type":"array","items":{"type":"string","enum":["profiles","segments","campaigns","templates","workflows","forms","suppressions","events","lists"]}},"since":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"}}}}}},"responses":{"202":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PostV1AccountExportsResponse"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"postV1AccountExports"},"get":{"tags":["platform"],"parameters":[{"schema":{"default":25,"type":"integer","minimum":1,"maximum":100},"in":"query","name":"limit","required":false},{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"query","name":"cursor","required":false}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"items":{"type":"array","items":{"$ref":"#/components/schemas/PostV1AccountExportsResponse"}},"nextCursor":{"nullable":true,"type":"string"}},"required":["items","nextCursor"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1AccountExports"}},"/v1/account-exports/{id}":{"get":{"tags":["platform"],"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PostV1AccountExportsResponse"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1AccountExportsById"}},"/v1/account-exports/{id}/download":{"get":{"tags":["platform"],"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1AccountExportsByIdDownload"}},"/v1/oauth/clients":{"post":{"summary":"Register an OAuth client; the secret is shown once","tags":["platform"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":100},"redirectUris":{"minItems":1,"maxItems":10,"type":"array","items":{"type":"string","maxLength":2048,"format":"uri"}},"scopes":{"minItems":1,"maxItems":60,"type":"array","items":{"type":"string","minLength":1,"maxLength":60}},"public":{"default":false,"type":"boolean"}},"required":["name","redirectUris","scopes"]}}}},"security":[{"session":[]}],"responses":{"201":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"clientId":{"type":"string"},"name":{"type":"string"},"redirectUris":{"type":"array","items":{"type":"string"}},"scopes":{"type":"array","items":{"type":"string"}},"isPublic":{"type":"boolean"},"revokedAt":{"nullable":true,"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"createdAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"clientSecret":{"type":"string"}},"required":["id","clientId","name","redirectUris","scopes","isPublic","revokedAt","createdAt","clientSecret"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"postV1OauthClients"},"get":{"tags":["platform"],"parameters":[{"schema":{"type":"integer","minimum":1,"maximum":200},"in":"query","name":"limit","required":false,"description":"Page size; omitted returns the whole list"},{"schema":{"type":"string","pattern":"^\\d{1,9}$"},"in":"query","name":"cursor","required":false,"description":"Opaque: the `nextCursor` of the previous page"}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"items":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"clientId":{"type":"string"},"name":{"type":"string"},"redirectUris":{"type":"array","items":{"type":"string"}},"scopes":{"type":"array","items":{"type":"string"}},"isPublic":{"type":"boolean"},"revokedAt":{"nullable":true,"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"createdAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"}},"required":["id","clientId","name","redirectUris","scopes","isPublic","revokedAt","createdAt"],"additionalProperties":false}},"nextCursor":{"nullable":true,"type":"string"}},"required":["items","nextCursor"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1OauthClients"}},"/v1/oauth/clients/{id}":{"delete":{"tags":["platform"],"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"ok":{"type":"boolean","enum":[true]}},"required":["ok"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"deleteV1OauthClientsById"}},"/v1/oauth/authorize":{"get":{"summary":"Validate an authorization request and describe what the app asks for","tags":["platform"],"parameters":[{"schema":{"type":"string","minLength":1,"maxLength":100},"in":"query","name":"client_id","required":true},{"schema":{"type":"string","maxLength":2048,"format":"uri"},"in":"query","name":"redirect_uri","required":true},{"schema":{"default":"","type":"string","maxLength":1000},"in":"query","name":"scope","required":false},{"schema":{"type":"string","maxLength":500},"in":"query","name":"state","required":false},{"schema":{"type":"string","pattern":"^[A-Za-z0-9_-]{43,128}$"},"in":"query","name":"code_challenge","required":true},{"schema":{"type":"string","enum":["S256"]},"in":"query","name":"code_challenge_method","required":true}],"security":[{"session":[]}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"clientName":{"type":"string"},"clientId":{"type":"string"},"scopes":{"type":"array","items":{"type":"string"}},"redirectUri":{"type":"string"}},"required":["clientName","clientId","scopes","redirectUri"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1OauthAuthorize"},"post":{"summary":"The user approved: returns the redirect URL carrying the single-use code (PKCE S256 required)","tags":["platform"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"client_id":{"type":"string","minLength":1,"maxLength":100},"redirect_uri":{"type":"string","maxLength":2048,"format":"uri"},"scope":{"default":"","type":"string","maxLength":1000},"state":{"type":"string","maxLength":500},"code_challenge":{"type":"string","pattern":"^[A-Za-z0-9_-]{43,128}$"},"code_challenge_method":{"type":"string","enum":["S256"]}},"required":["client_id","redirect_uri","code_challenge","code_challenge_method"]}}}},"security":[{"session":[]}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"redirectUrl":{"type":"string"}},"required":["redirectUrl"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"postV1OauthAuthorize"}},"/oauth/token":{"post":{"summary":"RFC 6749 token endpoint: authorization_code (with PKCE) and refresh_token grants","tags":["platform"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"grant_type":{"type":"string","enum":["authorization_code","refresh_token"]},"client_id":{"type":"string","minLength":1,"maxLength":100},"client_secret":{"type":"string","maxLength":200},"code":{"type":"string","maxLength":200},"redirect_uri":{"type":"string","maxLength":2048},"code_verifier":{"type":"string","pattern":"^[A-Za-z0-9._~-]{43,128}$"},"refresh_token":{"type":"string","maxLength":200}},"required":["grant_type","client_id"]}}}},"security":[],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"access_token":{"type":"string"},"token_type":{"type":"string","enum":["Bearer"]},"expires_in":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"refresh_token":{"type":"string"},"scope":{"type":"string"}},"required":["access_token","token_type","expires_in","refresh_token","scope"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"postOauthToken"}},"/oauth/revoke":{"post":{"summary":"RFC 7009 token revocation","tags":["platform"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"token":{"type":"string","minLength":1,"maxLength":200},"client_id":{"type":"string","minLength":1,"maxLength":100},"client_secret":{"type":"string","maxLength":200}},"required":["token","client_id"]}}}},"security":[],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"ok":{"type":"boolean","enum":[true]}},"required":["ok"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"postOauthRevoke"}},"/v1/authorized-apps":{"get":{"tags":["platform"],"parameters":[{"schema":{"type":"integer","minimum":1,"maximum":200},"in":"query","name":"limit","required":false,"description":"Page size; omitted returns the whole list"},{"schema":{"type":"string","pattern":"^\\d{1,9}$"},"in":"query","name":"cursor","required":false,"description":"Opaque: the `nextCursor` of the previous page"}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"items":{"type":"array","items":{"$ref":"#/components/schemas/ItemsItem150"}},"nextCursor":{"nullable":true,"type":"string"}},"required":["items","nextCursor"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1AuthorizedApps"}},"/v1/authorized-apps/{clientId}":{"get":{"tags":["platform"],"parameters":[{"schema":{"type":"string","minLength":1,"maxLength":100},"in":"path","name":"clientId","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ItemsItem150"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1AuthorizedAppsByClientId"},"delete":{"tags":["platform"],"parameters":[{"schema":{"type":"string","minLength":1,"maxLength":100},"in":"path","name":"clientId","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"ok":{"type":"boolean","enum":[true]}},"required":["ok"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"deleteV1AuthorizedAppsByClientId"}},"/v1/agency/groups":{"get":{"tags":["agency"],"parameters":[{"schema":{"type":"integer","minimum":1,"maximum":200},"in":"query","name":"limit","required":false,"description":"Page size; omitted returns the whole list"},{"schema":{"type":"string","pattern":"^\\d{1,9}$"},"in":"query","name":"cursor","required":false,"description":"Opaque: the `nextCursor` of the previous page"}],"security":[{"session":[]}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"items":{"type":"array","items":{"$ref":"#/components/schemas/ItemsItem151"}},"nextCursor":{"nullable":true,"type":"string"}},"required":["items","nextCursor"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1AgencyGroups"},"post":{"tags":["agency"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":120},"workspaceIds":{"default":[],"maxItems":500,"type":"array","items":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}},"required":["name"]}}}},"security":[{"session":[]}],"responses":{"201":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ItemsItem151"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"postV1AgencyGroups"}},"/v1/agency/groups/{groupId}":{"get":{"tags":["agency"],"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"groupId","required":true}],"security":[{"session":[]}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ItemsItem151"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1AgencyGroupsByGroupId"},"put":{"summary":"Rename a group and/or replace its members","tags":["agency"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":120},"workspaceIds":{"$ref":"#/components/schemas/ProfileIds7"}}}}}},"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"groupId","required":true}],"security":[{"session":[]}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ItemsItem151"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"putV1AgencyGroupsByGroupId"},"delete":{"tags":["agency"],"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"groupId","required":true}],"security":[{"session":[]}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"ok":{"type":"boolean","enum":[true]}},"required":["ok"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"deleteV1AgencyGroupsByGroupId"}},"/v1/agency/groups/{groupId}/unlink":{"post":{"tags":["agency"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"workspaceIds":{"$ref":"#/components/schemas/LeadIds"}},"required":["workspaceIds"]}}}},"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"groupId","required":true}],"security":[{"session":[]}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ItemsItem151"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"postV1AgencyGroupsByGroupIdUnlink"}},"/v1/agency/quota":{"put":{"summary":"Set the monthly send cap on many clients at once (explicit workspaces and/or a group)","tags":["agency"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"sendsEmail":{"nullable":true,"type":"integer","minimum":0,"maximum":9007199254740991},"sendsSms":{"nullable":true,"type":"integer","minimum":0,"maximum":9007199254740991},"workspaceIds":{"$ref":"#/components/schemas/ProfileIds7"},"groupId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},"required":["sendsEmail","sendsSms"]}}}},"security":[{"session":[]}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"updated":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"workspaceIds":{"$ref":"#/components/schemas/Conflicts"}},"required":["updated","workspaceIds"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"putV1AgencyQuota"}},"/v1/agency/clients/{workspaceId}/api-keys":{"post":{"summary":"Mint an API key inside a client workspace; the key is bound to that client and audited there. Plaintext is returned once","tags":["agency"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PostV1ApiKeysBody"}}}},"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"workspaceId","required":true}],"security":[{"session":[]}],"responses":{"201":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PostV1ApiKeysResponse"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"postV1AgencyClientsByWorkspaceIdApiKeys"}},"/v1/roles/matrix":{"get":{"summary":"Module x read/write grid for every base role and custom role (the effective scopes the route checks enforce)","tags":["roles"],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"modules":{"type":"array","items":{"type":"string"}},"baseRoles":{"type":"object","additionalProperties":{"type":"object","additionalProperties":{"type":"object","properties":{"read":{"type":"boolean"},"write":{"type":"boolean"}},"required":["read","write"],"additionalProperties":false}}},"roles":{"type":"array","items":{"$ref":"#/components/schemas/RolesItem"}}},"required":["modules","baseRoles","roles"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1RolesMatrix"}},"/v1/roles/{id}/matrix":{"put":{"summary":"Set a custom role's per-module read/write; write implies read. You cannot grant a module you cannot write yourself","tags":["roles"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"matrix":{"type":"object","additionalProperties":{"type":"object","properties":{"read":{"type":"boolean"},"write":{"type":"boolean"}},"required":["read","write"]}}},"required":["matrix"]}}}},"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RolesItem"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"putV1RolesByIdMatrix"}},"/v1/user-groups":{"get":{"tags":["roles"],"parameters":[{"schema":{"type":"integer","minimum":1,"maximum":200},"in":"query","name":"limit","required":false,"description":"Page size; omitted returns the whole list"},{"schema":{"type":"string","pattern":"^\\d{1,9}$"},"in":"query","name":"cursor","required":false,"description":"Opaque: the `nextCursor` of the previous page"}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"items":{"type":"array","items":{"$ref":"#/components/schemas/ItemsItem152"}},"nextCursor":{"nullable":true,"type":"string"}},"required":["items","nextCursor"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1UserGroups"},"post":{"tags":["roles"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":120},"customRoleId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"userIds":{"$ref":"#/components/schemas/ProfileIds6"}},"required":["name","customRoleId"]}}}},"responses":{"201":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ItemsItem152"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"postV1UserGroups"}},"/v1/user-groups/{id}":{"get":{"tags":["roles"],"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ItemsItem152"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1UserGroupsById"},"put":{"tags":["roles"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":120},"customRoleId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"userIds":{"$ref":"#/components/schemas/ProfileIds5"}}}}}},"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ItemsItem152"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"putV1UserGroupsById"},"delete":{"tags":["roles"],"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"ok":{"type":"boolean","enum":[true]}},"required":["ok"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"deleteV1UserGroupsById"}},"/v1/user-groups/bulk-delete":{"post":{"summary":"Delete up to 100 user groups in one transaction","tags":["roles"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PostV1SnippetsBulkDeleteBody"}}}},"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"deleted":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["deleted"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"postV1UserGroupsBulkDelete"}},"/v1/invitations":{"get":{"tags":["members"],"parameters":[{"schema":{"type":"integer","minimum":1,"maximum":200},"in":"query","name":"limit","required":false,"description":"Page size; omitted returns the whole list"},{"schema":{"type":"string","pattern":"^\\d{1,9}$"},"in":"query","name":"cursor","required":false,"description":"Opaque: the `nextCursor` of the previous page"}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"items":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"email":{"type":"string"},"role":{"type":"string"},"expiresAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"createdAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"}},"required":["id","email","role","expiresAt","createdAt"],"additionalProperties":false}},"nextCursor":{"nullable":true,"type":"string"}},"required":["items","nextCursor"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1Invitations"}},"/v1/invitations/{id}/resend":{"post":{"summary":"Reissue the invitation link (the old one stops working); the token is returned once","tags":["members"],"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"security":[{"session":[]}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PostV1MembersResponse"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"postV1InvitationsByIdResend"}},"/v1/invitations/{id}":{"delete":{"tags":["members"],"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"security":[{"session":[]}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"ok":{"type":"boolean","enum":[true]}},"required":["ok"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"deleteV1InvitationsById"}},"/v1/members/by-email/{email}/permissions":{"get":{"summary":"One call: a member found by email with their role and effective module read/write grid","tags":["members"],"parameters":[{"schema":{"type":"string","minLength":3,"maxLength":320},"in":"path","name":"email","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"userId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"email":{"type":"string"},"name":{"type":"string"},"role":{"type":"string"},"modules":{"type":"array","items":{"type":"string"}},"matrix":{"type":"object","additionalProperties":{"type":"object","properties":{"read":{"type":"boolean"},"write":{"type":"boolean"}},"required":["read","write"],"additionalProperties":false}}},"required":["userId","email","name","role","modules","matrix"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1MembersByEmailByEmailPermissions"}},"/v1/workspace/transfer-ownership":{"post":{"summary":"Make another member the owner; you become an admin","tags":["members"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"userId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},"required":["userId"]}}}},"security":[{"session":[]}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"ok":{"type":"boolean","enum":[true]}},"required":["ok"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"postV1WorkspaceTransferOwnership"}},"/v1/notes":{"get":{"summary":"Newest notes across contacts and companies, newest first; page with `before`","tags":["leads"],"parameters":[{"schema":{"default":50,"type":"integer","minimum":1,"maximum":100},"in":"query","name":"limit","required":false},{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"query","name":"before","required":false}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"items":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"resource":{"type":"string","enum":["contact","company"]},"resourceId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"body":{"type":"string"},"authorId":{"type":"string"},"at":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"}},"required":["id","resource","resourceId","body","authorId","at"],"additionalProperties":false}},"nextBefore":{"nullable":true,"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},"required":["items","nextBefore"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1Notes"}},"/v1/leads/companies/{id}/notes":{"get":{"tags":["leads"],"parameters":[{"schema":{"default":50,"type":"integer","minimum":1,"maximum":200},"in":"query","name":"limit","required":false},{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"query","name":"cursor","required":false},{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"items":{"type":"array","items":{"$ref":"#/components/schemas/ItemsItem153"}},"nextCursor":{"nullable":true,"type":"string"}},"required":["items","nextCursor"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1LeadsCompaniesByIdNotes"},"post":{"tags":["leads"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"body":{"type":"string","minLength":1,"maxLength":5000}},"required":["body"]}}}},"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"201":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ItemsItem153"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"postV1LeadsCompaniesByIdNotes"}},"/v1/leads/companies/{id}/notes/{noteId}":{"patch":{"summary":"Edit a company note","tags":["leads"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"body":{"type":"string","minLength":1,"maxLength":5000}},"required":["body"]}}}},"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true},{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"noteId","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ItemsItem153"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"patchV1LeadsCompaniesByIdNotesByNoteId"},"delete":{"tags":["leads"],"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true},{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"noteId","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"ok":{"type":"boolean","enum":[true]}},"required":["ok"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"deleteV1LeadsCompaniesByIdNotesByNoteId"}},"/v1/leads/companies/{id}/merge":{"post":{"summary":"Merge duplicate companies into this one (contacts, notes and list memberships move; suppressions are untouched)","tags":["leads"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"mergeIds":{"$ref":"#/components/schemas/Ids2"}},"required":["mergeIds"]}}}},"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetV1LeadsCompaniesByIdResponse"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"postV1LeadsCompaniesByIdMerge"}},"/v1/leads/companies/{id}/stage":{"patch":{"summary":"Account stage and owner; written through to the outbound account so do-not-contact gates enrollment","tags":["leads"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"stage":{"type":"string","enum":["new","engaged","opportunity","customer","not_a_fit","do_not_contact"]},"ownerUserId":{"nullable":true,"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}}}}},"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetV1LeadsCompaniesByIdResponse"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"patchV1LeadsCompaniesByIdStage"}},"/v1/leads/companies/unify-accounts":{"post":{"summary":"Fold outbound accounts into lead companies by domain, keeping their status, owner and website","tags":["leads"],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"linked":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"created":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["linked","created"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"postV1LeadsCompaniesUnifyAccounts"}},"/v1/leads/company-lists":{"get":{"tags":["leads"],"parameters":[{"schema":{"type":"integer","minimum":1,"maximum":200},"in":"query","name":"limit","required":false,"description":"Page size; omitted returns the whole list"},{"schema":{"type":"string","pattern":"^\\d{1,9}$"},"in":"query","name":"cursor","required":false,"description":"Opaque: the `nextCursor` of the previous page"}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"items":{"type":"array","items":{"$ref":"#/components/schemas/ItemsItem154"}},"nextCursor":{"nullable":true,"type":"string"}},"required":["items","nextCursor"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1LeadsCompanyLists"},"post":{"tags":["leads"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":200},"description":{"nullable":true,"type":"string","maxLength":1000}},"required":["name"]}}}},"responses":{"201":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ItemsItem154"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"postV1LeadsCompanyLists"}},"/v1/leads/company-lists/{id}":{"delete":{"tags":["leads"],"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"ok":{"type":"boolean","enum":[true]}},"required":["ok"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"deleteV1LeadsCompanyListsById"}},"/v1/leads/company-lists/{id}/companies":{"get":{"tags":["leads"],"parameters":[{"schema":{"default":50,"type":"integer","minimum":1,"maximum":200},"in":"query","name":"limit","required":false},{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"query","name":"cursor","required":false},{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetV1LeadsCompaniesResponse"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1LeadsCompanyListsByIdCompanies"},"post":{"tags":["leads"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PostV1LeadsCompanyListsByIdCompaniesBody"}}}},"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"added":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["added"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"postV1LeadsCompanyListsByIdCompanies"}},"/v1/leads/company-lists/{id}/companies/remove":{"post":{"tags":["leads"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PostV1LeadsCompanyListsByIdCompaniesBody"}}}},"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"ok":{"type":"boolean","enum":[true]}},"required":["ok"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"postV1LeadsCompanyListsByIdCompaniesRemove"}},"/v1/leads/companies/{id}/source-contacts":{"post":{"summary":"Find contacts at an account. With no titles given, the AI assistant proposes the buyer titles first","tags":["leads"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"providerId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"titles":{"default":[],"maxItems":20,"type":"array","items":{"type":"string","maxLength":100}},"seniorities":{"default":[],"maxItems":10,"type":"array","items":{"type":"string","maxLength":50}},"limit":{"default":10,"type":"integer","minimum":1,"maximum":50},"offer":{"type":"string","maxLength":500}},"required":["providerId"]}}}},"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PostV1LeadsSearchResponse"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"postV1LeadsCompaniesByIdSourceContacts"}},"/v1/leads/saved-searches/{id}/run":{"post":{"summary":"Run a saved search now (and reveal emails if auto-enrich is on)","tags":["leads"],"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ItemsItem116"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"postV1LeadsSavedSearchesByIdRun"}},"/v1/marketing-events":{"get":{"tags":["events"],"parameters":[{"schema":{"default":50,"type":"integer","minimum":1,"maximum":200},"in":"query","name":"limit","required":false},{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"query","name":"cursor","required":false},{"schema":{"type":"string","enum":["scheduled","live","completed","cancelled"]},"in":"query","name":"status","required":false}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"items":{"$ref":"#/components/schemas/Items44"},"nextCursor":{"nullable":true,"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},"required":["items","nextCursor"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1MarketingEvents"},"post":{"tags":["events"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":200},"kind":{"default":"webinar","type":"string","enum":["webinar","event","conference","workshop"]},"startsAt":{"nullable":true,"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"endsAt":{"nullable":true,"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"url":{"nullable":true,"type":"string","maxLength":2000,"format":"uri"},"organizer":{"nullable":true,"type":"string","maxLength":200},"capacity":{"nullable":true,"type":"integer","minimum":0,"exclusiveMinimum":true,"maximum":9007199254740991},"status":{"default":"scheduled","type":"string","enum":["scheduled","live","completed","cancelled"]},"externalRef":{"nullable":true,"type":"string","maxLength":200}},"required":["name"]}}}},"responses":{"201":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ItemsItem155"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"postV1MarketingEvents"}},"/v1/marketing-events/{id}":{"get":{"tags":["events"],"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ItemsItem155"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1MarketingEventsById"},"patch":{"tags":["events"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":200},"kind":{"type":"string","enum":["webinar","event","conference","workshop"]},"startsAt":{"nullable":true,"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"endsAt":{"nullable":true,"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"url":{"nullable":true,"type":"string","maxLength":2000,"format":"uri"},"organizer":{"nullable":true,"type":"string","maxLength":200},"capacity":{"nullable":true,"type":"integer","minimum":0,"exclusiveMinimum":true,"maximum":9007199254740991},"status":{"type":"string","enum":["scheduled","live","completed","cancelled"]},"externalRef":{"nullable":true,"type":"string","maxLength":200}}}}}},"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ItemsItem155"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"patchV1MarketingEventsById"},"delete":{"tags":["events"],"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"ok":{"type":"boolean","enum":[true]}},"required":["ok"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"deleteV1MarketingEventsById"}},"/v1/marketing-events/{id}/registrations":{"get":{"tags":["events"],"parameters":[{"schema":{"default":50,"type":"integer","minimum":1,"maximum":200},"in":"query","name":"limit","required":false},{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"query","name":"cursor","required":false},{"schema":{"type":"string","enum":["registered","attended","no_show","cancelled"]},"in":"query","name":"status","required":false},{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"items":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"eventId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"email":{"type":"string"},"profileId":{"nullable":true,"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"status":{"type":"string","enum":["registered","attended","no_show","cancelled"]},"attendedAt":{"nullable":true,"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"durationSec":{"nullable":true,"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"createdAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"}},"required":["id","eventId","email","profileId","status","attendedAt","durationSec","createdAt"],"additionalProperties":false}},"nextCursor":{"nullable":true,"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},"required":["items","nextCursor"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1MarketingEventsByIdRegistrations"},"post":{"summary":"Register people; each registration is written to the timeline as event_registered (it is not marketing consent)","tags":["events"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"emails":{"minItems":1,"maxItems":1000,"type":"array","items":{"type":"string","maxLength":320}}},"required":["emails"]}}}},"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"registered":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"skipped":{"type":"array","items":{"type":"object","properties":{"email":{"type":"string"},"reason":{"type":"string"}},"required":["email","reason"],"additionalProperties":false}}},"required":["registered","skipped"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"postV1MarketingEventsByIdRegistrations"}},"/v1/marketing-events/{id}/registrations/cancel":{"post":{"tags":["events"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"email":{"type":"string","maxLength":320}},"required":["email"]}}}},"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"ok":{"type":"boolean","enum":[true]}},"required":["ok"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"postV1MarketingEventsByIdRegistrationsCancel"}},"/v1/marketing-events/{id}/attendance":{"post":{"summary":"Import attendance; writes event_attended (and optionally event_no_show) to the timeline for segments and workflows","tags":["events"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"rows":{"minItems":1,"maxItems":5000,"type":"array","items":{"type":"object","properties":{"email":{"type":"string","maxLength":320},"durationSec":{"type":"integer","minimum":0,"maximum":9007199254740991}},"required":["email"]}},"markNoShows":{"default":false,"type":"boolean"}},"required":["rows"]}}}},"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"attended":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"noShows":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["attended","noShows"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"postV1MarketingEventsByIdAttendance"}},"/v1/budgets":{"get":{"tags":["budgets"],"parameters":[{"schema":{"type":"string","maxLength":100},"in":"query","name":"campaignRef","required":false},{"schema":{"type":"integer","minimum":1,"maximum":200},"in":"query","name":"limit","required":false,"description":"Page size; omitted returns the whole list"},{"schema":{"type":"string","pattern":"^\\d{1,9}$"},"in":"query","name":"cursor","required":false,"description":"Opaque: the `nextCursor` of the previous page"}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"items":{"type":"array","items":{"$ref":"#/components/schemas/ItemsItem156"}},"nextCursor":{"nullable":true,"type":"string"}},"required":["items","nextCursor"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1Budgets"},"post":{"tags":["budgets"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":200},"campaignRef":{"nullable":true,"type":"string","maxLength":100},"currency":{"default":"USD","type":"string","minLength":3,"maxLength":3},"amountMinor":{"type":"integer","minimum":0,"maximum":9007199254740991},"startsOn":{"nullable":true,"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"},"endsOn":{"nullable":true,"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"},"notes":{"nullable":true,"type":"string","maxLength":2000}},"required":["name","amountMinor"]}}}},"responses":{"201":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ItemsItem156"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"postV1Budgets"}},"/v1/budgets/{id}":{"get":{"tags":["budgets"],"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ItemsItem156"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1BudgetsById"},"patch":{"tags":["budgets"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":200},"campaignRef":{"nullable":true,"type":"string","maxLength":100},"currency":{"type":"string","minLength":3,"maxLength":3},"amountMinor":{"type":"integer","minimum":0,"maximum":9007199254740991},"startsOn":{"nullable":true,"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"},"endsOn":{"nullable":true,"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"},"notes":{"nullable":true,"type":"string","maxLength":2000}}}}}},"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ItemsItem156"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"patchV1BudgetsById"},"delete":{"tags":["budgets"],"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"ok":{"type":"boolean","enum":[true]}},"required":["ok"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"deleteV1BudgetsById"}},"/v1/budgets/{id}/spend":{"get":{"tags":["budgets"],"parameters":[{"schema":{"type":"integer","minimum":1,"maximum":200},"in":"query","name":"limit","required":false,"description":"Page size; omitted returns the whole list"},{"schema":{"type":"string","pattern":"^\\d{1,9}$"},"in":"query","name":"cursor","required":false,"description":"Opaque: the `nextCursor` of the previous page"},{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"items":{"type":"array","items":{"$ref":"#/components/schemas/ItemsItem157"}},"nextCursor":{"nullable":true,"type":"string"}},"required":["items","nextCursor"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1BudgetsByIdSpend"},"post":{"summary":"Record a cost against a budget; repeating the same idempotencyKey returns the original line","tags":["budgets"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"amountMinor":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"spentOn":{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"},"description":{"nullable":true,"type":"string","maxLength":500},"idempotencyKey":{"type":"string","minLength":1,"maxLength":200}},"required":["amountMinor","spentOn","idempotencyKey"]}}}},"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"201":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ItemsItem157"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"postV1BudgetsByIdSpend"}},"/v1/budgets/{id}/spend/{spendId}":{"get":{"tags":["budgets"],"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true},{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"spendId","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ItemsItem157"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1BudgetsByIdSpendBySpendId"},"patch":{"summary":"Correct a cost line in place","tags":["budgets"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"amountMinor":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"spentOn":{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"},"description":{"nullable":true,"type":"string","maxLength":500}}}}}},"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true},{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"spendId","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ItemsItem157"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"patchV1BudgetsByIdSpendBySpendId"},"delete":{"tags":["budgets"],"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true},{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"spendId","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"ok":{"type":"boolean","enum":[true]}},"required":["ok"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"deleteV1BudgetsByIdSpendBySpendId"}},"/v1/ai/bulk/first-lines":{"post":{"summary":"Write a personalised opening line for every row of a prospect list; poll GET /v1/ai/jobs/:id (or /v1/jobs/:id). Drafts only: nothing is sent","tags":["ai"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"rows":{"$ref":"#/components/schemas/Rows2"},"offer":{"type":"string","maxLength":500}},"required":["rows"]}}}},"responses":{"202":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PostV1AiBulkFirstLinesResponse"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"postV1AiBulkFirstLines"}},"/v1/ai/bulk/custom":{"post":{"summary":"Run your own prompt over each row (per-row AI research column)","tags":["ai"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"rows":{"$ref":"#/components/schemas/Rows2"},"prompt":{"type":"string","minLength":1,"maxLength":2000}},"required":["rows","prompt"]}}}},"responses":{"202":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PostV1AiBulkFirstLinesResponse"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"postV1AiBulkCustom"}},"/v1/ai/jobs":{"get":{"tags":["ai"],"parameters":[{"schema":{"default":50,"type":"integer","minimum":1,"maximum":200},"in":"query","name":"limit","required":false},{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"query","name":"cursor","required":false}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"items":{"type":"array","items":{"$ref":"#/components/schemas/PostV1AiBulkFirstLinesResponse"}},"nextCursor":{"nullable":true,"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},"required":["items","nextCursor"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1AiJobs"}},"/v1/ai/jobs/{id}":{"get":{"tags":["ai"],"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PostV1AiBulkFirstLinesResponse"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1AiJobsById"}},"/v1/ai/sequence-draft":{"post":{"summary":"Draft a whole outreach sequence: creates one text template per email and returns SequenceSettings referencing them, ready to POST to /v1/outbound/sequences","tags":["ai"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"brief":{"type":"string","minLength":1,"maxLength":3000},"steps":{"default":4,"type":"integer","minimum":1,"maximum":8},"audience":{"type":"string","maxLength":300},"tone":{"type":"string","maxLength":60},"name":{"type":"string","minLength":1,"maxLength":200}},"required":["brief"]}}}},"responses":{"201":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string"},"settings":{"$ref":"#/components/schemas/Sequence2"},"templates":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"subject":{"type":"string"}},"required":["id","subject"],"additionalProperties":false}},"draft":{"type":"boolean","enum":[true]},"model":{"type":"string"}},"required":["name","settings","templates","draft","model"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"postV1AiSequenceDraft"}},"/v1/ai/prompt-templates":{"get":{"tags":["ai"],"parameters":[{"schema":{"type":"string","maxLength":100},"in":"query","name":"resourceRef","required":false},{"schema":{"type":"integer","minimum":1,"maximum":200},"in":"query","name":"limit","required":false,"description":"Page size; omitted returns the whole list"},{"schema":{"type":"string","pattern":"^\\d{1,9}$"},"in":"query","name":"cursor","required":false,"description":"Opaque: the `nextCursor` of the previous page"}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"items":{"type":"array","items":{"$ref":"#/components/schemas/ItemsItem158"}},"nextCursor":{"nullable":true,"type":"string"}},"required":["items","nextCursor"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1AiPromptTemplates"},"post":{"tags":["ai"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PostV1AiPromptTemplatesBody"}}}},"responses":{"201":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ItemsItem158"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"postV1AiPromptTemplates"}},"/v1/ai/prompt-templates/{id}":{"put":{"tags":["ai"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PostV1AiPromptTemplatesBody"}}}},"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ItemsItem158"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"putV1AiPromptTemplatesById"},"delete":{"tags":["ai"],"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"ok":{"type":"boolean","enum":[true]}},"required":["ok"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"deleteV1AiPromptTemplatesById"}},"/v1/profiles/by/{idType}/{value}":{"get":{"summary":"Fetch a profile by id, email, phone, external_id or anonymous_id","tags":["profiles"],"parameters":[{"schema":{"type":"string","enum":["id","email","phone","external_id","anonymous_id"]},"in":"path","name":"idType","required":true},{"schema":{"type":"string","minLength":1,"maxLength":320},"in":"path","name":"value","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ItemsItem2"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1ProfilesByByIdTypeByValue"},"patch":{"summary":"Update a profile addressed by any identifier","tags":["profiles"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PatchV1ProfilesByIdBody"}}}},"parameters":[{"schema":{"type":"string","enum":["id","email","phone","external_id","anonymous_id"]},"in":"path","name":"idType","required":true},{"schema":{"type":"string","minLength":1,"maxLength":320},"in":"path","name":"value","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ItemsItem2"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"patchV1ProfilesByByIdTypeByValue"},"delete":{"summary":"Delete a profile addressed by any identifier","tags":["profiles"],"parameters":[{"schema":{"type":"string","enum":["id","email","phone","external_id","anonymous_id"]},"in":"path","name":"idType","required":true},{"schema":{"type":"string","minLength":1,"maxLength":320},"in":"path","name":"value","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DeleteV1ProfilesByIdResponse"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"deleteV1ProfilesByByIdTypeByValue"}},"/v1/profiles/lookup":{"get":{"summary":"Fetch one profile by id, email, phone, externalId or anonymousId (first one given wins)","tags":["profiles"],"parameters":[{"schema":{"type":"string","maxLength":320},"in":"query","name":"email","required":false},{"schema":{"type":"string","maxLength":40},"in":"query","name":"phone","required":false},{"schema":{"type":"string","minLength":1,"maxLength":256},"in":"query","name":"externalId","required":false},{"schema":{"type":"string","minLength":1,"maxLength":256},"in":"query","name":"anonymousId","required":false},{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"query","name":"id","required":false}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ItemsItem2"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1ProfilesLookup"},"post":{"summary":"Batch read by ids, emails, phones or external ids; `keys` limits the attributes returned","tags":["profiles"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"ids":{"$ref":"#/components/schemas/ProfileIds7"},"emails":{"maxItems":500,"type":"array","items":{"type":"string","maxLength":320}},"phones":{"maxItems":500,"type":"array","items":{"type":"string","maxLength":40}},"externalIds":{"maxItems":500,"type":"array","items":{"type":"string","maxLength":256}},"keys":{"maxItems":100,"type":"array","items":{"type":"string","maxLength":128}}}}}}},"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"items":{"$ref":"#/components/schemas/Items"}},"required":["items"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"postV1ProfilesLookup"}},"/v1/profiles/subscribe":{"post":{"summary":"Subscribe a contact through a published form: consent starts as pending and the form double opt-in email goes out. `data` is the form field map including its consent checkbox.","tags":["forms"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","additionalProperties":{}},"pageUrl":{"type":"string","maxLength":2048},"formId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},"required":["data","formId"]}}}},"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PostIngestV1FormsByIdSubmitResponse"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"postV1ProfilesSubscribe"}},"/v1/consent/lookup":{"get":{"summary":"Consent state and active suppressions for an email address or phone number","tags":["consent"],"parameters":[{"schema":{"type":"string","maxLength":320},"in":"query","name":"email","required":false},{"schema":{"type":"string","maxLength":40},"in":"query","name":"phone","required":false}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"profileId":{"nullable":true,"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"items":{"$ref":"#/components/schemas/Items7"},"suppressions":{"type":"array","items":{"type":"object","properties":{"channel":{"type":"string","enum":["email","sms","whatsapp","push","postcard"]},"scope":{"type":"string"},"reason":{"type":"string"}},"required":["channel","scope","reason"],"additionalProperties":false}}},"required":["profileId","items","suppressions"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1ConsentLookup"}},"/v1/profiles/{id}/preference-link":{"post":{"summary":"Mint a signed link to the hosted preference page (/p/...) for this profile","tags":["consent"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"channel":{"default":"email","type":"string","enum":["email","sms","whatsapp","push","postcard"]},"topicId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}}}}},"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"url":{"type":"string"}},"required":["url"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"postV1ProfilesByIdPreferenceLink"}},"/v1/profiles/{id}/suppress":{"post":{"summary":"Suppress every address of the profile (or one channel): nothing is sent until an admin or marketer lifts a manual suppression","tags":["consent"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"channel":{"type":"string","enum":["email","sms","whatsapp","push","postcard"]}}}}}},"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"suppressed":{"$ref":"#/components/schemas/Suppressed"}},"required":["suppressed"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"postV1ProfilesByIdSuppress"}},"/v1/profiles/{id}/unsuppress":{"post":{"summary":"Lift manual suppressions of the profile; bounces, complaints and carrier STOPs stay","tags":["consent"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"channel":{"type":"string","enum":["email","sms","whatsapp","push","postcard"]},"reason":{"type":"string","minLength":1,"maxLength":500}},"required":["reason"]}}}},"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"lifted":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["lifted"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"postV1ProfilesByIdUnsuppress"}},"/v1/profiles/{id}/campaign-stats":{"get":{"summary":"Per-contact campaign engagement: sent, delivered, opens, clicks, bounces by campaign","tags":["profiles"],"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"totals":{"type":"object","properties":{"campaigns":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"sent":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"delivered":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"opened":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"clicked":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"bounced":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"unsubscribed":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"complained":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["campaigns","sent","delivered","opened","clicked","bounced","unsubscribed","complained"],"additionalProperties":false},"campaigns":{"type":"array","items":{"type":"object","properties":{"campaignId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"name":{"nullable":true,"type":"string"},"sent":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"delivered":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"opened":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"clicked":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"bounced":{"type":"boolean"},"unsubscribed":{"type":"boolean"},"complained":{"type":"boolean"},"lastActivityAt":{"nullable":true,"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"}},"required":["campaignId","name","sent","delivered","opened","clicked","bounced","unsubscribed","complained","lastActivityAt"],"additionalProperties":false}}},"required":["totals","campaigns"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1ProfilesByIdCampaignStats"}},"/v1/profiles/{id}/relationships":{"get":{"summary":"Custom objects linked to this profile","tags":["profiles"],"parameters":[{"schema":{"type":"integer","minimum":1,"maximum":200},"in":"query","name":"limit","required":false,"description":"Page size; omitted returns the whole list"},{"schema":{"type":"string","pattern":"^\\d{1,9}$"},"in":"query","name":"cursor","required":false,"description":"Opaque: the `nextCursor` of the previous page"},{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"items":{"type":"array","items":{"type":"object","properties":{"typeKey":{"type":"string"},"objectId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"name":{"type":"string"},"role":{"nullable":true,"type":"string"},"labels":{"type":"array","items":{"type":"string"}},"linkedAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"}},"required":["typeKey","objectId","name","role","labels","linkedAt"],"additionalProperties":false}},"nextCursor":{"nullable":true,"type":"string"}},"required":["items","nextCursor"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1ProfilesByIdRelationships"}},"/v1/list-folders":{"get":{"tags":["lists"],"parameters":[{"schema":{"type":"integer","minimum":1,"maximum":200},"in":"query","name":"limit","required":false,"description":"Page size; omitted returns the whole list"},{"schema":{"type":"string","pattern":"^\\d{1,9}$"},"in":"query","name":"cursor","required":false,"description":"Opaque: the `nextCursor` of the previous page"}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"items":{"type":"array","items":{"$ref":"#/components/schemas/ItemsItem159"}},"nextCursor":{"nullable":true,"type":"string"}},"required":["items","nextCursor"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1ListFolders"},"post":{"tags":["lists"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ItemsItem77"}}}},"responses":{"201":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ItemsItem159"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"postV1ListFolders"}},"/v1/list-folders/{id}":{"get":{"tags":["lists"],"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ItemsItem159"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1ListFoldersById"},"patch":{"tags":["lists"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Patch2"}}}},"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ItemsItem159"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"patchV1ListFoldersById"},"delete":{"summary":"Delete a folder; its lists become unfiled","tags":["lists"],"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"ok":{"type":"boolean","enum":[true]}},"required":["ok"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"deleteV1ListFoldersById"}},"/v1/lists/{id}/members/batch":{"post":{"summary":"Upsert up to 500 members at once with status, tags and topic subscriptions; per-member errors are reported, the rest still apply","tags":["lists"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"members":{"minItems":1,"maxItems":500,"type":"array","items":{"type":"object","properties":{"email":{"type":"string","maxLength":320},"phone":{"type":"string","maxLength":40},"externalId":{"type":"string","minLength":1,"maxLength":256},"anonymousId":{"type":"string","minLength":1,"maxLength":256},"standard":{"$ref":"#/components/schemas/Standard"},"attributes":{"type":"object","additionalProperties":{}},"status":{"default":"subscribed","type":"string","enum":["subscribed","unsubscribed","pending"]},"tags":{"maxItems":20,"type":"array","items":{"type":"string","minLength":1,"maxLength":64}},"topics":{"maxItems":50,"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"status":{"type":"string","enum":["subscribed","unsubscribed"]}},"required":["id","status"]}}}}},"consentAssertion":{"$ref":"#/components/schemas/ConsentAssertion"},"updateExisting":{"default":true,"type":"boolean"}},"required":["members"]}}}},"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"created":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"updated":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"skipped":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"errors":{"$ref":"#/components/schemas/Errors3"}},"required":["created","updated","skipped","errors"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"postV1ListsByIdMembersBatch"}},"/v1/lists/{id}/members/remove":{"post":{"summary":"Remove many members from the list in one call","tags":["lists"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"profileIds":{"$ref":"#/components/schemas/ProfileIds2"},"reason":{"default":"removed","type":"string","enum":["unsubscribed","cleaned","deleted","removed"]}},"required":["profileIds"]}}}},"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PostV1ListsByIdMembersResponse"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"postV1ListsByIdMembersRemove"}},"/v1/lists/{id}/members/clear":{"post":{"summary":"Remove every member (the list stays)","tags":["lists"],"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PostV1ListsByIdMembersResponse"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"postV1ListsByIdMembersClear"}},"/v1/lists/{id}/members/move":{"post":{"summary":"Move people (everyone, or the given ones) from this list to another","tags":["lists"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"toListId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"profileIds":{"minItems":1,"maxItems":5000,"type":"array","items":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}},"required":["toListId"]}}}},"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PostV1ListsByIdMembersResponse"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"postV1ListsByIdMembersMove"}},"/v1/lists/{id}/members/copy-from":{"post":{"summary":"Add every active member of another list","tags":["lists"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"sourceListId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},"required":["sourceListId"]}}}},"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PostV1ListsByIdMembersResponse"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"postV1ListsByIdMembersCopyFrom"}},"/v1/tags/resources/{resourceType}/{resourceId}/{name}":{"delete":{"summary":"Remove one tag from a resource","tags":["tags"],"parameters":[{"schema":{"type":"string","minLength":1,"maxLength":64},"in":"path","name":"resourceType","required":true},{"schema":{"type":"string","minLength":1,"maxLength":128},"in":"path","name":"resourceId","required":true},{"schema":{"type":"string","minLength":1,"maxLength":64},"in":"path","name":"name","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"tags":{"type":"array","items":{"type":"string"}}},"required":["tags"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"deleteV1TagsResourcesByResourceTypeByResourceIdByName"}},"/v1/tags/{name}/relationships/{resourceType}":{"get":{"summary":"Ids of the resources of one type that carry the tag","tags":["tags"],"parameters":[{"schema":{"type":"string","minLength":1,"maxLength":64},"in":"path","name":"name","required":true},{"schema":{"type":"string","minLength":1,"maxLength":64},"in":"path","name":"resourceType","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"ids":{"type":"array","items":{"type":"string"}}},"required":["ids"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1TagsByNameRelationshipsByResourceType"},"post":{"summary":"Tag many resources with this tag (profiles use their own tag store)","tags":["tags"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"ids":{"minItems":1,"maxItems":500,"type":"array","items":{"type":"string","minLength":1,"maxLength":128}}},"required":["ids"]}}}},"parameters":[{"schema":{"type":"string","minLength":1,"maxLength":64},"in":"path","name":"name","required":true},{"schema":{"type":"string","minLength":1,"maxLength":64},"in":"path","name":"resourceType","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"ids":{"type":"array","items":{"type":"string"}}},"required":["ids"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"postV1TagsByNameRelationshipsByResourceType"},"delete":{"summary":"Remove this tag from many resources","tags":["tags"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"ids":{"minItems":1,"maxItems":500,"type":"array","items":{"type":"string","minLength":1,"maxLength":128}}},"required":["ids"]}}}},"parameters":[{"schema":{"type":"string","minLength":1,"maxLength":64},"in":"path","name":"name","required":true},{"schema":{"type":"string","minLength":1,"maxLength":64},"in":"path","name":"resourceType","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"ids":{"type":"array","items":{"type":"string"}}},"required":["ids"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"deleteV1TagsByNameRelationshipsByResourceType"}},"/v1/attributes/fields/{key}/choices/{option}":{"delete":{"summary":"Remove one choice from an enum / multi_enum field and from every profile that holds it","tags":["segments"],"parameters":[{"schema":{"type":"string","minLength":1,"maxLength":64},"in":"path","name":"key","required":true},{"schema":{"type":"string","minLength":1,"maxLength":128},"in":"path","name":"option","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ItemsItem9"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"deleteV1AttributesFieldsByKeyChoicesByOption"}},"/v1/imports/json":{"post":{"summary":"Bulk-import up to 10,000 profiles as JSON: runs as an import job (poll GET /v1/imports/:id, then /errors and /profiles)","tags":["imports"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"profiles":{"minItems":1,"maxItems":10000,"type":"array","items":{"type":"object","properties":{"email":{"type":"string","maxLength":320},"phone":{"type":"string","maxLength":40},"externalId":{"type":"string","minLength":1,"maxLength":256},"firstName":{"nullable":true,"type":"string","maxLength":256},"lastName":{"nullable":true,"type":"string","maxLength":256},"timezone":{"nullable":true,"type":"string","maxLength":256},"locale":{"nullable":true,"type":"string","maxLength":256},"country":{"nullable":true,"type":"string","maxLength":256},"city":{"nullable":true,"type":"string","maxLength":256},"region":{"nullable":true,"type":"string","maxLength":256},"lifecycleStage":{"nullable":true,"type":"string","maxLength":256},"attributes":{"type":"object","additionalProperties":{}},"unsubscribed":{"type":"boolean"},"createdAt":{"type":"string","format":"date-time"}}}},"listId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"listIds":{"$ref":"#/components/schemas/SegmentIds"},"updateExisting":{"default":true,"type":"boolean"},"tags":{"default":[],"maxItems":20,"type":"array","items":{"type":"string","minLength":1,"maxLength":64}},"consentAssertion":{"$ref":"#/components/schemas/ConsentAssertion"},"defaultCountry":{"type":"string","minLength":2,"maxLength":2}},"required":["profiles"]}}}},"responses":{"202":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PostV1ImportsResponse"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"postV1ImportsJson"}},"/v1/imports/{id}/errors":{"get":{"summary":"Rejected rows of an import as a paged JSON list","tags":["imports"],"parameters":[{"schema":{"default":100,"type":"integer","minimum":1,"maximum":500},"in":"query","name":"limit","required":false},{"schema":{"default":0,"type":"integer","minimum":0,"maximum":9007199254740991},"in":"query","name":"offset","required":false},{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"items":{"type":"array","items":{"type":"object","properties":{"row":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"error":{"type":"string"},"data":{"type":"object","additionalProperties":{"type":"string"}}},"required":["row","error","data"],"additionalProperties":false}},"nextOffset":{"nullable":true,"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["items","nextOffset"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1ImportsByIdErrors"}},"/v1/imports/{id}/profiles":{"get":{"summary":"Profiles this import created (updated rows are not listed)","tags":["imports"],"parameters":[{"schema":{"default":50,"type":"integer","minimum":1,"maximum":200},"in":"query","name":"limit","required":false},{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"query","name":"cursor","required":false},{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetV1ProfilesResponse"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1ImportsByIdProfiles"}},"/v1/assets/{id}/tracked-links":{"post":{"summary":"Create a tracked download link to a stored asset; hits count, and per-profile links record an asset_downloaded event","tags":["assets"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"label":{"default":"","type":"string","maxLength":200}}}}}},"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"201":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PostV1AssetsByIdTrackedLinksResponse"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"postV1AssetsByIdTrackedLinks"},"get":{"tags":["assets"],"parameters":[{"schema":{"type":"integer","minimum":1,"maximum":200},"in":"query","name":"limit","required":false,"description":"Page size; omitted returns the whole list"},{"schema":{"type":"string","pattern":"^\\d{1,9}$"},"in":"query","name":"cursor","required":false,"description":"Opaque: the `nextCursor` of the previous page"},{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"items":{"type":"array","items":{"$ref":"#/components/schemas/PostV1AssetsByIdTrackedLinksResponse"}},"nextCursor":{"nullable":true,"type":"string"}},"required":["items","nextCursor"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1AssetsByIdTrackedLinks"}},"/v1/tracked-links/{id}/profile-url":{"get":{"summary":"The link personalised for one profile (use it in that profile's messages)","tags":["assets"],"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"query","name":"profileId","required":true},{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"url":{"type":"string"}},"required":["url"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1TrackedLinksByIdProfileUrl"}},"/v1/tracked-links/{id}":{"delete":{"summary":"Revoke a tracked link","tags":["assets"],"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"ok":{"type":"boolean","enum":[true]}},"required":["ok"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"deleteV1TrackedLinksById"}},"/t/a/{*}":{"get":{"summary":"Tracked asset download (records the download, redirects to a short-lived storage URL)","tags":["tracking"],"parameters":[{"schema":{"type":"string","minLength":10,"maxLength":600},"in":"path","name":"*","required":true}],"security":[],"responses":{"302":{"description":"Default Response","content":{"application/json":{"schema":{"type":"string"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getTAWildcard"}},"/t/g/{*}":{"get":{"summary":"Gated form download: signed link that expires; redirects to the file","tags":["tracking"],"parameters":[{"schema":{"type":"string","minLength":10,"maxLength":600},"in":"path","name":"*","required":true}],"security":[],"responses":{"302":{"description":"Default Response","content":{"application/json":{"schema":{"type":"string"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getTGWildcard"}},"/f/{ws}/{id}/{*}":{"get":{"summary":"A not-indexable or private library file: private files need a valid signed link (?t=); always answered with noindex","tags":["assets"],"parameters":[{"schema":{"type":"string","maxLength":600},"in":"query","name":"t","required":false},{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"ws","required":true},{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true},{"schema":{"type":"string","maxLength":300},"in":"path","name":"*","required":true}],"security":[],"responses":{"302":{"description":"Default Response","content":{"application/json":{"schema":{"type":"string"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getFByWsByIdWildcard"}},"/v1/content-slots":{"get":{"tags":["sites"],"parameters":[{"schema":{"type":"integer","minimum":1,"maximum":200},"in":"query","name":"limit","required":false,"description":"Page size; omitted returns the whole list"},{"schema":{"type":"string","pattern":"^\\d{1,9}$"},"in":"query","name":"cursor","required":false,"description":"Opaque: the `nextCursor` of the previous page"}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"items":{"type":"array","items":{"$ref":"#/components/schemas/ItemsItem160"}},"nextCursor":{"nullable":true,"type":"string"}},"required":["items","nextCursor"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1ContentSlots"}},"/v1/content-slots/{key}":{"put":{"summary":"Create or replace a slot: first matching segment rule wins, else the default","tags":["sites"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":200},"defaultHtml":{"default":"","type":"string","maxLength":20000},"rules":{"default":[],"maxItems":20,"type":"array","items":{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":64},"segmentIds":{"$ref":"#/components/schemas/ListIds4"},"identified":{"type":"boolean"},"html":{"type":"string","maxLength":20000}},"required":["id","html"]}},"enabled":{"default":true,"type":"boolean"}},"required":["name"]}}}},"parameters":[{"schema":{"type":"string","pattern":"^[a-z0-9][a-z0-9_-]{0,62}$"},"in":"path","name":"key","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ItemsItem160"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"putV1ContentSlotsByKey"},"delete":{"tags":["sites"],"parameters":[{"schema":{"type":"string","pattern":"^[a-z0-9][a-z0-9_-]{0,62}$"},"in":"path","name":"key","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"ok":{"type":"boolean","enum":[true]}},"required":["ok"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"deleteV1ContentSlotsByKey"}},"/ingest/v1/slots.js":{"get":{"summary":"Snippet: <script src=\".../ingest/v1/slots.js?k=SITE_KEY\"> then mark elements with data-hermetica-slot=\"key\"","tags":["sites"],"security":[],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"string"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getIngestV1SlotsJs"}},"/ingest/v1/slots":{"get":{"summary":"Slot content for the visitor: identified profiles get their segment rules","tags":["sites"],"parameters":[{"schema":{"default":"","type":"string","maxLength":1000},"in":"query","name":"slots","required":false},{"schema":{"type":"string","maxLength":128},"in":"query","name":"aid","required":false}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"slots":{"type":"object","additionalProperties":{"type":"object","properties":{"html":{"type":"string"},"matched":{"type":"string"}},"required":["html","matched"],"additionalProperties":false}}},"required":["slots"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getIngestV1Slots"}},"/v1/marketing-events/search":{"get":{"summary":"Find events by external id or name","tags":["events"],"parameters":[{"schema":{"type":"string","maxLength":200},"in":"query","name":"ref","required":false},{"schema":{"type":"string","maxLength":200},"in":"query","name":"name","required":false},{"schema":{"default":25,"type":"integer","minimum":1,"maximum":100},"in":"query","name":"limit","required":false}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"items":{"$ref":"#/components/schemas/Items44"}},"required":["items"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1MarketingEventsSearch"}},"/v1/marketing-events/apps":{"get":{"summary":"Event apps and their event-details URL templates","tags":["events"],"parameters":[{"schema":{"type":"integer","minimum":1,"maximum":200},"in":"query","name":"limit","required":false,"description":"Page size; omitted returns the whole list"},{"schema":{"type":"string","pattern":"^\\d{1,9}$"},"in":"query","name":"cursor","required":false,"description":"Opaque: the `nextCursor` of the previous page"}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"items":{"type":"array","items":{"$ref":"#/components/schemas/ItemsItem161"}},"nextCursor":{"nullable":true,"type":"string"}},"required":["items","nextCursor"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1MarketingEventsApps"},"put":{"summary":"Set the event-details URL template of an event app (by name)","tags":["events"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":200},"detailsUrlTemplate":{"type":"string","maxLength":2000,"pattern":"^https:\\/\\/[^\\s]+$"}},"required":["name","detailsUrlTemplate"]}}}},"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ItemsItem161"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"putV1MarketingEventsApps"}},"/v1/marketing-events/apps/{id}":{"delete":{"tags":["events"],"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"ok":{"type":"boolean","enum":[true]}},"required":["ok"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"deleteV1MarketingEventsAppsById"}},"/v1/marketing-events/participations/contact":{"get":{"summary":"Every event one address took part in, with its state","tags":["events"],"parameters":[{"schema":{"type":"string","minLength":3,"maxLength":320},"in":"query","name":"email","required":true},{"schema":{"type":"integer","minimum":1,"maximum":200},"in":"query","name":"limit","required":false,"description":"Page size; omitted returns the whole list"},{"schema":{"type":"string","pattern":"^\\d{1,9}$"},"in":"query","name":"cursor","required":false,"description":"Opaque: the `nextCursor` of the previous page"}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"items":{"type":"array","items":{"type":"object","properties":{"eventId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"name":{"type":"string"},"externalRef":{"nullable":true,"type":"string"},"status":{"type":"string"}},"required":["eventId","name","externalRef","status"],"additionalProperties":false}},"nextCursor":{"nullable":true,"type":"string"}},"required":["items","nextCursor"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1MarketingEventsParticipationsContact"}},"/v1/marketing-events/by-ref/{ref}":{"put":{"summary":"Upsert an event by external id (creates when unknown)","tags":["events"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":200},"kind":{"default":"webinar","type":"string","enum":["webinar","event","conference","workshop"]},"startsAt":{"nullable":true,"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"endsAt":{"nullable":true,"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"url":{"nullable":true,"type":"string","maxLength":2000,"format":"uri"},"organizer":{"nullable":true,"type":"string","maxLength":200},"capacity":{"nullable":true,"type":"integer","minimum":0,"exclusiveMinimum":true,"maximum":9007199254740991},"status":{"default":"scheduled","type":"string","enum":["scheduled","live","completed","cancelled"]}},"required":["name"]}}}},"parameters":[{"schema":{"type":"string","minLength":1,"maxLength":200},"in":"path","name":"ref","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ItemsItem155"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"putV1MarketingEventsByRefByRef"},"get":{"tags":["events"],"parameters":[{"schema":{"type":"string","minLength":1,"maxLength":200},"in":"path","name":"ref","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ItemsItem155"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1MarketingEventsByRefByRef"},"delete":{"tags":["events"],"parameters":[{"schema":{"type":"string","minLength":1,"maxLength":200},"in":"path","name":"ref","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"ok":{"type":"boolean","enum":[true]}},"required":["ok"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"deleteV1MarketingEventsByRefByRef"}},"/v1/marketing-events/by-ref/{ref}/identifiers":{"get":{"summary":"External id to Hermeticor id","tags":["events"],"parameters":[{"schema":{"type":"string","minLength":1,"maxLength":200},"in":"path","name":"ref","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"externalRef":{"type":"string"}},"required":["id","externalRef"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1MarketingEventsByRefByRefIdentifiers"}},"/v1/marketing-events/by-ref/{ref}/cancel":{"post":{"tags":["events"],"parameters":[{"schema":{"type":"string","minLength":1,"maxLength":200},"in":"path","name":"ref","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ItemsItem155"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"postV1MarketingEventsByRefByRefCancel"}},"/v1/marketing-events/by-ref/{ref}/complete":{"post":{"tags":["events"],"parameters":[{"schema":{"type":"string","minLength":1,"maxLength":200},"in":"path","name":"ref","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ItemsItem155"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"postV1MarketingEventsByRefByRefComplete"}},"/v1/marketing-events/by-ref/{ref}/participations":{"get":{"summary":"Registrations of the event grouped by state","tags":["events"],"parameters":[{"schema":{"type":"string","minLength":1,"maxLength":200},"in":"path","name":"ref","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetV1MarketingEventsByRefByRefParticipationsResponse"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1MarketingEventsByRefByRefParticipations"}},"/v1/marketing-events/{id}/participations":{"get":{"summary":"Registrations of the event grouped by state","tags":["events"],"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetV1MarketingEventsByRefByRefParticipationsResponse"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1MarketingEventsByIdParticipations"}},"/v1/marketing-events/{id}/lists":{"get":{"tags":["events"],"parameters":[{"schema":{"type":"integer","minimum":1,"maximum":200},"in":"query","name":"limit","required":false,"description":"Page size; omitted returns the whole list"},{"schema":{"type":"string","pattern":"^\\d{1,9}$"},"in":"query","name":"cursor","required":false,"description":"Opaque: the `nextCursor` of the previous page"},{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetV1MarketingEventsByIdListsResponse"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1MarketingEventsByIdLists"}},"/v1/marketing-events/{id}/lists/{listId}":{"put":{"summary":"Attach a list and register its members","tags":["events"],"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true},{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"listId","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PutV1MarketingEventsByIdListsByListIdResponse"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"putV1MarketingEventsByIdListsByListId"},"delete":{"summary":"Detach a list (people already registered stay registered)","tags":["events"],"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true},{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"listId","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"ok":{"type":"boolean","enum":[true]}},"required":["ok"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"deleteV1MarketingEventsByIdListsByListId"}},"/v1/marketing-events/by-ref/{ref}/lists":{"get":{"tags":["events"],"parameters":[{"schema":{"type":"integer","minimum":1,"maximum":200},"in":"query","name":"limit","required":false,"description":"Page size; omitted returns the whole list"},{"schema":{"type":"string","pattern":"^\\d{1,9}$"},"in":"query","name":"cursor","required":false,"description":"Opaque: the `nextCursor` of the previous page"},{"schema":{"type":"string","minLength":1,"maxLength":200},"in":"path","name":"ref","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetV1MarketingEventsByIdListsResponse"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1MarketingEventsByRefByRefLists"}},"/v1/marketing-events/by-ref/{ref}/lists/{listId}":{"put":{"tags":["events"],"parameters":[{"schema":{"type":"string","minLength":1,"maxLength":200},"in":"path","name":"ref","required":true},{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"listId","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PutV1MarketingEventsByIdListsByListIdResponse"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"putV1MarketingEventsByRefByRefListsByListId"},"delete":{"tags":["events"],"parameters":[{"schema":{"type":"string","minLength":1,"maxLength":200},"in":"path","name":"ref","required":true},{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"listId","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"ok":{"type":"boolean","enum":[true]}},"required":["ok"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"deleteV1MarketingEventsByRefByRefListsByListId"}},"/v1/marketing-events/batch/update":{"post":{"summary":"Change status, organizer or link on up to 100 events","tags":["events"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"ids":{"$ref":"#/components/schemas/ProfileIds"},"patch":{"type":"object","properties":{"status":{"type":"string","enum":["scheduled","live","completed","cancelled"]},"organizer":{"nullable":true,"type":"string","maxLength":200},"url":{"nullable":true,"type":"string","maxLength":2000,"format":"uri"}}}},"required":["ids","patch"]}}}},"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PostV1MarketingEventsBatchUpdateResponse"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"postV1MarketingEventsBatchUpdate"}},"/v1/marketing-events/batch/archive":{"post":{"summary":"Delete up to 100 events with their registrations","tags":["events"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PostV1SnippetsBulkDeleteBody"}}}},"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PostV1MarketingEventsBatchUpdateResponse"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"postV1MarketingEventsBatchArchive"}},"/v1/programs":{"get":{"summary":"Marketing programs: named containers for the campaigns, journeys, forms and pages of one initiative","tags":["campaigns"],"parameters":[{"schema":{"default":50,"type":"integer","minimum":1,"maximum":200},"in":"query","name":"limit","required":false},{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"query","name":"cursor","required":false},{"schema":{"type":"string","enum":["planned","active","completed","archived"]},"in":"query","name":"status","required":false},{"schema":{"type":"string","maxLength":100},"in":"query","name":"q","required":false}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"items":{"type":"array","items":{"$ref":"#/components/schemas/ItemsItem163"}},"nextCursor":{"nullable":true,"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},"required":["items","nextCursor"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1Programs"},"post":{"tags":["campaigns"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":200},"description":{"nullable":true,"type":"string","maxLength":2000},"status":{"default":"planned","type":"string","enum":["planned","active","completed","archived"]},"startsOn":{"nullable":true,"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}(?:[T ]\\d{2}:\\d{2}(?::\\d{2}(?:\\.\\d+)?)?(?:Z|[+-]\\d{2}:?\\d{2})?)?$","format":"date"},"endsOn":{"nullable":true,"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}(?:[T ]\\d{2}:\\d{2}(?::\\d{2}(?:\\.\\d+)?)?(?:Z|[+-]\\d{2}:?\\d{2})?)?$","format":"date"},"budgetCents":{"nullable":true,"type":"integer","minimum":0,"maximum":10000000000},"ownerUserId":{"nullable":true,"type":"string","maxLength":64}},"required":["name"]}}}},"responses":{"201":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ItemsItem163"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"postV1Programs"}},"/v1/programs/{id}":{"get":{"summary":"A program with its assets and the roll-up of sent, opened and clicked across its campaigns and journeys","tags":["campaigns"],"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"program":{"$ref":"#/components/schemas/ItemsItem163"},"assets":{"type":"array","items":{"type":"object","properties":{"kind":{"type":"string","enum":["campaign","journey","form","page","template","sms","list","segment"]},"assetId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},"required":["kind","assetId"],"additionalProperties":false}},"counts":{"type":"object","additionalProperties":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"totals":{"type":"object","properties":{"sent":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"opened":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"clicked":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"orders":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"revenue":{"$ref":"#/components/schemas/Revenue2"}},"required":["sent","opened","clicked","orders","revenue"],"additionalProperties":false},"perSource":{"type":"array","items":{"type":"object","properties":{"kind":{"type":"string","enum":["campaign","journey"]},"assetId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"sent":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"opened":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"clicked":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"orders":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"revenue":{"$ref":"#/components/schemas/Revenue2"}},"required":["kind","assetId","sent","opened","clicked","orders","revenue"],"additionalProperties":false}}},"required":["program","assets","counts","totals","perSource"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1ProgramsById"},"patch":{"tags":["campaigns"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":200},"description":{"nullable":true,"type":"string","maxLength":2000},"status":{"type":"string","enum":["planned","active","completed","archived"]},"startsOn":{"nullable":true,"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}(?:[T ]\\d{2}:\\d{2}(?::\\d{2}(?:\\.\\d+)?)?(?:Z|[+-]\\d{2}:?\\d{2})?)?$","format":"date"},"endsOn":{"nullable":true,"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}(?:[T ]\\d{2}:\\d{2}(?::\\d{2}(?:\\.\\d+)?)?(?:Z|[+-]\\d{2}:?\\d{2})?)?$","format":"date"},"budgetCents":{"nullable":true,"type":"integer","minimum":0,"maximum":10000000000},"ownerUserId":{"nullable":true,"type":"string","maxLength":64}}}}}},"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ItemsItem163"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"patchV1ProgramsById"},"delete":{"summary":"Delete a program; the assets in it are not touched","tags":["campaigns"],"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"ok":{"type":"boolean","enum":[true]}},"required":["ok"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"deleteV1ProgramsById"}},"/v1/campaigns/{id}/content-check":{"get":{"summary":"Writing and layout checks on the first message of an email campaign: subject length, reading ease, call to action, length","tags":["campaigns"],"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"score":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"checks":{"$ref":"#/components/schemas/Checks"},"stats":{"$ref":"#/components/schemas/Stats"}},"required":["score","checks","stats"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1CampaignsByIdContentCheck"}},"/v1/programs/{id}/assets":{"post":{"tags":["campaigns"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"kind":{"type":"string","enum":["campaign","journey","form","page","template","sms","list","segment"]},"assetId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},"required":["kind","assetId"]}}}},"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"201":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"ok":{"type":"boolean","enum":[true]}},"required":["ok"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"postV1ProgramsByIdAssets"}},"/v1/programs/{id}/assets/{kind}/{assetId}":{"delete":{"tags":["campaigns"],"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true},{"schema":{"type":"string","enum":["campaign","journey","form","page","template","sms","list","segment"]},"in":"path","name":"kind","required":true},{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"assetId","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"ok":{"type":"boolean","enum":[true]}},"required":["ok"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"deleteV1ProgramsByIdAssetsByKindByAssetId"}},"/v1/postal-addresses":{"get":{"summary":"Saved sender addresses a list can print in its email footer","tags":["content"],"parameters":[{"schema":{"default":50,"type":"integer","minimum":1,"maximum":200},"in":"query","name":"limit","required":false},{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"query","name":"cursor","required":false},{"schema":{"type":"string","maxLength":100},"in":"query","name":"q","required":false}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"items":{"type":"array","items":{"$ref":"#/components/schemas/ItemsItem164"}},"nextCursor":{"nullable":true,"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},"required":["items","nextCursor"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1PostalAddresses"},"post":{"tags":["content"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"label":{"type":"string","minLength":1,"maxLength":120},"company":{"nullable":true,"type":"string","maxLength":200},"line1":{"type":"string","minLength":1,"maxLength":200},"line2":{"nullable":true,"type":"string","maxLength":200},"city":{"type":"string","minLength":1,"maxLength":120},"region":{"nullable":true,"type":"string","maxLength":120},"postalCode":{"nullable":true,"type":"string","maxLength":32},"country":{"type":"string","minLength":1,"maxLength":120},"phone":{"nullable":true,"type":"string","maxLength":40},"website":{"nullable":true,"type":"string","maxLength":500,"format":"uri"}},"required":["label","line1","city","country"]}}}},"responses":{"201":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ItemsItem164"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"postV1PostalAddresses"}},"/v1/postal-addresses/{id}":{"get":{"tags":["content"],"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ItemsItem164"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1PostalAddressesById"},"patch":{"tags":["content"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"label":{"type":"string","minLength":1,"maxLength":120},"company":{"nullable":true,"type":"string","maxLength":200},"line1":{"type":"string","minLength":1,"maxLength":200},"line2":{"nullable":true,"type":"string","maxLength":200},"city":{"type":"string","minLength":1,"maxLength":120},"region":{"nullable":true,"type":"string","maxLength":120},"postalCode":{"nullable":true,"type":"string","maxLength":32},"country":{"type":"string","minLength":1,"maxLength":120},"phone":{"nullable":true,"type":"string","maxLength":40},"website":{"nullable":true,"type":"string","maxLength":500,"format":"uri"}}}}}},"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ItemsItem164"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"patchV1PostalAddressesById"},"delete":{"summary":"Delete an address; lists that used it print the workspace address again","tags":["content"],"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"ok":{"type":"boolean","enum":[true]}},"required":["ok"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"deleteV1PostalAddressesById"}},"/v1/profiles/{id}/identifiers":{"get":{"summary":"Every email, phone and external id attached to a person, including those that came with a merge","tags":["profiles"],"parameters":[{"schema":{"type":"integer","minimum":1,"maximum":200},"in":"query","name":"limit","required":false,"description":"Page size; omitted returns the whole list"},{"schema":{"type":"string","pattern":"^\\d{1,9}$"},"in":"query","name":"cursor","required":false,"description":"Opaque: the `nextCursor` of the previous page"},{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"items":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"type":{"type":"string"},"value":{"type":"string"},"verified":{"type":"boolean"},"source":{"nullable":true,"type":"string"},"addedAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"}},"required":["id","type","value","verified","source","addedAt"],"additionalProperties":false}},"nextCursor":{"nullable":true,"type":"string"}},"required":["items","nextCursor"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1ProfilesByIdIdentifiers"}},"/v1/profiles/{id}/files/{key}":{"post":{"summary":"Upload a file (multipart field \"file\": image, PDF or MP4, up to 25 MB) into a profile property of type file; the property then holds the hosted URL","tags":["profiles"],"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true},{"schema":{"type":"string","minLength":1,"maxLength":64},"in":"path","name":"key","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"key":{"type":"string"},"url":{"type":"string"},"filename":{"type":"string"}},"required":["key","url","filename"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"postV1ProfilesByIdFilesByKey"}},"/p/w/{token}":{"get":{"summary":"Hosted \"view in browser\" copy of a journey email","tags":["workflows"],"parameters":[{"schema":{"type":"string","minLength":10,"maxLength":600},"in":"path","name":"token","required":true}],"security":[],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"string"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getPWByToken"}},"/v1/campaigns/{id}/content/zip":{"post":{"summary":"Set a draft campaign's email content from a ZIP (multipart field \"file\"): one HTML page plus its images. Images become library assets and the page links are rewritten to them","tags":["campaigns"],"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"messageId":{"nullable":true,"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"source":{"type":"string","enum":["template","html","blocks","none"]},"templateId":{"nullable":true,"type":"string"},"templateVersionId":{"nullable":true,"type":"string"},"html":{"nullable":true,"type":"string"},"plainText":{"nullable":true,"type":"string"},"blocks":{"nullable":true},"zip":{"type":"object","properties":{"imagesHosted":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"imagesSkipped":{"type":"array","items":{"type":"string"}},"htmlFile":{"type":"string"}},"required":["imagesHosted","imagesSkipped","htmlFile"],"additionalProperties":false}},"required":["messageId","source","templateId","templateVersionId","html","plainText","blocks","zip"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"postV1CampaignsByIdContentZip"}},"/v1/templates/import-zip":{"post":{"summary":"Create an HTML email template from a theme ZIP (multipart field \"file\"): one HTML page plus its images. Images become library assets; scripts are stripped","tags":["content"],"parameters":[{"schema":{"type":"string","minLength":1,"maxLength":200},"in":"query","name":"name","required":true}],"responses":{"201":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"workspaceId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"channel":{"type":"string","enum":["email","sms","whatsapp","push","postcard"]},"name":{"type":"string"},"kind":{"type":"string","enum":["blocks","html","text","sms"]},"folder":{"nullable":true,"type":"string"},"tags":{"type":"array","items":{"type":"string"}},"currentVersionId":{"nullable":true,"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"archived":{"type":"boolean"},"folderId":{"nullable":true,"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"brandKitId":{"nullable":true,"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"isDefault":{"default":false,"type":"boolean"},"topicId":{"default":null,"nullable":true,"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"createdBy":{"default":null,"nullable":true,"type":"string"},"createdAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"updatedAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"zip":{"type":"object","properties":{"htmlFile":{"type":"string"},"imagesHosted":{"type":"number"},"imagesSkipped":{"type":"array","items":{"type":"string"}}},"required":["htmlFile","imagesHosted","imagesSkipped"],"additionalProperties":false}},"required":["id","workspaceId","channel","name","kind","folder","tags","currentVersionId","archived","folderId","brandKitId","isDefault","topicId","createdBy","createdAt","updatedAt","zip"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"postV1TemplatesImportZip"}},"/v1/brand-kits/scrape":{"post":{"summary":"Read name, logo, colours, fonts, address and social links from a public website (SSRF-guarded); suggestions only, nothing is saved","tags":["templates"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"url":{"type":"string","minLength":4,"maxLength":2048}},"required":["url"]}}}},"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"url":{"type":"string"},"name":{"nullable":true,"type":"string"},"description":{"nullable":true,"type":"string"},"logoUrl":{"nullable":true,"type":"string"},"colors":{"type":"object","additionalProperties":{"type":"string"}},"fonts":{"type":"object","additionalProperties":{"type":"string"}},"postalAddress":{"nullable":true,"type":"string"},"socialLinks":{"type":"array","items":{"type":"object","properties":{"network":{"type":"string"},"url":{"type":"string"}},"required":["network","url"],"additionalProperties":false}}},"required":["url","name","description","logoUrl","colors","fonts","postalAddress","socialLinks"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"postV1BrandKitsScrape"}},"/v1/brand-kits/{id}/history":{"get":{"summary":"Who changed this brand kit, when, and from what to what","tags":["templates"],"parameters":[{"schema":{"default":50,"type":"integer","minimum":1,"maximum":200},"in":"query","name":"limit","required":false},{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"query","name":"cursor","required":false},{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"items":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"at":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"action":{"type":"string"},"actorId":{"type":"string"},"changes":{"type":"array","items":{"type":"object","properties":{"field":{"type":"string"},"from":{},"to":{}},"required":["field","from","to"],"additionalProperties":false}}},"required":["id","at","action","actorId","changes"],"additionalProperties":false}},"nextCursor":{"nullable":true,"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},"required":["items","nextCursor"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1BrandKitsByIdHistory"}},"/v1/profiles/{id}/pgp-key":{"get":{"summary":"The contact's PGP public key, if any (email to them is encrypted while it is set)","tags":["profiles"],"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"nullable":true,"type":"object","properties":{"profileId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"fingerprint":{"type":"string"},"userIds":{"type":"array","items":{"type":"string"}},"createdAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"}},"required":["profileId","fingerprint","userIds","createdAt"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1ProfilesByIdPgpKey"},"put":{"summary":"Set the contact's PGP public key; private keys are refused","tags":["profiles"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"publicKey":{"type":"string","minLength":40,"maxLength":40000}},"required":["publicKey"]}}}},"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"profileId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"fingerprint":{"type":"string"},"userIds":{"type":"array","items":{"type":"string"}},"createdAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"}},"required":["profileId","fingerprint","userIds","createdAt"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"putV1ProfilesByIdPgpKey"},"delete":{"tags":["profiles"],"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"ok":{"type":"boolean","enum":[true]}},"required":["ok"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"deleteV1ProfilesByIdPgpKey"}},"/v1/white-label":{"get":{"summary":"Product name, logo and colours shown in the app and on hosted pages","tags":["workspace"],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetV1WhiteLabelResponse"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1WhiteLabel"},"put":{"summary":"Set the white-label look; send null to clear a field","tags":["workspace"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"productName":{"nullable":true,"type":"string","maxLength":60},"logoUrl":{"nullable":true,"type":"string","maxLength":2048},"faviconUrl":{"nullable":true,"type":"string","maxLength":2048},"appCss":{"nullable":true,"type":"string","maxLength":8000},"loginMessage":{"nullable":true,"type":"string","maxLength":300},"primaryColor":{"nullable":true,"type":"string","pattern":"^#[0-9a-fA-F]{6}$"},"accentColor":{"nullable":true,"type":"string","pattern":"^#[0-9a-fA-F]{6}$"},"customCss":{"nullable":true,"type":"string","maxLength":8000},"footerScripts":{"nullable":true,"type":"string","maxLength":10000},"preferenceTemplate":{"nullable":true,"type":"string","maxLength":20000}}}}}},"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetV1WhiteLabelResponse"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"putV1WhiteLabel"}},"/v1/planner/goals":{"get":{"summary":"Business goals the planner can build a starter plan for","tags":["planner"],"parameters":[{"schema":{"type":"integer","minimum":1,"maximum":200},"in":"query","name":"limit","required":false,"description":"Page size; omitted returns the whole list"},{"schema":{"type":"string","pattern":"^\\d{1,9}$"},"in":"query","name":"cursor","required":false,"description":"Opaque: the `nextCursor` of the previous page"}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"items":{"type":"array","items":{"type":"object","properties":{"key":{"type":"string","enum":["grow_list","first_purchase","repeat_purchase","win_back","recover_carts","nurture_leads","book_demos"]},"label":{"type":"string"},"summary":{"type":"string"}},"required":["key","label","summary"],"additionalProperties":false}},"nextCursor":{"nullable":true,"type":"string"}},"required":["items","nextCursor"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1PlannerGoals"}},"/v1/planner/goals/{goal}":{"get":{"summary":"Suggested segments, journeys and campaign drafts for one goal (nothing is created)","tags":["planner"],"parameters":[{"schema":{"type":"string","enum":["grow_list","first_purchase","repeat_purchase","win_back","recover_carts","nurture_leads","book_demos"]},"in":"path","name":"goal","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"goal":{"type":"string","enum":["grow_list","first_purchase","repeat_purchase","win_back","recover_carts","nurture_leads","book_demos"]},"label":{"type":"string"},"summary":{"type":"string"},"items":{"type":"array","items":{"type":"object","properties":{"key":{"type":"string"},"kind":{"type":"string","enum":["segment","flow","campaign"]},"title":{"type":"string"},"why":{"type":"string"},"missing":{"default":[],"type":"array","items":{"type":"string"}}},"required":["key","kind","title","why","missing"],"additionalProperties":false}}},"required":["goal","label","summary","items"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1PlannerGoalsByGoal"}},"/v1/planner/create":{"post":{"summary":"Create the ticked items of a plan as drafts (segments, journey drafts, campaign drafts); a failing item is reported, the rest still go through","tags":["planner"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"goal":{"type":"string","enum":["grow_list","first_purchase","repeat_purchase","win_back","recover_carts","nurture_leads","book_demos"]},"keys":{"minItems":1,"maxItems":20,"type":"array","items":{"type":"string","maxLength":80}}},"required":["goal","keys"]}}}},"responses":{"201":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"created":{"type":"array","items":{"type":"object","properties":{"key":{"type":"string"},"kind":{"type":"string","enum":["segment","flow","campaign"]},"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"name":{"type":"string"}},"required":["key","kind","id","name"],"additionalProperties":false}},"skipped":{"type":"array","items":{"type":"object","properties":{"key":{"type":"string"},"reason":{"type":"string"}},"required":["key","reason"],"additionalProperties":false}}},"required":["created","skipped"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"postV1PlannerCreate"}},"/v1/business-goals":{"get":{"summary":"Business goals with progress; ?archived=true lists archived ones","tags":["planner"],"parameters":[{"schema":{"type":"string","enum":["true","false"]},"in":"query","name":"archived","required":false},{"schema":{"type":"integer","minimum":1,"maximum":200},"in":"query","name":"limit","required":false,"description":"Page size; omitted returns the whole list"},{"schema":{"type":"string","pattern":"^\\d{1,9}$"},"in":"query","name":"cursor","required":false,"description":"Opaque: the `nextCursor` of the previous page"}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"items":{"type":"array","items":{"$ref":"#/components/schemas/ItemsItem165"}},"nextCursor":{"nullable":true,"type":"string"}},"required":["items","nextCursor"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1BusinessGoals"},"post":{"tags":["planner"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":200},"notes":{"default":null,"nullable":true,"type":"string","maxLength":2000},"metric":{"type":"string","enum":["revenue","conversions"]},"targetValue":{"type":"integer","minimum":0,"exclusiveMinimum":true,"maximum":9007199254740991},"currency":{"default":null,"nullable":true,"type":"string","minLength":3,"maxLength":3},"startsOn":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}(?:[T ]\\d{2}:\\d{2}(?::\\d{2}(?:\\.\\d+)?)?(?:Z|[+-]\\d{2}:?\\d{2})?)?$","format":"date"},"endsOn":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}(?:[T ]\\d{2}:\\d{2}(?::\\d{2}(?:\\.\\d+)?)?(?:Z|[+-]\\d{2}:?\\d{2})?)?$","format":"date"}},"required":["name","metric","targetValue","startsOn","endsOn"]}}}},"responses":{"201":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ItemsItem165"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"postV1BusinessGoals"}},"/v1/business-goals/{id}":{"get":{"tags":["planner"],"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ItemsItem165"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1BusinessGoalsById"},"patch":{"tags":["planner"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":200},"notes":{"nullable":true,"type":"string","maxLength":2000},"targetValue":{"type":"integer","minimum":0,"exclusiveMinimum":true,"maximum":9007199254740991},"startsOn":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}(?:[T ]\\d{2}:\\d{2}(?::\\d{2}(?:\\.\\d+)?)?(?:Z|[+-]\\d{2}:?\\d{2})?)?$","format":"date"},"endsOn":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}(?:[T ]\\d{2}:\\d{2}(?::\\d{2}(?:\\.\\d+)?)?(?:Z|[+-]\\d{2}:?\\d{2})?)?$","format":"date"}}}}}},"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ItemsItem165"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"patchV1BusinessGoalsById"}},"/v1/business-goals/batch/archive":{"post":{"summary":"Archive goals (hidden, restorable)","tags":["planner"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PostV1SnippetsBulkDeleteBody"}}}},"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"count":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["count"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"postV1BusinessGoalsBatchArchive"}},"/v1/business-goals/batch/restore":{"post":{"tags":["planner"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PostV1SnippetsBulkDeleteBody"}}}},"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"count":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["count"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"postV1BusinessGoalsBatchRestore"}},"/v1/consent/batch/read":{"post":{"summary":"Consent state of up to 100 people addressed by profile id, email or phone (unknown people come back with profileId null)","tags":["consent"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"items":{"$ref":"#/components/schemas/Items46"},"targets":{"$ref":"#/components/schemas/Targets"}}}}}},"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"items":{"type":"array","items":{"type":"object","properties":{"index":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"profileId":{"nullable":true,"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"states":{"$ref":"#/components/schemas/Items7"}},"required":["index","profileId","states"],"additionalProperties":false}}},"required":["items"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"postV1ConsentBatchRead"}},"/v1/consent/batch/write":{"post":{"summary":"Record consent for up to 100 people. Each grant needs proof or a source reference; earlier opt-outs and suppressions still win (reported per row)","tags":["consent"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"items":{"minItems":1,"maxItems":100,"type":"array","items":{"type":"object","properties":{"target":{"$ref":"#/components/schemas/ItemsItem166"},"consent":{"$ref":"#/components/schemas/PostV1ProfilesByIdConsentBody"}},"required":["target","consent"]}}},"required":["items"]}}}},"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PostV1ConsentBatchWriteResponse"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"postV1ConsentBatchWrite"}},"/v1/consent/batch/unsubscribe-all":{"post":{"summary":"Revoke marketing consent on every chosen channel for up to 100 people, recording where the request came from","tags":["consent"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"items":{"$ref":"#/components/schemas/Items46"},"targets":{"$ref":"#/components/schemas/Targets"},"source":{"type":"string","minLength":1,"maxLength":256},"channels":{"default":["email","sms"],"minItems":1,"type":"array","items":{"type":"string","enum":["email","sms"]}}},"required":["source"]}}}},"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PostV1ConsentBatchWriteResponse"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"postV1ConsentBatchUnsubscribeAll"}},"/v1/profiles/batch/{op}":{"post":{"summary":"Synchronous batch of up to 100 contacts: op is create (fails if it exists), update (fails if unknown), upsert or archive. One result per row.","tags":["profiles"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"items":{"minItems":1,"maxItems":100,"type":"array","items":{"type":"object","properties":{"identifiers":{"$ref":"#/components/schemas/Identifiers"},"standard":{"$ref":"#/components/schemas/Standard"},"attributes":{"type":"object","additionalProperties":{}}},"required":["identifiers"]}}},"required":["items"]}}}},"parameters":[{"schema":{"type":"string","enum":["create","update","upsert","archive"]},"in":"path","name":"op","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PostV1ConsentBatchWriteResponse"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"postV1ProfilesBatchByOp"}},"/v1/lists/{id}/members/change":{"post":{"summary":"Add and remove list members in one atomic call (the whole request rolls back if any step fails)","tags":["lists"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"add":{"$ref":"#/components/schemas/ProfileIds6"},"remove":{"$ref":"#/components/schemas/ProfileIds6"}}}}}},"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"added":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"removed":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["added","removed"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"postV1ListsByIdMembersChange"}},"/v1/campaign-folders/{id}/assets":{"get":{"summary":"Forms, pages, workflows and templates filed under this folder","tags":["campaigns"],"parameters":[{"schema":{"type":"integer","minimum":1,"maximum":200},"in":"query","name":"limit","required":false,"description":"Page size; omitted returns the whole list"},{"schema":{"type":"string","pattern":"^\\d{1,9}$"},"in":"query","name":"cursor","required":false,"description":"Opaque: the `nextCursor` of the previous page"},{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetV1CampaignFoldersByIdAssetsResponse"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1CampaignFoldersByIdAssets"}},"/v1/campaign-folders/{id}/assets/{assetType}/{assetId}":{"put":{"summary":"File an asset under the folder (moves it if it was in another folder)","tags":["campaigns"],"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true},{"schema":{"type":"string","enum":["form","page","workflow","template"]},"in":"path","name":"assetType","required":true},{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"assetId","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"ok":{"type":"boolean","enum":[true]}},"required":["ok"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"putV1CampaignFoldersByIdAssetsByAssetTypeByAssetId"},"delete":{"tags":["campaigns"],"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true},{"schema":{"type":"string","enum":["form","page","workflow","template"]},"in":"path","name":"assetType","required":true},{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"assetId","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"ok":{"type":"boolean","enum":[true]}},"required":["ok"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"deleteV1CampaignFoldersByIdAssetsByAssetTypeByAssetId"}},"/v1/campaign-folders/{id}/assets/{assetType}":{"get":{"tags":["campaigns"],"parameters":[{"schema":{"type":"integer","minimum":1,"maximum":200},"in":"query","name":"limit","required":false,"description":"Page size; omitted returns the whole list"},{"schema":{"type":"string","pattern":"^\\d{1,9}$"},"in":"query","name":"cursor","required":false,"description":"Opaque: the `nextCursor` of the previous page"},{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true},{"schema":{"type":"string","enum":["form","page","workflow","template"]},"in":"path","name":"assetType","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetV1CampaignFoldersByIdAssetsResponse"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1CampaignFoldersByIdAssetsByAssetType"}},"/v1/calendar/mine":{"get":{"summary":"My own calendar entries","tags":["calendar"],"parameters":[{"schema":{"type":"string","format":"date-time"},"in":"query","name":"from","required":true},{"schema":{"type":"string","format":"date-time"},"in":"query","name":"to","required":true},{"schema":{"type":"integer","minimum":1,"maximum":200},"in":"query","name":"limit","required":false,"description":"Page size; omitted returns the whole list"},{"schema":{"type":"string","pattern":"^\\d{1,9}$"},"in":"query","name":"cursor","required":false,"description":"Opaque: the `nextCursor` of the previous page"}],"security":[{"session":[]}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"items":{"type":"array","items":{"$ref":"#/components/schemas/ItemsItem169"}},"nextCursor":{"nullable":true,"type":"string"}},"required":["items","nextCursor"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1CalendarMine"},"post":{"summary":"Add an entry to my calendar","tags":["calendar"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"title":{"type":"string","minLength":1,"maxLength":200},"notes":{"nullable":true,"type":"string","maxLength":4000},"startsAt":{"type":"string","format":"date-time"},"endsAt":{"nullable":true,"type":"string","format":"date-time"},"allDay":{"type":"boolean"},"campaignId":{"nullable":true,"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},"required":["title","startsAt"]}}}},"security":[{"session":[]}],"responses":{"201":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ItemsItem169"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"postV1CalendarMine"}},"/v1/calendar/mine/{id}":{"patch":{"tags":["calendar"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"title":{"type":"string","minLength":1,"maxLength":200},"notes":{"nullable":true,"type":"string","maxLength":4000},"startsAt":{"type":"string","format":"date-time"},"endsAt":{"nullable":true,"type":"string","format":"date-time"},"allDay":{"type":"boolean"},"campaignId":{"nullable":true,"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}}}}},"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"security":[{"session":[]}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ItemsItem169"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"patchV1CalendarMineById"},"delete":{"tags":["calendar"],"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"security":[{"session":[]}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"ok":{"type":"boolean","enum":[true]}},"required":["ok"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"deleteV1CalendarMineById"}},"/v1/referral-programs":{"get":{"summary":"Referral programs with click, conversion and reward counts","tags":["referrals"],"parameters":[{"schema":{"type":"integer","minimum":1,"maximum":200},"in":"query","name":"limit","required":false,"description":"Page size; omitted returns the whole list"},{"schema":{"type":"string","pattern":"^\\d{1,9}$"},"in":"query","name":"cursor","required":false,"description":"Opaque: the `nextCursor` of the previous page"}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"items":{"type":"array","items":{"$ref":"#/components/schemas/ItemsItem170"}},"nextCursor":{"nullable":true,"type":"string"}},"required":["items","nextCursor"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1ReferralPrograms"},"post":{"tags":["referrals"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":120},"status":{"default":"active","type":"string","enum":["active","paused"]},"destinationUrl":{"type":"string","maxLength":2000,"format":"uri"},"rewardEvent":{"default":"referral_rewarded","type":"string","minLength":1,"maxLength":128,"pattern":"^[a-z][a-z0-9_]*$"},"conversionsPerReward":{"default":1,"type":"integer","minimum":1,"maximum":1000},"rewardNote":{"nullable":true,"type":"string","maxLength":500},"cookieDays":{"default":30,"type":"integer","minimum":1,"maximum":365}},"required":["name","destinationUrl"]}}}},"responses":{"201":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ItemsItem170"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"postV1ReferralPrograms"}},"/v1/referral-programs/{id}":{"patch":{"tags":["referrals"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":120},"status":{"type":"string","enum":["active","paused"]},"destinationUrl":{"type":"string","maxLength":2000,"format":"uri"},"rewardEvent":{"type":"string","minLength":1,"maxLength":128,"pattern":"^[a-z][a-z0-9_]*$"},"conversionsPerReward":{"type":"integer","minimum":1,"maximum":1000},"rewardNote":{"nullable":true,"type":"string","maxLength":500},"cookieDays":{"type":"integer","minimum":1,"maximum":365}}}}}},"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ItemsItem170"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"patchV1ReferralProgramsById"}},"/v1/referral-programs/{id}/links":{"get":{"tags":["referrals"],"parameters":[{"schema":{"default":50,"type":"integer","minimum":1,"maximum":200},"in":"query","name":"limit","required":false},{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"query","name":"cursor","required":false},{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"items":{"type":"array","items":{"$ref":"#/components/schemas/ItemsItem171"}},"nextCursor":{"nullable":true,"type":"string"}},"required":["items","nextCursor"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1ReferralProgramsByIdLinks"},"post":{"summary":"Get (or create) a contact's personal referral link","tags":["referrals"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PostV1StagesByIdProfilesBody"}}}},"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ItemsItem171"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"postV1ReferralProgramsByIdLinks"}},"/v1/referrals/convert":{"post":{"summary":"Report that someone who arrived through a referral link has converted; earns the referrer a reward when the threshold is met","tags":["referrals"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string","minLength":4,"maxLength":32},"email":{"type":"string","maxLength":254,"format":"email","pattern":"^(?:[A-Za-z0-9_'+\\-]+\\.)*[A-Za-z0-9_'+\\-]*[A-Za-z0-9_+-]@(?:[A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$"},"valueMinor":{"type":"integer","minimum":0,"maximum":1000000000},"currency":{"type":"string","pattern":"^[A-Z]{3}$"}},"required":["code","email"]}}}},"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"conversionId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"duplicate":{"type":"boolean"},"rewarded":{"type":"boolean"}},"required":["conversionId","duplicate","rewarded"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"postV1ReferralsConvert"}},"/r/{ws}/{code}":{"get":{"summary":"Referral link click","tags":["referrals"],"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"ws","required":true},{"schema":{"type":"string","minLength":4,"maxLength":32},"in":"path","name":"code","required":true}],"security":[],"responses":{"302":{"description":"Default Response","content":{"application/json":{"schema":{"type":"string"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getRByWsByCode"}},"/v1/ad-spend/import":{"post":{"summary":"Upsert daily ad spend by platform and campaign","tags":["ad-spend"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"rows":{"minItems":1,"maxItems":5000,"type":"array","items":{"type":"object","properties":{"platform":{"type":"string","pattern":"^[a-z][a-z0-9_]{0,31}$"},"campaignKey":{"type":"string","minLength":1,"maxLength":128},"campaignName":{"type":"string","maxLength":200},"day":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}(?:[T ]\\d{2}:\\d{2}(?::\\d{2}(?:\\.\\d+)?)?(?:Z|[+-]\\d{2}:?\\d{2})?)?$","format":"date"},"spendMinor":{"type":"integer","minimum":0,"maximum":100000000000},"currency":{"type":"string","minLength":3,"maxLength":3},"impressions":{"type":"integer","minimum":0,"maximum":9007199254740991},"clicks":{"type":"integer","minimum":0,"maximum":9007199254740991}},"required":["platform","campaignKey","day","spendMinor","currency"]}}},"required":["rows"]}}}},"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"imported":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["imported"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"postV1AdSpendImport"}},"/v1/ad-spend/report":{"get":{"summary":"Spend, orders, revenue and ROAS","tags":["ad-spend"],"parameters":[{"schema":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}(?:[T ]\\d{2}:\\d{2}(?::\\d{2}(?:\\.\\d+)?)?(?:Z|[+-]\\d{2}:?\\d{2})?)?$","format":"date"},"in":"query","name":"from","required":true},{"schema":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}(?:[T ]\\d{2}:\\d{2}(?::\\d{2}(?:\\.\\d+)?)?(?:Z|[+-]\\d{2}:?\\d{2})?)?$","format":"date"},"in":"query","name":"to","required":true},{"schema":{"default":"platform","type":"string","enum":["platform","campaign","day"]},"in":"query","name":"groupBy","required":false}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"groupBy":{"type":"string","enum":["platform","campaign","day"]},"rows":{"type":"array","items":{"type":"object","properties":{"key":{"type":"string"},"platform":{"nullable":true,"type":"string"},"label":{"type":"string"},"currency":{"type":"string"},"spendMinor":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"impressions":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"clicks":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"orders":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"revenueMinor":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"roas":{"nullable":true,"type":"number"}},"required":["key","platform","label","currency","spendMinor","impressions","clicks","orders","revenueMinor","roas"],"additionalProperties":false}}},"required":["groupBy","rows"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1AdSpendReport"}},"/v1/ad-spend":{"delete":{"summary":"Remove imported spend for a platform and date range","tags":["ad-spend"],"parameters":[{"schema":{"type":"string","pattern":"^[a-z][a-z0-9_]{0,31}$"},"in":"query","name":"platform","required":true},{"schema":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}(?:[T ]\\d{2}:\\d{2}(?::\\d{2}(?:\\.\\d+)?)?(?:Z|[+-]\\d{2}:?\\d{2})?)?$","format":"date"},"in":"query","name":"from","required":true},{"schema":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}(?:[T ]\\d{2}:\\d{2}(?::\\d{2}(?:\\.\\d+)?)?(?:Z|[+-]\\d{2}:?\\d{2})?)?$","format":"date"},"in":"query","name":"to","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"deleted":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["deleted"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"deleteV1AdSpend"}},"/v1/ads/accounts":{"get":{"summary":"Connected ad accounts","tags":["ads"],"parameters":[{"schema":{"type":"integer","minimum":1,"maximum":200},"in":"query","name":"limit","required":false,"description":"Page size; omitted returns the whole list"},{"schema":{"type":"string","pattern":"^\\d{1,9}$"},"in":"query","name":"cursor","required":false,"description":"Opaque: the `nextCursor` of the previous page"}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"items":{"type":"array","items":{"$ref":"#/components/schemas/ItemsItem172"}},"nextCursor":{"nullable":true,"type":"string"}},"required":["items","nextCursor"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1AdsAccounts"},"post":{"summary":"Connect an ad account (credentials are sealed and never returned)","tags":["ads"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"platform":{"type":"string","enum":["meta","google","tiktok","snapchat","pinterest","linkedin"]},"name":{"type":"string","minLength":1,"maxLength":120},"externalId":{"type":"string","minLength":3,"maxLength":40},"credentials":{"type":"object","additionalProperties":{"type":"string","maxLength":4096}},"config":{"$ref":"#/components/schemas/Config116"}},"required":["platform","name","externalId","credentials"]}}}},"responses":{"201":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ItemsItem172"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"postV1AdsAccounts"}},"/v1/ads/accounts/{id}":{"patch":{"summary":"Change an ad account's pixel / API settings","tags":["ads"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"config":{"type":"object","additionalProperties":{}}},"required":["config"]}}}},"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ItemsItem172"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"patchV1AdsAccountsById"},"delete":{"summary":"Disconnect an ad account (its audience syncs stop; audiences stay in the platform)","tags":["ads"],"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"ok":{"type":"boolean","enum":[true]}},"required":["ok"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"deleteV1AdsAccountsById"}},"/v1/ads/audiences":{"get":{"summary":"Segment -> ad audience syncs","tags":["ads"],"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"query","name":"segmentId","required":false},{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"query","name":"accountId","required":false},{"schema":{"type":"integer","minimum":1,"maximum":200},"in":"query","name":"limit","required":false,"description":"Page size; omitted returns the whole list"},{"schema":{"type":"string","pattern":"^\\d{1,9}$"},"in":"query","name":"cursor","required":false,"description":"Opaque: the `nextCursor` of the previous page"}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"items":{"type":"array","items":{"$ref":"#/components/schemas/ItemsItem173"}},"nextCursor":{"nullable":true,"type":"string"}},"required":["items","nextCursor"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1AdsAudiences"},"post":{"summary":"Sync a segment to an ad platform audience; the first run starts at once","tags":["ads"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"accountId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"segmentId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"name":{"type":"string","minLength":1,"maxLength":120},"schedule":{"default":"daily","type":"string","enum":["manual","hourly","daily"]},"onlyMarketing":{"default":true,"type":"boolean"},"existingAudienceId":{"type":"string","minLength":1,"maxLength":200}},"required":["accountId","segmentId","name"]}}}},"responses":{"201":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ItemsItem173"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"postV1AdsAudiences"}},"/v1/ads/audiences/{id}":{"get":{"summary":"One audience sync","tags":["ads"],"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ItemsItem173"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1AdsAudiencesById"},"patch":{"summary":"Change schedule, consent filter or pause a sync","tags":["ads"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":120},"schedule":{"type":"string","enum":["manual","hourly","daily"]},"onlyMarketing":{"type":"boolean"},"enabled":{"type":"boolean"}}}}}},"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ItemsItem173"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"patchV1AdsAudiencesById"},"delete":{"summary":"Stop syncing (the platform audience is left as it is)","tags":["ads"],"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"ok":{"type":"boolean","enum":[true]}},"required":["ok"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"deleteV1AdsAudiencesById"}},"/v1/ads/audiences/{id}/sync":{"post":{"summary":"Sync now","tags":["ads"],"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ItemsItem173"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"postV1AdsAudiencesByIdSync"}},"/v1/ads/audiences/{id}/runs":{"get":{"summary":"Sync history with counts and errors","tags":["ads"],"parameters":[{"schema":{"type":"integer","minimum":1,"maximum":200},"in":"query","name":"limit","required":false,"description":"Page size; omitted returns the whole list"},{"schema":{"type":"string","pattern":"^\\d{1,9}$"},"in":"query","name":"cursor","required":false,"description":"Opaque: the `nextCursor` of the previous page"},{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"items":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"syncId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"trigger":{"type":"string"},"status":{"type":"string"},"createdAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"finishedAt":{"nullable":true,"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"added":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"removed":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"total":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"skipped":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"matchRate":{"nullable":true,"type":"string"},"error":{"nullable":true,"type":"string"}},"required":["id","syncId","trigger","status","createdAt","finishedAt","added","removed","total","skipped","matchRate","error"],"additionalProperties":false}},"nextCursor":{"nullable":true,"type":"string"}},"required":["items","nextCursor"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1AdsAudiencesByIdRuns"}},"/v1/ads/accounts/{id}/conversions":{"get":{"summary":"Conversion forwarding settings and event mapping","tags":["ads"],"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetV1AdsAccountsByIdConversionsResponse"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1AdsAccountsByIdConversions"},"put":{"summary":"Save conversion forwarding settings","tags":["ads"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"enabled":{"type":"boolean"},"eventMap":{"type":"object","additionalProperties":{"type":"string","minLength":1,"maxLength":64}},"testEventCode":{"nullable":true,"type":"string","maxLength":64},"requireConsent":{"default":true,"type":"boolean"}},"required":["enabled","eventMap"]}}}},"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetV1AdsAccountsByIdConversionsResponse"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"putV1AdsAccountsByIdConversions"}},"/v1/ads/accounts/{id}/conversions/test":{"post":{"summary":"Send a test event in the platform's test mode","tags":["ads"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"eventName":{"type":"string","minLength":1,"maxLength":128}}}}}},"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"ok":{"type":"boolean"},"status":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"error":{"nullable":true,"type":"string"}},"required":["ok","status","error"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"postV1AdsAccountsByIdConversionsTest"}},"/v1/ads/accounts/{id}/conversions/log":{"get":{"summary":"Conversion delivery log","tags":["ads"],"parameters":[{"schema":{"default":50,"type":"integer","minimum":1,"maximum":200},"in":"query","name":"limit","required":false},{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"query","name":"cursor","required":false},{"schema":{"type":"string","enum":["pending","retry","sent","failed","skipped"]},"in":"query","name":"status","required":false},{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"items":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"eventName":{"type":"string"},"platformEvent":{"type":"string"},"status":{"type":"string"},"attempt":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"responseCode":{"nullable":true,"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"error":{"nullable":true,"type":"string"},"isTest":{"type":"boolean"},"createdAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"}},"required":["id","eventName","platformEvent","status","attempt","responseCode","error","isTest","createdAt"],"additionalProperties":false}},"nextCursor":{"nullable":true,"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},"required":["items","nextCursor"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1AdsAccountsByIdConversionsLog"}},"/v1/ads/campaigns":{"get":{"summary":"Campaigns built here","tags":["ads"],"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"query","name":"accountId","required":false},{"schema":{"type":"integer","minimum":1,"maximum":200},"in":"query","name":"limit","required":false,"description":"Page size; omitted returns the whole list"},{"schema":{"type":"string","pattern":"^\\d{1,9}$"},"in":"query","name":"cursor","required":false,"description":"Opaque: the `nextCursor` of the previous page"}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"items":{"type":"array","items":{"$ref":"#/components/schemas/ItemsItem174"}},"nextCursor":{"nullable":true,"type":"string"}},"required":["items","nextCursor"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1AdsCampaigns"},"post":{"summary":"Draft a campaign (budget, schedule, targeting, creative); nothing is sent until it is pushed","tags":["ads"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"accountId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"name":{"type":"string","minLength":1,"maxLength":200},"objective":{"default":"traffic","type":"string","enum":["traffic","leads","sales","awareness","engagement"]},"dailyBudgetMinor":{"type":"integer","minimum":100,"maximum":100000000},"currency":{"type":"string","pattern":"^[A-Z]{3}$"},"startAt":{"nullable":true,"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"endAt":{"nullable":true,"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"targeting":{"$ref":"#/components/schemas/Targeting4"},"creative":{"$ref":"#/components/schemas/Creative2"},"adSets":{"$ref":"#/components/schemas/AdSets2"}},"required":["accountId","name","dailyBudgetMinor","currency","targeting","creative"]}}}},"responses":{"201":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ItemsItem174"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"postV1AdsCampaigns"}},"/v1/ads/campaigns/{id}":{"get":{"summary":"One campaign","tags":["ads"],"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ItemsItem174"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1AdsCampaignsById"},"patch":{"summary":"Edit a draft campaign","tags":["ads"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":200},"objective":{"type":"string","enum":["traffic","leads","sales","awareness","engagement"]},"dailyBudgetMinor":{"type":"integer","minimum":100,"maximum":100000000},"currency":{"type":"string","pattern":"^[A-Z]{3}$"},"startAt":{"nullable":true,"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"endAt":{"nullable":true,"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"targeting":{"$ref":"#/components/schemas/Targeting4"},"creative":{"$ref":"#/components/schemas/Creative2"},"adSets":{"$ref":"#/components/schemas/AdSets2"}}}}}},"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ItemsItem174"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"patchV1AdsCampaignsById"}},"/v1/ads/campaigns/{id}/push":{"post":{"summary":"Create the campaign on the platform (paused)","tags":["ads"],"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ItemsItem174"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"postV1AdsCampaignsByIdPush"}},"/v1/ads/campaigns/{id}/status":{"post":{"summary":"Activate, pause or archive the campaign on the platform","tags":["ads"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"string","enum":["active","paused","archived"]}},"required":["status"]}}}},"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ItemsItem174"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"postV1AdsCampaignsByIdStatus"}},"/v1/ads/campaigns/{id}/budget":{"post":{"summary":"Change the daily budget and end date","tags":["ads"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"dailyBudgetMinor":{"type":"integer","minimum":100,"maximum":100000000},"endAt":{"default":null,"nullable":true,"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"}},"required":["dailyBudgetMinor"]}}}},"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ItemsItem174"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"postV1AdsCampaignsByIdBudget"}},"/v1/ads/accounts/{id}/objects":{"get":{"summary":"Campaigns, ad sets and ads on the platform with last-30-day reach, spend and ROAS","tags":["ads"],"parameters":[{"schema":{"type":"string","enum":["campaign","adset","ad"]},"in":"query","name":"kind","required":false},{"schema":{"type":"integer","minimum":1,"maximum":200},"in":"query","name":"limit","required":false,"description":"Page size; omitted returns the whole list"},{"schema":{"type":"string","pattern":"^\\d{1,9}$"},"in":"query","name":"cursor","required":false,"description":"Opaque: the `nextCursor` of the previous page"},{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"items":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"accountId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"kind":{"type":"string","enum":["campaign","adset","ad"]},"externalId":{"type":"string"},"parentExternalId":{"nullable":true,"type":"string"},"name":{"type":"string"},"status":{"type":"string"},"insights":{"type":"object","properties":{"reach":{"type":"number"},"impressions":{"type":"number"},"clicks":{"type":"number"},"spend":{"type":"number"},"revenue":{"type":"number"},"roas":{"type":"number"},"currency":{"type":"string"}},"additionalProperties":false},"insightsAt":{"nullable":true,"type":"string"}},"required":["id","accountId","kind","externalId","parentExternalId","name","status","insights","insightsAt"],"additionalProperties":false}},"nextCursor":{"nullable":true,"type":"string"}},"required":["items","nextCursor"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1AdsAccountsByIdObjects"}},"/v1/ads/accounts/{id}/objects/refresh":{"post":{"summary":"Pull ad objects and insights now","tags":["ads"],"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"pulled":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["pulled"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"postV1AdsAccountsByIdObjectsRefresh"}},"/v1/ads/accounts/{id}/lead-forms":{"get":{"summary":"Lead-ad forms on the account's Facebook page, with their questions and consent checkboxes","tags":["ads"],"parameters":[{"schema":{"type":"integer","minimum":1,"maximum":200},"in":"query","name":"limit","required":false,"description":"Page size; omitted returns the whole list"},{"schema":{"type":"string","pattern":"^\\d{1,9}$"},"in":"query","name":"cursor","required":false,"description":"Opaque: the `nextCursor` of the previous page"},{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"items":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"status":{"type":"string"},"questions":{"type":"array","items":{"type":"object","properties":{"key":{"type":"string"},"label":{"type":"string"}},"required":["key","label"],"additionalProperties":false}},"checkboxes":{"type":"array","items":{"type":"object","properties":{"key":{"type":"string"},"text":{"type":"string"}},"required":["key","text"],"additionalProperties":false}}},"required":["id","name","status","questions","checkboxes"],"additionalProperties":false}},"nextCursor":{"nullable":true,"type":"string"}},"required":["items","nextCursor"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1AdsAccountsByIdLeadForms"}},"/v1/ads/lead-syncs":{"get":{"summary":"Lead-ad forms synced into forms","tags":["ads"],"parameters":[{"schema":{"type":"integer","minimum":1,"maximum":200},"in":"query","name":"limit","required":false,"description":"Page size; omitted returns the whole list"},{"schema":{"type":"string","pattern":"^\\d{1,9}$"},"in":"query","name":"cursor","required":false,"description":"Opaque: the `nextCursor` of the previous page"}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"items":{"type":"array","items":{"$ref":"#/components/schemas/ItemsItem175"}},"nextCursor":{"nullable":true,"type":"string"}},"required":["items","nextCursor"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1AdsLeadSyncs"},"post":{"summary":"Sync a lead-ad form into a form. Consent is recorded only from the mapped consent checkboxes","tags":["ads"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"accountId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"externalFormId":{"type":"string","pattern":"^\\d{3,30}$"},"name":{"type":"string","minLength":1,"maxLength":200},"formId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"fieldMap":{"type":"object","additionalProperties":{"type":"string","pattern":"^[A-Za-z][A-Za-z0-9_]{0,63}$"}},"consentMap":{"default":{},"type":"object","additionalProperties":{"type":"string","pattern":"^[A-Za-z][A-Za-z0-9_]{0,63}$"}}},"required":["accountId","externalFormId","name","formId","fieldMap"]}}}},"responses":{"201":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ItemsItem175"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"postV1AdsLeadSyncs"}},"/v1/ads/lead-syncs/{id}":{"patch":{"summary":"Pause or remap a lead-ad sync","tags":["ads"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"enabled":{"type":"boolean"},"fieldMap":{"type":"object","additionalProperties":{"type":"string","pattern":"^[A-Za-z][A-Za-z0-9_]{0,63}$"}},"consentMap":{"type":"object","additionalProperties":{"type":"string","pattern":"^[A-Za-z][A-Za-z0-9_]{0,63}$"}}}}}}},"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ItemsItem175"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"patchV1AdsLeadSyncsById"},"delete":{"summary":"Stop syncing a lead-ad form","tags":["ads"],"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"ok":{"type":"boolean","enum":[true]}},"required":["ok"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"deleteV1AdsLeadSyncsById"}},"/v1/ads/lead-syncs/{id}/imports":{"get":{"summary":"Leads imported by a sync","tags":["ads"],"parameters":[{"schema":{"type":"integer","minimum":1,"maximum":200},"in":"query","name":"limit","required":false,"description":"Page size; omitted returns the whole list"},{"schema":{"type":"string","pattern":"^\\d{1,9}$"},"in":"query","name":"cursor","required":false,"description":"Opaque: the `nextCursor` of the previous page"},{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"items":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"externalLeadId":{"type":"string"},"status":{"type":"string","enum":["imported","failed"]},"reason":{"nullable":true,"type":"string"},"submissionId":{"nullable":true,"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"consentFields":{"type":"array","items":{"type":"string"}},"createdAt":{"type":"string"}},"required":["id","externalLeadId","status","reason","submissionId","consentFields","createdAt"],"additionalProperties":false}},"nextCursor":{"nullable":true,"type":"string"}},"required":["items","nextCursor"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1AdsLeadSyncsByIdImports"}},"/v1/ads/oauth/apps":{"get":{"summary":"Which ad platforms can be connected by sign-in on this install","tags":["ads"],"parameters":[{"schema":{"type":"integer","minimum":1,"maximum":200},"in":"query","name":"limit","required":false,"description":"Page size; omitted returns the whole list"},{"schema":{"type":"string","pattern":"^\\d{1,9}$"},"in":"query","name":"cursor","required":false,"description":"Opaque: the `nextCursor` of the previous page"}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"items":{"type":"array","items":{"type":"object","properties":{"platform":{"type":"string","enum":["meta","google","tiktok","snapchat","pinterest","linkedin"]},"configured":{"type":"boolean"}},"required":["platform","configured"],"additionalProperties":false}},"nextCursor":{"nullable":true,"type":"string"}},"required":["items","nextCursor"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1AdsOauthApps"}},"/v1/ads/oauth/{platform}/start":{"post":{"summary":"Start the sign-in: returns the platform authorize URL (state is bound to this workspace and user)","tags":["ads"],"parameters":[{"schema":{"type":"string","enum":["meta","google","tiktok","snapchat","pinterest","linkedin"]},"in":"path","name":"platform","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"url":{"type":"string"}},"required":["url"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"postV1AdsOauthByPlatformStart"}},"/integrations/ads/{platform}/callback":{"get":{"tags":["ads"],"parameters":[{"schema":"object","in":"query","name":"type"},{"schema":{"type":"string"},"in":"query","name":"additionalProperties"},{"schema":{"type":"string","enum":["meta","google","tiktok","snapchat","pinterest","linkedin"]},"in":"path","name":"platform","required":true}],"security":[],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"string"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getIntegrationsAdsByPlatformCallback"}},"/v1/ads/oauth/pending/{id}":{"get":{"summary":"Ad accounts available after sign-in","tags":["ads"],"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"platform":{"type":"string","enum":["meta","google","tiktok","snapchat","pinterest","linkedin"]},"accounts":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"}},"required":["id","name"],"additionalProperties":false}}},"required":["id","platform","accounts"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1AdsOauthPendingById"}},"/v1/ads/oauth/pending/{id}/finish":{"post":{"summary":"Connect the chosen ad account","tags":["ads"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"externalId":{"type":"string","minLength":1,"maxLength":64},"name":{"type":"string","minLength":1,"maxLength":120},"config":{"$ref":"#/components/schemas/Config116"}},"required":["externalId"]}}}},"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"201":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ItemsItem172"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"postV1AdsOauthPendingByIdFinish"}},"/v1/list-conversions":{"get":{"tags":["lists"],"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"query","name":"sourceId","required":false},{"schema":{"type":"integer","minimum":1,"maximum":200},"in":"query","name":"limit","required":false,"description":"Page size; omitted returns the whole list"},{"schema":{"type":"string","pattern":"^\\d{1,9}$"},"in":"query","name":"cursor","required":false,"description":"Opaque: the `nextCursor` of the previous page"}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"items":{"type":"array","items":{"$ref":"#/components/schemas/ItemsItem176"}},"nextCursor":{"nullable":true,"type":"string"}},"required":["items","nextCursor"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1ListConversions"},"put":{"summary":"Schedule a conversion; replaces a pending one for the same source","tags":["lists"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"direction":{"type":"string","enum":["list_to_segment","segment_to_list"]},"sourceId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"runAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"targetName":{"type":"string","minLength":1,"maxLength":120},"retireSource":{"default":false,"type":"boolean"}},"required":["direction","sourceId","runAt"]}}}},"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ItemsItem176"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"putV1ListConversions"}},"/v1/list-conversions/{id}":{"delete":{"tags":["lists"],"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"ok":{"type":"boolean","enum":[true]}},"required":["ok"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"deleteV1ListConversionsById"}},"/v1/profiles/query":{"post":{"summary":"Filter profiles with a typed where / orderBy / limit / offset (fields are an allowlist; read \"fields\" in the result)","tags":["profiles"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PostV1ProfilesQueryBody"}}}},"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PostV1ProfilesQueryResponse"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"postV1ProfilesQuery"}},"/v1/leads/companies/query":{"post":{"summary":"Filter companies with a typed where / orderBy / limit / offset (fields are an allowlist; read \"fields\" in the result)","tags":["companies"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PostV1ProfilesQueryBody"}}}},"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PostV1ProfilesQueryResponse"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"postV1LeadsCompaniesQuery"}},"/v1/campaigns/query":{"post":{"summary":"Filter campaigns with a typed where / orderBy / limit / offset (fields are an allowlist; read \"fields\" in the result)","tags":["campaigns"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PostV1ProfilesQueryBody"}}}},"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PostV1ProfilesQueryResponse"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"postV1CampaignsQuery"}},"/v1/forms/query":{"post":{"summary":"Filter forms with a typed where / orderBy / limit / offset (fields are an allowlist; read \"fields\" in the result)","tags":["forms"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PostV1ProfilesQueryBody"}}}},"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PostV1ProfilesQueryResponse"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"postV1FormsQuery"}},"/v1/assets/query":{"post":{"summary":"Filter assets with a typed where / orderBy / limit / offset (fields are an allowlist; read \"fields\" in the result)","tags":["assets"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PostV1ProfilesQueryBody"}}}},"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PostV1ProfilesQueryResponse"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"postV1AssetsQuery"}},"/v1/messages/{id}/reply":{"post":{"summary":"Record that the recipient replied to this message (once per message); feeds scoring, journeys and reports","tags":["messages"],"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"recorded":{"type":"boolean"}},"required":["recorded"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"postV1MessagesByIdReply"}},"/v1/fields/{object}":{"get":{"summary":"Fields of one object: \"contact\" for contact fields, or a custom object type key","tags":["segments"],"parameters":[{"schema":{"type":"string","minLength":1,"maxLength":64},"in":"path","name":"object","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"object":{"type":"string"},"items":{"type":"array","items":{"type":"object","properties":{"key":{"type":"string"},"type":{"type":"string"}},"required":["key","type"],"additionalProperties":false}}},"required":["object","items"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1FieldsByObject"}},"/v1/currencies":{"get":{"summary":"Registered currencies with their rate to the display currency","tags":["workspace"],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetV1CurrenciesResponse"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1Currencies"}},"/v1/currencies/{code}":{"put":{"summary":"Register a currency or change its rate (1 unit = rate display-currency units)","tags":["workspace"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"rate":{"type":"number","minimum":0,"exclusiveMinimum":true,"maximum":1000000}},"required":["rate"]}}}},"parameters":[{"schema":{"type":"string","pattern":"^[A-Z]{3}$"},"in":"path","name":"code","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetV1CurrenciesResponse"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"putV1CurrenciesByCode"},"delete":{"summary":"Remove a currency rate; amounts in it show in their own currency again","tags":["workspace"],"parameters":[{"schema":{"type":"string","pattern":"^[A-Z]{3}$"},"in":"path","name":"code","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetV1CurrenciesResponse"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"deleteV1CurrenciesByCode"}},"/v1/soft-bounce-allowlist":{"get":{"tags":["transactional"],"parameters":[{"schema":{"type":"integer","minimum":1,"maximum":200},"in":"query","name":"limit","required":false,"description":"Page size; omitted returns the whole list"},{"schema":{"type":"string","pattern":"^\\d{1,9}$"},"in":"query","name":"cursor","required":false,"description":"Opaque: the `nextCursor` of the previous page"}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"items":{"type":"array","items":{"$ref":"#/components/schemas/ItemsItem178"}},"nextCursor":{"nullable":true,"type":"string"}},"required":["items","nextCursor"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1SoftBounceAllowlist"},"post":{"summary":"Exempt an address or domain from automatic soft-bounce suppression","tags":["transactional"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"value":{"type":"string","minLength":3,"maxLength":320},"note":{"type":"string","maxLength":200}},"required":["value"]}}}},"responses":{"201":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ItemsItem178"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"postV1SoftBounceAllowlist"}},"/v1/soft-bounce-allowlist/{id}":{"delete":{"tags":["transactional"],"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"ok":{"type":"boolean","enum":[true]}},"required":["ok"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"deleteV1SoftBounceAllowlistById"}},"/v1/soft-bounce-allowlist/export":{"get":{"summary":"CSV of the allowlist","tags":["transactional"],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1SoftBounceAllowlistExport"}},"/v1/workspace/dashboard-domain":{"get":{"tags":["workspace"],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"nullable":true,"type":"object","properties":{"host":{"type":"string"},"status":{"type":"string","enum":["pending","verified","failed"]},"cnameTarget":{"type":"string"},"verifiedAt":{"nullable":true,"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"lastCheckedAt":{"nullable":true,"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"lastError":{"nullable":true,"type":"string"}},"required":["host","status","cnameTarget","verifiedAt","lastCheckedAt","lastError"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1WorkspaceDashboardDomain"},"put":{"summary":"Set the hostname the dashboard is served on; point its CNAME at cnameTarget, then verify","tags":["workspace"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"host":{"type":"string","minLength":4,"maxLength":253}},"required":["host"]}}}},"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PutV1WorkspaceDashboardDomainResponse"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"putV1WorkspaceDashboardDomain"},"delete":{"tags":["workspace"],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"ok":{"type":"boolean","enum":[true]}},"required":["ok"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"deleteV1WorkspaceDashboardDomain"}},"/v1/workspace/dashboard-domain/verify":{"post":{"summary":"Check the CNAME now","tags":["workspace"],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PutV1WorkspaceDashboardDomainResponse"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"postV1WorkspaceDashboardDomainVerify"}},"/v1/public/brand":{"get":{"summary":"Name, logo and colours for a verified dashboard host (null otherwise)","tags":["workspace"],"parameters":[{"schema":{"type":"string","minLength":1,"maxLength":253},"in":"query","name":"host","required":true}],"security":[],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"nullable":true,"type":"object","properties":{"workspaceId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"productName":{"type":"string"},"logoUrl":{"nullable":true,"type":"string"},"primaryColor":{"nullable":true,"type":"string"},"accentColor":{"nullable":true,"type":"string"},"loginMessage":{"nullable":true,"type":"string"}},"required":["workspaceId","productName","logoUrl","primaryColor","accentColor"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1PublicBrand"}},"/v1/deliverability/placement-tests/{id}/ip-analytics":{"get":{"summary":"Sending addresses behind a placement test (from the sender domain SPF) with reverse-DNS and blocklist results; shared provider addresses are named, not checked","tags":["deliverability"],"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"domain":{"type":"string"},"spf":{"nullable":true,"type":"string"},"providers":{"type":"array","items":{"type":"string"}},"ips":{"type":"array","items":{"type":"object","properties":{"ip":{"type":"string"},"source":{"type":"string"},"range":{"nullable":true,"type":"string"},"ptr":{"$ref":"#/components/schemas/ResultsItem3"},"listed":{"type":"boolean"},"listings":{"type":"array","items":{"type":"object","properties":{"zone":{"type":"string"},"code":{"type":"string"}},"required":["zone","code"],"additionalProperties":false}},"errors":{"type":"array","items":{"type":"string"}}},"required":["ip","source","range","ptr","listed","listings","errors"],"additionalProperties":false}},"notes":{"type":"array","items":{"type":"string"}}},"required":["domain","spf","providers","ips","notes"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1DeliverabilityPlacementTestsByIdIpAnalytics"}},"/v1/ad-spend/ad-products":{"get":{"summary":"Product sales per ad: units, orders and line revenue for orders tagged with the ad id, campaign key or platform","tags":["analytics"],"parameters":[{"schema":{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"},"in":"query","name":"from","required":true},{"schema":{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"},"in":"query","name":"to","required":true},{"schema":{"type":"string","maxLength":64},"in":"query","name":"platform","required":false},{"schema":{"type":"string","maxLength":128},"in":"query","name":"campaignKey","required":false},{"schema":{"type":"string","maxLength":200},"in":"query","name":"adRef","required":false},{"schema":{"type":"integer","minimum":1,"maximum":200},"in":"query","name":"limit","required":false,"description":"Page size; omitted returns the whole list"},{"schema":{"type":"string","pattern":"^\\d{1,9}$"},"in":"query","name":"cursor","required":false,"description":"Opaque: the `nextCursor` of the previous page"}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"items":{"type":"array","items":{"type":"object","properties":{"productId":{"nullable":true,"type":"string"},"title":{"nullable":true,"type":"string"},"currency":{"type":"string"},"units":{"type":"number"},"orders":{"type":"number"},"revenueMinor":{"type":"number"}},"required":["productId","title","currency","units","orders","revenueMinor"],"additionalProperties":false}},"nextCursor":{"nullable":true,"type":"string"}},"required":["items","nextCursor"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1AdSpendAdProducts"}},"/v1/landing-pages/{id}/clicks":{"get":{"summary":"Links clicked on a hosted page","tags":["analytics"],"parameters":[{"schema":{"default":30,"type":"integer","minimum":1,"maximum":365},"in":"query","name":"days","required":false},{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"days":{"type":"number"},"total":{"type":"number"},"items":{"type":"array","items":{"type":"object","properties":{"url":{"type":"string"},"clicks":{"type":"number"}},"required":["url","clicks"],"additionalProperties":false}}},"required":["days","total","items"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1LandingPagesByIdClicks"}},"/v1/landing-pages/{id}/revenue":{"get":{"summary":"Orders and revenue credited to a hosted page, with revenue per visit","tags":["analytics"],"parameters":[{"schema":{"default":30,"type":"integer","minimum":1,"maximum":365},"in":"query","name":"days","required":false},{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"days":{"type":"number"},"visits":{"type":"number"},"signups":{"type":"number"},"totals":{"type":"array","items":{"type":"object","properties":{"currency":{"type":"string"},"orders":{"type":"number"},"revenueMinor":{"type":"number"},"revenuePerVisitMinor":{"nullable":true,"type":"number"}},"required":["currency","orders","revenueMinor","revenuePerVisitMinor"],"additionalProperties":false}},"daily":{"type":"array","items":{"type":"object","properties":{"day":{"type":"string"},"currency":{"type":"string"},"orders":{"type":"number"},"revenueMinor":{"type":"number"}},"required":["day","currency","orders","revenueMinor"],"additionalProperties":false}}},"required":["days","visits","signups","totals","daily"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1LandingPagesByIdRevenue"}},"/p/l/{ref}/click":{"post":{"summary":"Beacon from a hosted page: one link was clicked","tags":["landing-pages"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"url":{"type":"string","maxLength":500}},"required":["url"]}}}},"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"query","name":"p","required":false},{"schema":{"type":"string","pattern":"^[0-9a-f-]{36}\\.[a-z0-9][a-z0-9-]{0,62}$"},"in":"path","name":"ref","required":true}],"security":[],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"ok":{"type":"boolean","enum":[true]}},"required":["ok"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"postPLByRefClick"}},"/v1/segment-snapshots/{id}/contacts":{"get":{"summary":"The people frozen in a snapshot","tags":["segments"],"parameters":[{"schema":{"default":50,"type":"integer","minimum":1,"maximum":200},"in":"query","name":"limit","required":false},{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"query","name":"after","required":false},{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"items":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"email":{"nullable":true,"type":"string"},"phone":{"nullable":true,"type":"string"},"firstName":{"nullable":true,"type":"string"},"lastName":{"nullable":true,"type":"string"}},"required":["id","email","phone","firstName","lastName"],"additionalProperties":false}},"nextAfter":{"nullable":true,"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},"required":["items","nextAfter"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1SegmentSnapshotsByIdContacts"}},"/v1/segment-snapshots/{id}/export":{"get":{"summary":"CSV of the people frozen in a snapshot","tags":["segments"],"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1SegmentSnapshotsByIdExport"}},"/v1/outbound/activity":{"get":{"summary":"One feed of sends, replies, opens, clicks, bounces and finished calls or tasks across sequences, newest first","tags":["outbound"],"parameters":[{"schema":{"default":50,"type":"integer","minimum":1,"maximum":200},"in":"query","name":"limit","required":false},{"schema":{"type":"string","format":"date-time"},"in":"query","name":"before","required":false},{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"query","name":"sequenceId","required":false},{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"query","name":"profileId","required":false},{"schema":{"type":"string","maxLength":200},"in":"query","name":"kind","required":false,"description":"Comma separated: sent, delivered, opened, clicked, replied, bounced, task:call, task:linkedin..."}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"items":{"type":"array","items":{"type":"object","properties":{"at":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"source":{"type":"string","enum":["message","task"]},"kind":{"type":"string"},"profileId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"sequenceId":{"nullable":true,"type":"string"},"stepKey":{"nullable":true,"type":"string"},"channel":{"nullable":true,"type":"string"},"detail":{"nullable":true,"type":"string"}},"required":["at","source","kind","profileId","sequenceId","stepKey","channel","detail"],"additionalProperties":false}},"nextBefore":{"nullable":true,"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"}},"required":["items","nextBefore"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1OutboundActivity"}},"/v1/transactional/definitions/{id}/contents":{"get":{"tags":["transactional"],"parameters":[{"schema":{"type":"integer","minimum":1,"maximum":200},"in":"query","name":"limit","required":false,"description":"Page size; omitted returns the whole list"},{"schema":{"type":"string","pattern":"^\\d{1,9}$"},"in":"query","name":"cursor","required":false,"description":"Opaque: the `nextCursor` of the previous page"},{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetV1TransactionalDefinitionsByIdTranslationsResponse"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1TransactionalDefinitionsByIdContents"}},"/v1/transactional/definitions/{id}/contents/{contentId}":{"get":{"tags":["transactional"],"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true},{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"contentId","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ItemsItem49"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1TransactionalDefinitionsByIdContentsByContentId"},"put":{"tags":["transactional"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PutV1TransactionalDefinitionsByIdTranslationsByLocaleBody"}}}},"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true},{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"contentId","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ItemsItem49"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"putV1TransactionalDefinitionsByIdContentsByContentId"}},"/v1/segments/manual":{"post":{"summary":"Create a hand-picked segment from people or email addresses (a list plus a segment that follows it). Adding someone to a list grants no consent.","tags":["segments"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":120},"description":{"type":"string","maxLength":500},"profileIds":{"$ref":"#/components/schemas/ProfileIds4"},"emails":{"$ref":"#/components/schemas/Emails2"}},"required":["name"]}}}},"responses":{"201":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"name":{"type":"string"},"listId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"added":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"notFound":{"type":"array","items":{"type":"string"}}},"required":["id","name","listId","added","notFound"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"postV1SegmentsManual"}},"/v1/messages/{id}/unsubscribe":{"post":{"summary":"Unsubscribe the recipient of this message from the channel and purpose it was sent on (consent revoked, address suppressed)","tags":["messages"],"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"ok":{"type":"boolean","enum":[true]}},"required":["ok"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"postV1MessagesByIdUnsubscribe"}},"/v1/account/summary":{"get":{"summary":"Sent, delivered, bounced, complained, opens and clicks for today and the last 7, 30, 60 and 90 days, with bounce and complaint rates","tags":["transactional"],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"workspace":{"$ref":"#/components/schemas/ListsItem"},"stats":{"type":"object","additionalProperties":{"type":"object","properties":{"sent":{"type":"number"},"delivered":{"type":"number"},"bounced":{"type":"number"},"complained":{"type":"number"},"opens":{"type":"number"},"clicks":{"type":"number"},"bounceRate":{"nullable":true,"type":"number"},"complaintRate":{"nullable":true,"type":"number"}},"required":["sent","delivered","bounced","complained","opens","clicks","bounceRate","complaintRate"],"additionalProperties":false}}},"required":["workspace","stats"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1AccountSummary"}},"/v1/templates/{id}/stats":{"get":{"summary":"Daily sent, delivered, bounced, complained, opened and clicked counts for messages rendered from this template","tags":["templates"],"parameters":[{"schema":{"default":30,"type":"integer","minimum":1,"maximum":365},"in":"query","name":"days","required":false},{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"days":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"items":{"type":"array","items":{"type":"object","properties":{"day":{"type":"string"},"sent":{"type":"number"},"delivered":{"type":"number"},"bounced":{"type":"number"},"complained":{"type":"number"},"opens":{"type":"number"},"clicks":{"type":"number"}},"required":["day","sent","delivered","bounced","complained","opens","clicks"],"additionalProperties":false}}},"required":["days","items"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1TemplatesByIdStats"}},"/v1/outbound/sequences/{id}/statistics":{"get":{"summary":"Per prospect: messages sent, opened, clicked, replied and bounced","tags":["outbound"],"parameters":[{"schema":{"default":100,"type":"integer","minimum":1,"maximum":500},"in":"query","name":"limit","required":false},{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"query","name":"after","required":false},{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"items":{"type":"array","items":{"type":"object","properties":{"profileId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"email":{"nullable":true,"type":"string"},"sent":{"type":"number"},"opened":{"type":"number"},"clicked":{"type":"number"},"replied":{"type":"number"},"bounced":{"type":"number"},"lastActivityAt":{"nullable":true,"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"}},"required":["profileId","email","sent","opened","clicked","replied","bounced","lastActivityAt"],"additionalProperties":false}},"nextAfter":{"nullable":true,"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},"required":["items","nextAfter"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1OutboundSequencesByIdStatistics"}},"/v1/outbound/subsequences":{"get":{"summary":"Sequences started by a reply rule or reply label, with what starts them","tags":["outbound"],"parameters":[{"schema":{"type":"integer","minimum":1,"maximum":200},"in":"query","name":"limit","required":false,"description":"Page size; omitted returns the whole list"},{"schema":{"type":"string","pattern":"^\\d{1,9}$"},"in":"query","name":"cursor","required":false,"description":"Opaque: the `nextCursor` of the previous page"}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"items":{"type":"array","items":{"$ref":"#/components/schemas/ItemsItem179"}},"nextCursor":{"nullable":true,"type":"string"}},"required":["items","nextCursor"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1OutboundSubsequences"}},"/v1/outbound/subsequences/{id}":{"get":{"tags":["outbound"],"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ItemsItem179"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1OutboundSubsequencesById"}},"/v1/agency/clients/by-month":{"get":{"summary":"Client workspaces created per month","tags":["agency"],"parameters":[{"schema":{"type":"integer","minimum":1,"maximum":200},"in":"query","name":"limit","required":false,"description":"Page size; omitted returns the whole list"},{"schema":{"type":"string","pattern":"^\\d{1,9}$"},"in":"query","name":"cursor","required":false,"description":"Opaque: the `nextCursor` of the previous page"}],"security":[{"session":[]}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"items":{"type":"array","items":{"type":"object","properties":{"month":{"type":"string"},"clients":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["month","clients"],"additionalProperties":false}},"nextCursor":{"nullable":true,"type":"string"}},"required":["items","nextCursor"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1AgencyClientsByMonth"}},"/v1/webhook-templates/{id}/revisions":{"get":{"summary":"Every saved state of a call template / custom action, newest first","tags":["integrations"],"parameters":[{"schema":{"type":"integer","minimum":1,"maximum":200},"in":"query","name":"limit","required":false,"description":"Page size; omitted returns the whole list"},{"schema":{"type":"string","pattern":"^\\d{1,9}$"},"in":"query","name":"cursor","required":false,"description":"Opaque: the `nextCursor` of the previous page"},{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"items":{"type":"array","items":{"$ref":"#/components/schemas/ItemsItem180"}},"nextCursor":{"nullable":true,"type":"string"}},"required":["items","nextCursor"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1WebhookTemplatesByIdRevisions"}},"/v1/webhook-templates/{id}/revisions/{revisionId}":{"get":{"tags":["integrations"],"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true},{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"revisionId","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ItemsItem180"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1WebhookTemplatesByIdRevisionsByRevisionId"}},"/v1/webhook-templates/{id}/revisions/{revisionId}/restore":{"post":{"summary":"Put an earlier saved state back (recorded as a new revision)","tags":["integrations"],"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true},{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"revisionId","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string"}},"required":["id"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"postV1WebhookTemplatesByIdRevisionsByRevisionIdRestore"}},"/v1/workflow-actions/callbacks/{callbackId}/complete":{"post":{"summary":"Finish a Send webhook step that waits for a callback; outputFields are copied to the contact by the step's output list","tags":["integrations"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"outputFields":{"default":{},"type":"object","additionalProperties":{}},"state":{"default":"SUCCESS","type":"string","enum":["SUCCESS","FAIL_CONTINUE","BLOCK"]}}}}}},"parameters":[{"schema":{"type":"string","minLength":8,"maxLength":100},"in":"path","name":"callbackId","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"ok":{"type":"boolean","enum":[true]}},"required":["ok"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"postV1WorkflowActionsCallbacksByCallbackIdComplete"}},"/v1/workflow-actions/callbacks/complete":{"post":{"summary":"Finish up to 100 waiting steps at once","tags":["integrations"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"callbacks":{"minItems":1,"maxItems":100,"type":"array","items":{"type":"object","properties":{"callbackId":{"type":"string","minLength":8,"maxLength":100},"outputFields":{"default":{},"type":"object","additionalProperties":{}},"state":{"default":"SUCCESS","type":"string","enum":["SUCCESS","FAIL_CONTINUE","BLOCK"]}},"required":["callbackId"]}}},"required":["callbacks"]}}}},"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"completed":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"alreadyDone":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["completed","alreadyDone"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"postV1WorkflowActionsCallbacksComplete"}},"/v1/assets/{id}/gdpr-delete":{"post":{"summary":"Erase an asset for a data-protection request: the stored file and its thumbnail are deleted at once with no trash. Copies in the storage host's own backups expire with its retention.","tags":["integrations"],"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"ok":{"type":"boolean","enum":[true]}},"required":["ok"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"postV1AssetsByIdGdprDelete"}},"/v1/webhooks/endpoints/{id}/filters":{"get":{"tags":["integrations"],"parameters":[{"schema":{"type":"integer","minimum":1,"maximum":200},"in":"query","name":"limit","required":false,"description":"Page size; omitted returns the whole list"},{"schema":{"type":"string","pattern":"^\\d{1,9}$"},"in":"query","name":"cursor","required":false,"description":"Opaque: the `nextCursor` of the previous page"},{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"items":{"type":"array","items":{"$ref":"#/components/schemas/ItemsItem181"}},"nextCursor":{"nullable":true,"type":"string"}},"required":["items","nextCursor"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1WebhooksEndpointsByIdFilters"},"post":{"summary":"Add a payload condition; all conditions of an endpoint must match","tags":["integrations"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FiltersItem2"}}}},"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"201":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ItemsItem181"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"postV1WebhooksEndpointsByIdFilters"}},"/v1/webhooks/filters/{filterId}":{"get":{"tags":["integrations"],"parameters":[{"schema":{"type":"string","pattern":"^[0-9a-f-]{36}\\.(\\d{1,3}|[0-9a-f-]{36})$"},"in":"path","name":"filterId","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ItemsItem181"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1WebhooksFiltersByFilterId"},"delete":{"tags":["integrations"],"parameters":[{"schema":{"type":"string","pattern":"^[0-9a-f-]{36}\\.(\\d{1,3}|[0-9a-f-]{36})$"},"in":"path","name":"filterId","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"ok":{"type":"boolean","enum":[true]}},"required":["ok"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"deleteV1WebhooksFiltersByFilterId"}},"/v1/id-mappings":{"get":{"summary":"Old ids (from HubSpot, for example) and the lists or journeys they became","tags":["integrations"],"parameters":[{"schema":{"default":"hubspot","type":"string","minLength":1,"maxLength":40},"in":"query","name":"source","required":false},{"schema":{"type":"string","enum":["list","workflow"]},"in":"query","name":"kind","required":true},{"schema":{"type":"integer","minimum":1,"maximum":200},"in":"query","name":"limit","required":false,"description":"Page size; omitted returns the whole list"},{"schema":{"type":"string","pattern":"^\\d{1,9}$"},"in":"query","name":"cursor","required":false,"description":"Opaque: the `nextCursor` of the previous page"}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"items":{"$ref":"#/components/schemas/Items50"},"nextCursor":{"nullable":true,"type":"string"}},"required":["items","nextCursor"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1IdMappings"},"post":{"summary":"Record old id -> new id pairs","tags":["integrations"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"source":{"default":"hubspot","type":"string","minLength":1,"maxLength":40},"kind":{"type":"string","enum":["list","workflow"]},"pairs":{"minItems":1,"maxItems":1000,"type":"array","items":{"type":"object","properties":{"legacyId":{"type":"string","minLength":1,"maxLength":100},"targetId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},"required":["legacyId","targetId"]}}},"required":["kind","pairs"]}}}},"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"saved":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["saved"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"postV1IdMappings"}},"/v1/id-mappings/read":{"post":{"summary":"Look up the new ids for up to 1000 old ids","tags":["integrations"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"source":{"default":"hubspot","type":"string","minLength":1,"maxLength":40},"kind":{"type":"string","enum":["list","workflow"]},"legacyIds":{"minItems":1,"maxItems":1000,"type":"array","items":{"type":"string","minLength":1,"maxLength":100}}},"required":["kind","legacyIds"]}}}},"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"items":{"$ref":"#/components/schemas/Items50"}},"required":["items"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"postV1IdMappingsRead"}},"/v1/migrations/hubspot/lists":{"post":{"summary":"Import HubSpot list memberships (list id, list name, email): one list per HubSpot list, existing contacts only, no consent granted","tags":["integrations"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"rows":{"minItems":1,"maxItems":50000,"type":"array","items":{"type":"object","properties":{"listId":{"type":"string","minLength":1,"maxLength":100},"listName":{"type":"string","minLength":1,"maxLength":200},"email":{"type":"string","maxLength":320}},"required":["listId","listName","email"]}}},"required":["rows"]}}}},"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"items":{"type":"array","items":{"type":"object","properties":{"legacyId":{"type":"string"},"listId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"name":{"type":"string"},"created":{"type":"boolean"},"added":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"notFound":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["legacyId","listId","name","created","added","notFound"],"additionalProperties":false}}},"required":["items"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"postV1MigrationsHubspotLists"}},"/v1/goals":{"get":{"summary":"Every goal of every journey (flow goals and goal steps) with its conversion figures","tags":["workflows"],"parameters":[{"schema":{"type":"integer","minimum":1,"maximum":200},"in":"query","name":"limit","required":false,"description":"Page size; omitted returns the whole list"},{"schema":{"type":"string","pattern":"^\\d{1,9}$"},"in":"query","name":"cursor","required":false,"description":"Opaque: the `nextCursor` of the previous page"}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"items":{"$ref":"#/components/schemas/Items51"},"nextCursor":{"nullable":true,"type":"string"}},"required":["items","nextCursor"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1Goals"}},"/v1/goals/stats":{"get":{"summary":"Totals across goals and the best performers","tags":["workflows"],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"goals":{"type":"number"},"enrolled":{"type":"number"},"converted":{"type":"number"},"rate":{"type":"number"},"top":{"$ref":"#/components/schemas/Items51"}},"required":["goals","enrolled","converted","rate","top"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1GoalsStats"}},"/v1/goals/{goalId}":{"get":{"tags":["workflows"],"parameters":[{"schema":{"type":"string","pattern":"^[0-9a-f-]{36}\\.[A-Za-z0-9_-]{1,64}$"},"in":"path","name":"goalId","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ItemsItem183"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1GoalsByGoalId"}},"/v1/goals/{goalId}/tags":{"get":{"summary":"Tags the journey adds right after this goal","tags":["workflows"],"parameters":[{"schema":{"type":"integer","minimum":1,"maximum":200},"in":"query","name":"limit","required":false,"description":"Page size; omitted returns the whole list"},{"schema":{"type":"string","pattern":"^\\d{1,9}$"},"in":"query","name":"cursor","required":false,"description":"Opaque: the `nextCursor` of the previous page"},{"schema":{"type":"string","pattern":"^[0-9a-f-]{36}\\.[A-Za-z0-9_-]{1,64}$"},"in":"path","name":"goalId","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetV1GoalsByGoalIdTagsResponse"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1GoalsByGoalIdTags"}},"/v1/goals/{goalId}/lists":{"get":{"summary":"Lists the journey adds people to right after this goal","tags":["workflows"],"parameters":[{"schema":{"type":"integer","minimum":1,"maximum":200},"in":"query","name":"limit","required":false,"description":"Page size; omitted returns the whole list"},{"schema":{"type":"string","pattern":"^\\d{1,9}$"},"in":"query","name":"cursor","required":false,"description":"Opaque: the `nextCursor` of the previous page"},{"schema":{"type":"string","pattern":"^[0-9a-f-]{36}\\.[A-Za-z0-9_-]{1,64}$"},"in":"path","name":"goalId","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"items":{"$ref":"#/components/schemas/Conflicts"},"nextCursor":{"nullable":true,"type":"string"}},"required":["items","nextCursor"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1GoalsByGoalIdLists"}},"/v1/segments/{id}/match/{profileId}":{"get":{"summary":"Does this contact match the segment right now?","tags":["segments"],"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true},{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"profileId","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"segmentId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"profileId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"matched":{"type":"boolean"},"member":{"nullable":true,"type":"boolean"}},"required":["segmentId","profileId","matched","member"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1SegmentsByIdMatchByProfileId"}},"/v1/segments/{id}/match-runs":{"post":{"summary":"Match everyone against the segment now and keep the result as a run","tags":["segments"],"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"201":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PostV1SegmentsByIdMatchRunsResponse"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"postV1SegmentsByIdMatchRuns"},"get":{"tags":["segments"],"parameters":[{"schema":{"type":"integer","minimum":1,"maximum":200},"in":"query","name":"limit","required":false,"description":"Page size; omitted returns the whole list"},{"schema":{"type":"string","pattern":"^\\d{1,9}$"},"in":"query","name":"cursor","required":false,"description":"Opaque: the `nextCursor` of the previous page"},{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"items":{"$ref":"#/components/schemas/Items52"},"nextCursor":{"nullable":true,"type":"string"}},"required":["items","nextCursor"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1SegmentsByIdMatchRuns"}},"/v1/segment-match-runs/{id}":{"get":{"summary":"A run; its people are at GET /v1/segment-snapshots/{id}/contacts","tags":["segments"],"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PostV1SegmentsByIdMatchRunsResponse"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1SegmentMatchRunsById"}},"/v1/segment-match-runs":{"post":{"summary":"Run up to 20 segments at once","tags":["segments"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"segmentIds":{"$ref":"#/components/schemas/ProviderIds"}},"required":["segmentIds"]}}}},"responses":{"201":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"items":{"$ref":"#/components/schemas/Items52"}},"required":["items"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"postV1SegmentMatchRuns"}},"/v1/attributes/fields/{key}/lists":{"get":{"tags":["segments"],"parameters":[{"schema":{"type":"string","minLength":1,"maxLength":64},"in":"path","name":"key","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetV1AttributesFieldsByKeyListsResponse"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1AttributesFieldsByKeyLists"}},"/v1/attributes/fields/{key}/lists/{listId}":{"put":{"summary":"Show this field for people on this list","tags":["segments"],"parameters":[{"schema":{"type":"string","minLength":1,"maxLength":64},"in":"path","name":"key","required":true},{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"listId","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetV1AttributesFieldsByKeyListsResponse"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"putV1AttributesFieldsByKeyListsByListId"},"delete":{"tags":["segments"],"parameters":[{"schema":{"type":"string","minLength":1,"maxLength":64},"in":"path","name":"key","required":true},{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"listId","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetV1AttributesFieldsByKeyListsResponse"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"deleteV1AttributesFieldsByKeyListsByListId"}},"/v1/notes/{id}":{"get":{"summary":"A contact or company note by its id","tags":["profiles"],"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetV1NotesByIdResponse"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1NotesById"},"put":{"summary":"Edit a contact or company note","tags":["profiles"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"body":{"type":"string","minLength":1,"maxLength":5000}},"required":["body"]}}}},"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetV1NotesByIdResponse"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"putV1NotesById"},"delete":{"summary":"Delete a contact or company note","tags":["profiles"],"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"ok":{"type":"boolean","enum":[true]}},"required":["ok"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"deleteV1NotesById"}},"/v1/geo-ips":{"get":{"summary":"Truncated addresses seen on opens and clicks, with country","tags":["analytics"],"parameters":[{"schema":{"default":100,"type":"integer","minimum":1,"maximum":500},"in":"query","name":"limit","required":false},{"schema":{"type":"string","minLength":2,"maxLength":2},"in":"query","name":"country","required":false}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetV1GeoIpsResponse"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1GeoIps"}},"/v1/profiles/{id}/geo-ips":{"get":{"tags":["profiles"],"parameters":[{"schema":{"default":100,"type":"integer","minimum":1,"maximum":500},"in":"query","name":"limit","required":false},{"schema":{"type":"string","minLength":2,"maxLength":2},"in":"query","name":"country","required":false},{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetV1GeoIpsResponse"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1ProfilesByIdGeoIps"}},"/v1/geo-ips/{ip}":{"get":{"summary":"One shortened network address (the id is the shortened address itself)","tags":["analytics"],"parameters":[{"schema":{"type":"string","minLength":3,"maxLength":64},"in":"path","name":"ip","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ItemsItem184"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1GeoIpsByIp"}},"/v1/geo-ips/{ip}/address":{"get":{"summary":"Where a shortened address is: the country from the edge header (no street or city is ever kept)","tags":["analytics"],"parameters":[{"schema":{"type":"string","minLength":3,"maxLength":64},"in":"path","name":"ip","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"ip":{"type":"string"},"country":{"nullable":true,"type":"string"}},"required":["ip","country"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1GeoIpsByIpAddress"}},"/v1/geo-addresses/{key}":{"get":{"summary":"One place group; the key is country|region|city (empty parts allowed)","tags":["analytics"],"parameters":[{"schema":{"type":"string","minLength":1,"maxLength":300},"in":"path","name":"key","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetV1GeoAddressesByKeyResponse"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1GeoAddressesByKey"}},"/v1/geo-addresses":{"get":{"summary":"Country, region and city groups with contact counts","tags":["analytics"],"parameters":[{"schema":{"default":100,"type":"integer","minimum":1,"maximum":500},"in":"query","name":"limit","required":false},{"schema":{"type":"string","minLength":2,"maxLength":2},"in":"query","name":"country","required":false}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"items":{"type":"array","items":{"$ref":"#/components/schemas/GetV1GeoAddressesByKeyResponse"}}},"required":["items"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1GeoAddresses"}},"/v1/sms/credits":{"get":{"summary":"Text messages sent this month against the plan allowance. Carrier balances stay with the carrier.","tags":["sms"],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"period":{"type":"string"},"used":{"type":"number"},"limit":{"nullable":true,"type":"number"},"remaining":{"nullable":true,"type":"number"}},"required":["period","used","limit","remaining"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1SmsCredits"}},"/v1/sms/ai-drafts":{"post":{"summary":"Write a text message from a brief; a draft for a person to review, never sent","tags":["sms"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"brief":{"type":"string","minLength":1,"maxLength":4000},"tone":{"type":"string","maxLength":100}},"required":["brief"]}}}},"responses":{"201":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PostV1SmsAiDraftsResponse"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"postV1SmsAiDrafts"}},"/v1/sms/ai-drafts/{id}":{"put":{"summary":"Write it again from a new brief or tone, replacing this draft","tags":["sms"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"brief":{"type":"string","minLength":1,"maxLength":4000},"tone":{"type":"string","maxLength":100}},"required":["brief"]}}}},"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PostV1SmsAiDraftsResponse"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"putV1SmsAiDraftsById"},"get":{"tags":["sms"],"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PostV1SmsAiDraftsResponse"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1SmsAiDraftsById"}},"/v1/brand-kits/{id}/voice":{"get":{"summary":"How the brand sounds and which competitors it is compared with","tags":["content"],"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetV1BrandKitsByIdVoiceResponse"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1BrandKitsByIdVoice"},"put":{"tags":["content"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"tone":{"nullable":true,"type":"string","maxLength":1000},"competitors":{"maxItems":20,"type":"array","items":{"type":"string","minLength":1,"maxLength":200}},"toneDescriptors":{"maxItems":12,"type":"array","items":{"type":"string","minLength":1,"maxLength":40}},"languagePatterns":{"maxItems":20,"type":"array","items":{"type":"string","minLength":1,"maxLength":200}}}}}}},"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetV1BrandKitsByIdVoiceResponse"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"putV1BrandKitsByIdVoice"}},"/v1/ai/images":{"post":{"summary":"Generate an image with your own OpenAI-compatible image key (stored as an integration secret) and save it to the library. Needs AI assist turned on.","tags":["content"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"prompt":{"type":"string","minLength":3,"maxLength":1000},"secretName":{"type":"string","minLength":1,"maxLength":100,"description":"Name of the integration secret that holds your own image API key"},"model":{"default":"gpt-image-1","type":"string","maxLength":60},"size":{"default":"1024x1024","type":"string","enum":["1024x1024","1536x1024","1024x1536"]},"folderId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},"required":["prompt","secretName"]}}}},"responses":{"201":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"assetId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"url":{"type":"string"}},"required":["assetId","url"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"postV1AiImages"}},"/v1/leads/waterfalls/{id}/reset":{"post":{"summary":"Put the waterfall back to your enabled finder providers in priority order","tags":["leads"],"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"providerIds":{"type":"array","items":{"type":"string"}}},"required":["id","providerIds"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"postV1LeadsWaterfallsByIdReset"}},"/v1/workflows/{id}/enrollments/{enrollmentId}/variables":{"patch":{"summary":"Set values (usable as {{ vars.key }}) for this one prospect in this one sequence","tags":["outbound"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"variables":{"type":"object","additionalProperties":{"type":"string","maxLength":500}}},"required":["variables"]}}}},"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true},{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"enrollmentId","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"ok":{"type":"boolean","enum":[true]}},"required":["ok"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"patchV1WorkflowsByIdEnrollmentsByEnrollmentIdVariables"}},"/v1/signals":{"post":{"summary":"Record an outside signal for a person (job change, funding...). It arrives as the event external_signal, so journeys and sequences can start from it.","tags":["events"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"email":{"type":"string","format":"email","pattern":"^(?:[A-Za-z0-9_'+\\-]+\\.)*[A-Za-z0-9_'+\\-]*[A-Za-z0-9_+-]@(?:[A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$"},"profileId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"signal":{"type":"string","minLength":1,"maxLength":100},"properties":{"default":{},"type":"object","additionalProperties":{}},"occurredAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"}},"required":["signal"]}}}},"responses":{"202":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"accepted":{"type":"number"}},"required":["accepted"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"postV1Signals"}},"/v1/outbound/reply-statuses":{"get":{"summary":"The statuses a reply can have: the built-in categories and your own labels","tags":["outbound"],"parameters":[{"schema":{"type":"integer","minimum":1,"maximum":200},"in":"query","name":"limit","required":false,"description":"Page size; omitted returns the whole list"},{"schema":{"type":"string","pattern":"^\\d{1,9}$"},"in":"query","name":"cursor","required":false,"description":"Opaque: the `nextCursor` of the previous page"}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"items":{"type":"array","items":{"type":"object","properties":{"key":{"type":"string"},"label":{"type":"string"},"builtin":{"type":"boolean"}},"required":["key","label","builtin"],"additionalProperties":false}},"nextCursor":{"nullable":true,"type":"string"}},"required":["items","nextCursor"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1OutboundReplyStatuses"}},"/v1/deliverability/agents":{"get":{"tags":["deliverability"],"parameters":[{"schema":{"type":"integer","minimum":1,"maximum":200},"in":"query","name":"limit","required":false,"description":"Page size; omitted returns the whole list"},{"schema":{"type":"string","pattern":"^\\d{1,9}$"},"in":"query","name":"cursor","required":false,"description":"Opaque: the `nextCursor` of the previous page"}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"items":{"type":"array","items":{"$ref":"#/components/schemas/ItemsItem185"}},"nextCursor":{"nullable":true,"type":"string"}},"required":["items","nextCursor"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1DeliverabilityAgents"}},"/v1/deliverability/agents/{agentId}":{"get":{"tags":["deliverability"],"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"agentId","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ItemsItem185"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1DeliverabilityAgentsByAgentId"},"patch":{"tags":["deliverability"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"autoPause":{"type":"boolean"},"bounceRate":{"type":"number","minimum":0.001,"maximum":0.5},"complaintRate":{"type":"number","minimum":0.0001,"maximum":0.1},"minSample":{"type":"integer","minimum":1,"maximum":10000}}}}}},"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"agentId","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ItemsItem185"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"patchV1DeliverabilityAgentsByAgentId"},"delete":{"summary":"Turn the agent off (it stops pausing mailboxes); its limits are kept","tags":["deliverability"],"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"agentId","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ItemsItem185"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"deleteV1DeliverabilityAgentsByAgentId"}},"/v1/deliverability/placement-tests/{id}/headers":{"get":{"summary":"Delivery-path headers of each seed copy (IMAP and Gmail seeds)","tags":["deliverability"],"parameters":[{"schema":{"type":"integer","minimum":1,"maximum":200},"in":"query","name":"limit","required":false,"description":"Page size; omitted returns the whole list"},{"schema":{"type":"string","pattern":"^\\d{1,9}$"},"in":"query","name":"cursor","required":false,"description":"Opaque: the `nextCursor` of the previous page"},{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"items":{"type":"array","items":{"type":"object","properties":{"seedAddress":{"type":"string"},"folder":{"nullable":true,"type":"string"},"headers":{"type":"array","items":{"type":"string"}}},"required":["seedAddress","folder","headers"],"additionalProperties":false}},"nextCursor":{"nullable":true,"type":"string"}},"required":["items","nextCursor"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1DeliverabilityPlacementTestsByIdHeaders"}},"/v1/campaigns/{id}/language-metrics":{"get":{"summary":"How each language group (by the language on the contact) did, with clicks per link","tags":["campaigns"],"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"items":{"type":"array","items":{"type":"object","properties":{"locale":{"type":"string"},"sent":{"type":"number"},"delivered":{"type":"number"},"opens":{"type":"number"},"clicks":{"type":"number"}},"required":["locale","sent","delivered","opens","clicks"],"additionalProperties":false}},"links":{"type":"array","items":{"type":"object","properties":{"locale":{"type":"string"},"url":{"type":"string"},"clicks":{"type":"number"}},"required":["locale","url","clicks"],"additionalProperties":false}}},"required":["items","links"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1CampaignsByIdLanguageMetrics"}},"/v1/agency/move-sequence":{"post":{"summary":"Hand a sequence or journey to a client: it is copied into the client workspace as a draft, then archived here. Templates, segments and mailboxes do not travel; the result lists what to re-link.","tags":["agency"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PostV1AgencyMoveSequenceBody"}}}},"security":[{"session":[]}],"responses":{"201":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PostV1AgencyMoveSequenceResponse"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"postV1AgencyMoveSequence"}},"/v1/agency/move-mailbox":{"post":{"summary":"Move a connected mailbox to a client workspace: reconnected there with its credentials re-sealed, then archived here. Sender identities, pools and warm-up history start fresh.","tags":["agency"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PostV1AgencyMoveSequenceBody"}}}},"security":[{"session":[]}],"responses":{"201":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PostV1AgencyMoveSequenceResponse"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"postV1AgencyMoveMailbox"}},"/v1/newsletter/publications":{"get":{"tags":["newsletter"],"parameters":[{"schema":{"type":"integer","minimum":1,"maximum":200},"in":"query","name":"limit","required":false,"description":"Page size; omitted returns the whole list"},{"schema":{"type":"string","pattern":"^\\d{1,9}$"},"in":"query","name":"cursor","required":false,"description":"Opaque: the `nextCursor` of the previous page"}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"items":{"type":"array","items":{"$ref":"#/components/schemas/ItemsItem186"}},"nextCursor":{"nullable":true,"type":"string"}},"required":["items","nextCursor"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1NewsletterPublications"},"post":{"tags":["newsletter"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":120},"slug":{"type":"string","minLength":1,"maxLength":80,"pattern":"^[a-z0-9]+(?:-[a-z0-9]+)*$"},"tagline":{"nullable":true,"type":"string","maxLength":300},"logoUrl":{"nullable":true,"type":"string","maxLength":2048,"pattern":"^https?:\\/\\/"},"coverUrl":{"nullable":true,"type":"string","maxLength":2048,"pattern":"^https?:\\/\\/"},"accentColor":{"nullable":true,"type":"string","maxLength":32,"pattern":"^#[0-9a-fA-F]{3,8}$"},"fonts":{"nullable":true,"type":"object","properties":{"heading":{"type":"string","maxLength":80},"body":{"type":"string","maxLength":80}}},"about":{"nullable":true,"type":"string","maxLength":50000},"social":{"$ref":"#/components/schemas/Social2"},"senderName":{"nullable":true,"type":"string","maxLength":200},"route":{"$ref":"#/components/schemas/Route4"},"listId":{"nullable":true,"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"segmentId":{"nullable":true,"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"paidSegmentId":{"nullable":true,"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"language":{"default":"en","type":"string","minLength":2,"maxLength":16},"timezone":{"default":"UTC","type":"string","minLength":1,"maxLength":64},"footer":{"nullable":true,"type":"string","maxLength":1000},"seoTitle":{"nullable":true,"type":"string","maxLength":120},"seoDescription":{"nullable":true,"type":"string","maxLength":320},"seoImageUrl":{"nullable":true,"type":"string","maxLength":2048,"pattern":"^https?:\\/\\/"}},"required":["name","slug"]}}}},"responses":{"201":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ItemsItem186"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"postV1NewsletterPublications"}},"/v1/newsletter/publications/{id}":{"get":{"tags":["newsletter"],"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ItemsItem186"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1NewsletterPublicationsById"},"patch":{"tags":["newsletter"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":120},"slug":{"type":"string","minLength":1,"maxLength":80,"pattern":"^[a-z0-9]+(?:-[a-z0-9]+)*$"},"tagline":{"nullable":true,"type":"string","maxLength":300},"logoUrl":{"nullable":true,"type":"string","maxLength":2048,"pattern":"^https?:\\/\\/"},"coverUrl":{"nullable":true,"type":"string","maxLength":2048,"pattern":"^https?:\\/\\/"},"accentColor":{"nullable":true,"type":"string","maxLength":32,"pattern":"^#[0-9a-fA-F]{3,8}$"},"fonts":{"nullable":true,"type":"object","properties":{"heading":{"type":"string","maxLength":80},"body":{"type":"string","maxLength":80}}},"about":{"nullable":true,"type":"string","maxLength":50000},"social":{"$ref":"#/components/schemas/Social2"},"senderName":{"nullable":true,"type":"string","maxLength":200},"route":{"$ref":"#/components/schemas/Route4"},"listId":{"nullable":true,"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"segmentId":{"nullable":true,"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"paidSegmentId":{"nullable":true,"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"language":{"type":"string","minLength":2,"maxLength":16},"timezone":{"type":"string","minLength":1,"maxLength":64},"footer":{"nullable":true,"type":"string","maxLength":1000},"seoTitle":{"nullable":true,"type":"string","maxLength":120},"seoDescription":{"nullable":true,"type":"string","maxLength":320},"seoImageUrl":{"nullable":true,"type":"string","maxLength":2048,"pattern":"^https?:\\/\\/"}}}}}},"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ItemsItem186"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"patchV1NewsletterPublicationsById"}},"/v1/newsletter/publications/{id}/analytics":{"get":{"summary":"Top posts by web views with the subscribes and upgrades they brought in","tags":["newsletter"],"parameters":[{"schema":{"type":"integer","minimum":1,"maximum":200},"in":"query","name":"limit","required":false,"description":"Page size; omitted returns the whole list"},{"schema":{"type":"string","pattern":"^\\d{1,9}$"},"in":"query","name":"cursor","required":false,"description":"Opaque: the `nextCursor` of the previous page"},{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"items":{"type":"array","items":{"type":"object","properties":{"postId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"title":{"type":"string"},"views":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"uniqueReaders":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"subscribes":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"upgrades":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["postId","title","views","uniqueReaders","subscribes","upgrades"],"additionalProperties":false}},"nextCursor":{"nullable":true,"type":"string"}},"required":["items","nextCursor"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1NewsletterPublicationsByIdAnalytics"}},"/v1/newsletter/publications/{id}/authors":{"get":{"tags":["newsletter"],"parameters":[{"schema":{"type":"integer","minimum":1,"maximum":200},"in":"query","name":"limit","required":false,"description":"Page size; omitted returns the whole list"},{"schema":{"type":"string","pattern":"^\\d{1,9}$"},"in":"query","name":"cursor","required":false,"description":"Opaque: the `nextCursor` of the previous page"},{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"items":{"type":"array","items":{"$ref":"#/components/schemas/ItemsItem187"}},"nextCursor":{"nullable":true,"type":"string"}},"required":["items","nextCursor"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1NewsletterPublicationsByIdAuthors"},"post":{"tags":["newsletter"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":120},"slug":{"type":"string","minLength":1,"maxLength":80,"pattern":"^[a-z0-9]+(?:-[a-z0-9]+)*$"},"bio":{"nullable":true,"type":"string","maxLength":2000},"avatarUrl":{"nullable":true,"type":"string","maxLength":2048,"pattern":"^https?:\\/\\/"},"email":{"nullable":true,"type":"string","format":"email","pattern":"^(?:[A-Za-z0-9_'+\\-]+\\.)*[A-Za-z0-9_'+\\-]*[A-Za-z0-9_+-]@(?:[A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$"},"userId":{"nullable":true,"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},"required":["name"]}}}},"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"201":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ItemsItem187"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"postV1NewsletterPublicationsByIdAuthors"}},"/v1/newsletter/authors/{id}":{"patch":{"tags":["newsletter"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":120},"slug":{"type":"string","minLength":1,"maxLength":80,"pattern":"^[a-z0-9]+(?:-[a-z0-9]+)*$"},"bio":{"nullable":true,"type":"string","maxLength":2000},"avatarUrl":{"nullable":true,"type":"string","maxLength":2048,"pattern":"^https?:\\/\\/"},"email":{"nullable":true,"type":"string","format":"email","pattern":"^(?:[A-Za-z0-9_'+\\-]+\\.)*[A-Za-z0-9_'+\\-]*[A-Za-z0-9_+-]@(?:[A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$"},"userId":{"nullable":true,"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}}}}},"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ItemsItem187"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"patchV1NewsletterAuthorsById"},"delete":{"tags":["newsletter"],"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"ok":{"type":"boolean","enum":[true]}},"required":["ok"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"deleteV1NewsletterAuthorsById"}},"/v1/newsletter/publications/{id}/sections":{"get":{"tags":["newsletter"],"parameters":[{"schema":{"type":"integer","minimum":1,"maximum":200},"in":"query","name":"limit","required":false,"description":"Page size; omitted returns the whole list"},{"schema":{"type":"string","pattern":"^\\d{1,9}$"},"in":"query","name":"cursor","required":false,"description":"Opaque: the `nextCursor` of the previous page"},{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"items":{"type":"array","items":{"$ref":"#/components/schemas/ItemsItem188"}},"nextCursor":{"nullable":true,"type":"string"}},"required":["items","nextCursor"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1NewsletterPublicationsByIdSections"},"post":{"tags":["newsletter"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":80},"slug":{"type":"string","minLength":1,"maxLength":80,"pattern":"^[a-z0-9]+(?:-[a-z0-9]+)*$"},"description":{"nullable":true,"type":"string","maxLength":500}},"required":["name"]}}}},"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"201":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ItemsItem188"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"postV1NewsletterPublicationsByIdSections"}},"/v1/newsletter/sections/{id}":{"patch":{"tags":["newsletter"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":80},"slug":{"type":"string","minLength":1,"maxLength":80,"pattern":"^[a-z0-9]+(?:-[a-z0-9]+)*$"},"description":{"nullable":true,"type":"string","maxLength":500}}}}}},"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ItemsItem188"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"patchV1NewsletterSectionsById"},"delete":{"tags":["newsletter"],"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"ok":{"type":"boolean","enum":[true]}},"required":["ok"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"deleteV1NewsletterSectionsById"}},"/v1/newsletter/publications/{id}/redirects":{"get":{"tags":["newsletter"],"parameters":[{"schema":{"type":"integer","minimum":1,"maximum":200},"in":"query","name":"limit","required":false,"description":"Page size; omitted returns the whole list"},{"schema":{"type":"string","pattern":"^\\d{1,9}$"},"in":"query","name":"cursor","required":false,"description":"Opaque: the `nextCursor` of the previous page"},{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"items":{"type":"array","items":{"$ref":"#/components/schemas/ItemsItem189"}},"nextCursor":{"nullable":true,"type":"string"}},"required":["items","nextCursor"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1NewsletterPublicationsByIdRedirects"},"post":{"tags":["newsletter"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"fromPath":{"type":"string","minLength":2,"maxLength":500,"pattern":"^\\/"},"toPath":{"type":"string","minLength":1,"maxLength":2048},"status":{"default":301,"anyOf":[{"type":"number","enum":[301]},{"type":"number","enum":[302]}]}},"required":["fromPath","toPath"]}}}},"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"201":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ItemsItem189"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"postV1NewsletterPublicationsByIdRedirects"}},"/v1/newsletter/redirects/{id}":{"delete":{"tags":["newsletter"],"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"ok":{"type":"boolean","enum":[true]}},"required":["ok"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"deleteV1NewsletterRedirectsById"}},"/v1/newsletter/publications/{id}/domains":{"get":{"tags":["newsletter"],"parameters":[{"schema":{"type":"integer","minimum":1,"maximum":200},"in":"query","name":"limit","required":false,"description":"Page size; omitted returns the whole list"},{"schema":{"type":"string","pattern":"^\\d{1,9}$"},"in":"query","name":"cursor","required":false,"description":"Opaque: the `nextCursor` of the previous page"},{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"items":{"type":"array","items":{"$ref":"#/components/schemas/ItemsItem190"}},"nextCursor":{"nullable":true,"type":"string"}},"required":["items","nextCursor"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1NewsletterPublicationsByIdDomains"},"post":{"tags":["newsletter"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"domain":{"type":"string","minLength":4,"maxLength":253,"pattern":"^(?!-)[a-z0-9-]+(\\.[a-z0-9-]+)+$"}},"required":["domain"]}}}},"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"201":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ItemsItem190"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"postV1NewsletterPublicationsByIdDomains"}},"/v1/newsletter/domains/{id}/verify":{"post":{"summary":"Check the DNS records now","tags":["newsletter"],"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ItemsItem190"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"postV1NewsletterDomainsByIdVerify"}},"/v1/newsletter/domains/{id}":{"delete":{"tags":["newsletter"],"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"ok":{"type":"boolean","enum":[true]}},"required":["ok"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"deleteV1NewsletterDomainsById"}},"/v1/newsletter/posts":{"get":{"tags":["newsletter"],"parameters":[{"schema":{"default":50,"type":"integer","minimum":1,"maximum":200},"in":"query","name":"limit","required":false},{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"query","name":"cursor","required":false},{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"query","name":"publicationId","required":false},{"schema":{"type":"string","enum":["draft","scheduled","published","archived"]},"in":"query","name":"status","required":false},{"schema":{"type":"string","maxLength":200},"in":"query","name":"q","required":false},{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"query","name":"sectionId","required":false},{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"query","name":"authorId","required":false}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"items":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"publicationId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"title":{"type":"string"},"subtitle":{"nullable":true,"type":"string"},"slug":{"type":"string"},"coverUrl":{"nullable":true,"type":"string"},"coverAlt":{"nullable":true,"type":"string"},"excerpt":{"nullable":true,"type":"string"},"authorIds":{"$ref":"#/components/schemas/Conflicts"},"sectionIds":{"$ref":"#/components/schemas/Conflicts"},"tags":{"type":"array","items":{"type":"string"}},"audience":{"$ref":"#/components/schemas/Audience6"},"delivery":{"type":"string","enum":["web","email","both"]},"featured":{"type":"boolean"},"seoTitle":{"nullable":true,"type":"string"},"seoDescription":{"nullable":true,"type":"string"},"seoImageUrl":{"nullable":true,"type":"string"},"noindex":{"type":"boolean"},"status":{"type":"string","enum":["draft","scheduled","published","archived"]},"publishedAt":{"nullable":true,"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"scheduledAt":{"nullable":true,"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"campaignId":{"nullable":true,"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"paidCampaignId":{"nullable":true,"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"emailError":{"nullable":true,"type":"string"},"wordCount":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"readMinutes":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"url":{"type":"string"},"createdAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"updatedAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"}},"required":["id","publicationId","title","subtitle","slug","coverUrl","coverAlt","excerpt","authorIds","sectionIds","tags","audience","delivery","featured","seoTitle","seoDescription","seoImageUrl","noindex","status","publishedAt","scheduledAt","campaignId","paidCampaignId","emailError","wordCount","readMinutes","url","createdAt","updatedAt"],"additionalProperties":false}},"nextCursor":{"nullable":true,"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},"required":["items","nextCursor"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1NewsletterPosts"},"post":{"tags":["newsletter"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"publicationId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"title":{"type":"string","minLength":1,"maxLength":300},"subtitle":{"nullable":true,"type":"string","maxLength":500},"slug":{"type":"string","minLength":1,"maxLength":80,"pattern":"^[a-z0-9]+(?:-[a-z0-9]+)*$"},"coverUrl":{"nullable":true,"type":"string","maxLength":2048,"pattern":"^https?:\\/\\/"},"coverAlt":{"nullable":true,"type":"string","maxLength":500},"markdown":{"default":"","type":"string","maxLength":500000},"excerpt":{"nullable":true,"type":"string","maxLength":600},"authorIds":{"$ref":"#/components/schemas/ListIds4"},"sectionIds":{"$ref":"#/components/schemas/ListIds4"},"tags":{"default":[],"maxItems":20,"type":"array","items":{"type":"string","minLength":1,"maxLength":40}},"audience":{"default":{"kind":"everyone"},"type":"object","properties":{"kind":{"type":"string","enum":["everyone","free","paid","tiers"]},"tierIds":{"$ref":"#/components/schemas/AllowedConnectionIds"}},"required":["kind"]},"delivery":{"default":"both","type":"string","enum":["web","email","both"]},"featured":{"default":false,"type":"boolean"},"seoTitle":{"nullable":true,"type":"string","maxLength":120},"seoDescription":{"nullable":true,"type":"string","maxLength":320},"seoImageUrl":{"nullable":true,"type":"string","maxLength":2048,"pattern":"^https?:\\/\\/"},"noindex":{"default":false,"type":"boolean"}},"required":["publicationId","title"]}}}},"responses":{"201":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PostV1NewsletterPostsResponse"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"postV1NewsletterPosts"}},"/v1/newsletter/posts/{id}":{"get":{"tags":["newsletter"],"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PostV1NewsletterPostsResponse"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1NewsletterPostsById"},"patch":{"tags":["newsletter"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"title":{"type":"string","minLength":1,"maxLength":300},"subtitle":{"nullable":true,"type":"string","maxLength":500},"slug":{"type":"string","minLength":1,"maxLength":80,"pattern":"^[a-z0-9]+(?:-[a-z0-9]+)*$"},"coverUrl":{"nullable":true,"type":"string","maxLength":2048,"pattern":"^https?:\\/\\/"},"coverAlt":{"nullable":true,"type":"string","maxLength":500},"markdown":{"type":"string","maxLength":500000},"excerpt":{"nullable":true,"type":"string","maxLength":600},"authorIds":{"$ref":"#/components/schemas/SegmentIds"},"sectionIds":{"$ref":"#/components/schemas/SegmentIds"},"tags":{"maxItems":20,"type":"array","items":{"type":"string","minLength":1,"maxLength":40}},"audience":{"type":"object","properties":{"kind":{"type":"string","enum":["everyone","free","paid","tiers"]},"tierIds":{"$ref":"#/components/schemas/AllowedConnectionIds"}},"required":["kind"]},"delivery":{"type":"string","enum":["web","email","both"]},"featured":{"type":"boolean"},"seoTitle":{"nullable":true,"type":"string","maxLength":120},"seoDescription":{"nullable":true,"type":"string","maxLength":320},"seoImageUrl":{"nullable":true,"type":"string","maxLength":2048,"pattern":"^https?:\\/\\/"},"noindex":{"type":"boolean"},"note":{"type":"string","maxLength":200}}}}}},"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PostV1NewsletterPostsResponse"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"patchV1NewsletterPostsById"},"delete":{"tags":["newsletter"],"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"ok":{"type":"boolean","enum":[true]}},"required":["ok"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"deleteV1NewsletterPostsById"}},"/v1/newsletter/posts/{id}/duplicate":{"post":{"tags":["newsletter"],"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"201":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PostV1NewsletterPostsResponse"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"postV1NewsletterPostsByIdDuplicate"}},"/v1/newsletter/posts/{id}/publish":{"post":{"summary":"Publish on the web; when the post delivers by email it goes to the campaign pipeline (never sent directly)","tags":["newsletter"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"nullable":true,"type":"object","properties":{"subject":{"type":"string","maxLength":998},"subjectB":{"type":"string","maxLength":998},"previewText":{"type":"string","maxLength":300},"listId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"segmentId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}}}}},"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PostV1NewsletterPostsResponse"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"postV1NewsletterPostsByIdPublish"}},"/v1/newsletter/posts/{id}/schedule":{"post":{"tags":["newsletter"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"at":{"type":"string","format":"date-time"}},"required":["at"]}}}},"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PostV1NewsletterPostsResponse"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"postV1NewsletterPostsByIdSchedule"},"delete":{"tags":["newsletter"],"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PostV1NewsletterPostsResponse"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"deleteV1NewsletterPostsByIdSchedule"}},"/v1/newsletter/posts/{id}/unpublish":{"post":{"summary":"Take a post off the web: back to draft, or archived (hidden from lists, link still works)","tags":["newsletter"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"to":{"default":"draft","type":"string","enum":["draft","archived"]}}}}}},"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PostV1NewsletterPostsResponse"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"postV1NewsletterPostsByIdUnpublish"}},"/v1/newsletter/posts/{id}/email":{"post":{"summary":"Create the campaign for this post (draft, send now or schedule) with optional A/B subject","tags":["newsletter"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"subject":{"type":"string","maxLength":998},"subjectB":{"type":"string","maxLength":998},"previewText":{"type":"string","maxLength":300},"listId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"segmentId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"mode":{"default":"draft","type":"string","enum":["now","schedule","draft"]},"at":{"type":"string","format":"date-time"}}}}}},"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"201":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"campaignId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"paidCampaignId":{"nullable":true,"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"status":{"type":"string"}},"required":["campaignId","paidCampaignId","status"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"postV1NewsletterPostsByIdEmail"}},"/v1/newsletter/posts/{id}/test-send":{"post":{"summary":"Send the real email to a few addresses through the campaign pipeline","tags":["newsletter"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"emails":{"minItems":1,"maxItems":20,"type":"array","items":{"type":"string","format":"email","pattern":"^(?:[A-Za-z0-9_'+\\-]+\\.)*[A-Za-z0-9_'+\\-]*[A-Za-z0-9_+-]@(?:[A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$"}}},"required":["emails"]}}}},"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PostV1CampaignsByIdSendReportResponse"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"postV1NewsletterPostsByIdTestSend"}},"/v1/newsletter/posts/{id}/preview":{"post":{"summary":"Preview as a free reader, a paid reader, the email or the web page (from unsaved text if given)","tags":["newsletter"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"as":{"default":"web","type":"string","enum":["free","paid","email","web"]},"markdown":{"type":"string","maxLength":500000}}}}}},"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"html":{"type":"string"},"words":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"readMinutes":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"hasPaywall":{"type":"boolean"}},"required":["html","words","readMinutes","hasPaywall"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"postV1NewsletterPostsByIdPreview"}},"/v1/newsletter/posts/{id}/revisions":{"get":{"tags":["newsletter"],"parameters":[{"schema":{"type":"integer","minimum":1,"maximum":200},"in":"query","name":"limit","required":false,"description":"Page size; omitted returns the whole list"},{"schema":{"type":"string","pattern":"^\\d{1,9}$"},"in":"query","name":"cursor","required":false,"description":"Opaque: the `nextCursor` of the previous page"},{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"items":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"postId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"title":{"type":"string"},"subtitle":{"nullable":true,"type":"string"},"markdown":{"type":"string"},"note":{"nullable":true,"type":"string"},"createdBy":{"nullable":true,"type":"string"},"createdAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"}},"required":["id","postId","title","subtitle","markdown","note","createdBy","createdAt"],"additionalProperties":false}},"nextCursor":{"nullable":true,"type":"string"}},"required":["items","nextCursor"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1NewsletterPostsByIdRevisions"}},"/v1/newsletter/posts/{id}/revisions/{revisionId}/restore":{"post":{"tags":["newsletter"],"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true},{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"revisionId","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PostV1NewsletterPostsResponse"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"postV1NewsletterPostsByIdRevisionsByRevisionIdRestore"}},"/v1/newsletter/posts/{id}/analytics":{"get":{"summary":"Email stats from delivery, web views, read depth, referrers, attributed subscribes and upgrades","tags":["newsletter"],"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"postId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"web":{"type":"object","properties":{"views":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"uniqueReaders":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"avgSeconds":{"type":"number"},"avgDepth":{"type":"number"},"depthBuckets":{"type":"array","items":{"type":"object","properties":{"pct":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"readers":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["pct","readers"],"additionalProperties":false}},"sections":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"heading":{"nullable":true,"type":"string"},"readers":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["id","heading","readers"],"additionalProperties":false}},"referrers":{"type":"array","items":{"type":"object","properties":{"host":{"type":"string"},"views":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["host","views"],"additionalProperties":false}},"daily":{"type":"array","items":{"type":"object","properties":{"day":{"type":"string"},"views":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["day","views"],"additionalProperties":false}}},"required":["views","uniqueReaders","avgSeconds","avgDepth","depthBuckets","sections","referrers","daily"],"additionalProperties":false},"email":{"nullable":true,"type":"object","properties":{"sent":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"opened":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"clicked":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"unsubscribed":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"links":{"$ref":"#/components/schemas/Links"}},"required":["sent","opened","clicked","unsubscribed","links"],"additionalProperties":false},"attributed":{"type":"object","properties":{"subscribes":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"upgrades":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["subscribes","upgrades"],"additionalProperties":false}},"required":["postId","web","email","attributed"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1NewsletterPostsByIdAnalytics"}},"/v1/newsletter/imports":{"post":{"summary":"Import a Substack/Medium zip, a beehiiv CSV, a Ghost JSON or a WordPress WXR file (multipart: file, publicationId, source, attestedBy?). Subscribers in the file are added only when attestedBy names who vouches they opted in","tags":["newsletter"],"responses":{"202":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PostV1NewsletterImportsResponse"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"postV1NewsletterImports"}},"/v1/newsletter/imports/rss":{"post":{"summary":"Import posts from an RSS or Atom feed that carries full content (fetched by the worker, SSRF-guarded)","tags":["newsletter"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"publicationId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"url":{"type":"string","maxLength":2048,"pattern":"^https?:\\/\\/"}},"required":["publicationId","url"]}}}},"responses":{"202":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PostV1NewsletterImportsResponse"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"postV1NewsletterImportsRss"}},"/v1/newsletter/publications/{id}/imports":{"get":{"tags":["newsletter"],"parameters":[{"schema":{"type":"integer","minimum":1,"maximum":200},"in":"query","name":"limit","required":false,"description":"Page size; omitted returns the whole list"},{"schema":{"type":"string","pattern":"^\\d{1,9}$"},"in":"query","name":"cursor","required":false,"description":"Opaque: the `nextCursor` of the previous page"},{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"items":{"type":"array","items":{"$ref":"#/components/schemas/PostV1NewsletterImportsResponse"}},"nextCursor":{"nullable":true,"type":"string"}},"required":["items","nextCursor"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1NewsletterPublicationsByIdImports"}},"/v1/newsletter/imports/{id}":{"get":{"tags":["newsletter"],"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PostV1NewsletterImportsResponse"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1NewsletterImportsById"}},"/p/n/{ref}":{"get":{"summary":"Publication home: featured and latest posts","tags":["newsletter-site"],"parameters":[{"schema":{"type":"string","pattern":"^[0-9a-f-]{36}\\.[a-z0-9][a-z0-9-]{0,79}$"},"in":"path","name":"ref","required":true}],"security":[],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"string"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getPNByRef"}},"/p/n/{ref}/archive":{"get":{"summary":"Archive with search and pagination","tags":["newsletter-site"],"parameters":[{"schema":{"type":"string","maxLength":200},"in":"query","name":"q","required":false},{"schema":{"default":1,"type":"integer","minimum":1,"maximum":10000},"in":"query","name":"page","required":false},{"schema":{"type":"string","maxLength":2000},"in":"query","name":"rt","required":false},{"schema":{"type":"string","pattern":"^[0-9a-f-]{36}\\.[a-z0-9][a-z0-9-]{0,79}$"},"in":"path","name":"ref","required":true}],"security":[],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"string"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getPNByRefArchive"}},"/p/n/{ref}/s/{slug}":{"get":{"summary":"Posts of one section","tags":["newsletter-site"],"parameters":[{"schema":{"type":"string","maxLength":200},"in":"query","name":"q","required":false},{"schema":{"default":1,"type":"integer","minimum":1,"maximum":10000},"in":"query","name":"page","required":false},{"schema":{"type":"string","maxLength":2000},"in":"query","name":"rt","required":false},{"schema":{"type":"string","pattern":"^[0-9a-f-]{36}\\.[a-z0-9][a-z0-9-]{0,79}$"},"in":"path","name":"ref","required":true},{"schema":{"type":"string","minLength":1,"maxLength":80,"pattern":"^[a-z0-9-]+$"},"in":"path","name":"slug","required":true}],"security":[],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"string"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getPNByRefSBySlug"}},"/p/n/{ref}/a/{slug}":{"get":{"summary":"Posts of one author","tags":["newsletter-site"],"parameters":[{"schema":{"type":"string","maxLength":200},"in":"query","name":"q","required":false},{"schema":{"default":1,"type":"integer","minimum":1,"maximum":10000},"in":"query","name":"page","required":false},{"schema":{"type":"string","maxLength":2000},"in":"query","name":"rt","required":false},{"schema":{"type":"string","pattern":"^[0-9a-f-]{36}\\.[a-z0-9][a-z0-9-]{0,79}$"},"in":"path","name":"ref","required":true},{"schema":{"type":"string","minLength":1,"maxLength":80,"pattern":"^[a-z0-9-]+$"},"in":"path","name":"slug","required":true}],"security":[],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"string"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getPNByRefABySlug"}},"/p/n/{ref}/about":{"get":{"summary":"About page","tags":["newsletter-site"],"parameters":[{"schema":{"type":"string","pattern":"^[0-9a-f-]{36}\\.[a-z0-9][a-z0-9-]{0,79}$"},"in":"path","name":"ref","required":true}],"security":[],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"string"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getPNByRefAbout"}},"/p/n/{ref}/subscribe":{"get":{"summary":"Subscribe page","tags":["newsletter-site"],"parameters":[{"schema":{"type":"string","maxLength":80},"in":"query","name":"from","required":false},{"schema":{"type":"string","pattern":"^[0-9a-f-]{36}\\.[a-z0-9][a-z0-9-]{0,79}$"},"in":"path","name":"ref","required":true}],"security":[],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"string"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getPNByRefSubscribe"},"post":{"summary":"Subscribe (consent recorded with the exact text shown)","tags":["newsletter-site"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","additionalProperties":{}}}}},"parameters":[{"schema":{"type":"string","pattern":"^[0-9a-f-]{36}\\.[a-z0-9][a-z0-9-]{0,79}$"},"in":"path","name":"ref","required":true}],"security":[],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"string"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"postPNByRefSubscribe"}},"/p/n/{ref}/p/{slug}":{"get":{"summary":"One post (full text for entitled readers, preview and an upgrade box otherwise)","tags":["newsletter-site"],"parameters":[{"schema":{"type":"string","maxLength":2000},"in":"query","name":"rt","required":false},{"schema":{"type":"string","maxLength":60},"in":"query","name":"utm_source","required":false},{"schema":{"type":"string","pattern":"^[0-9a-f-]{36}\\.[a-z0-9][a-z0-9-]{0,79}$"},"in":"path","name":"ref","required":true},{"schema":{"type":"string","minLength":1,"maxLength":80,"pattern":"^[a-z0-9-]+$"},"in":"path","name":"slug","required":true}],"security":[],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"string"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getPNByRefPBySlug"}},"/p/n/{ref}/p/{slug}/beacon":{"post":{"summary":"Read-depth and time beacon from the post page","tags":["newsletter-site"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"view":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"seconds":{"default":0,"type":"integer","minimum":0,"maximum":86400},"depth":{"default":0,"type":"integer","minimum":0,"maximum":100},"section":{"type":"string","pattern":"^[\\w-]{1,100}$"}}}}}},"parameters":[{"schema":{"type":"string","pattern":"^[0-9a-f-]{36}\\.[a-z0-9][a-z0-9-]{0,79}$"},"in":"path","name":"ref","required":true},{"schema":{"type":"string","minLength":1,"maxLength":80,"pattern":"^[a-z0-9-]+$"},"in":"path","name":"slug","required":true}],"security":[],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"ok":{"type":"boolean","enum":[true]}},"required":["ok"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"postPNByRefPBySlugBeacon"}},"/p/n/{ref}/feed.xml":{"get":{"summary":"RSS feed (free part of every post)","tags":["newsletter-site"],"parameters":[{"schema":{"type":"string","pattern":"^[0-9a-f-]{36}\\.[a-z0-9][a-z0-9-]{0,79}$"},"in":"path","name":"ref","required":true}],"security":[],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"string"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getPNByRefFeedXml"}},"/p/n/{ref}/atom.xml":{"get":{"summary":"Atom feed","tags":["newsletter-site"],"parameters":[{"schema":{"type":"string","pattern":"^[0-9a-f-]{36}\\.[a-z0-9][a-z0-9-]{0,79}$"},"in":"path","name":"ref","required":true}],"security":[],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"string"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getPNByRefAtomXml"}},"/p/n/{ref}/sitemap.xml":{"get":{"summary":"sitemap.xml","tags":["newsletter-site"],"parameters":[{"schema":{"type":"string","pattern":"^[0-9a-f-]{36}\\.[a-z0-9][a-z0-9-]{0,79}$"},"in":"path","name":"ref","required":true}],"security":[],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"string"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getPNByRefSitemapXml"}},"/p/n/{ref}/robots.txt":{"get":{"summary":"robots.txt","tags":["newsletter-site"],"parameters":[{"schema":{"type":"string","pattern":"^[0-9a-f-]{36}\\.[a-z0-9][a-z0-9-]{0,79}$"},"in":"path","name":"ref","required":true}],"security":[],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"string"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getPNByRefRobotsTxt"}},"/p/n/{ref}/{*}":{"get":{"summary":"301/302 for an old address, else 404","tags":["newsletter-site"],"parameters":[{"schema":{"type":"string","pattern":"^[0-9a-f-]{36}\\.[a-z0-9][a-z0-9-]{0,79}$"},"in":"path","name":"ref","required":true},{"schema":{"type":"string","maxLength":500},"in":"path","name":"*","required":true}],"security":[],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"string"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getPNByRefWildcard"}},"/v1/newsletter/stripe":{"get":{"summary":"Stripe connection status and the webhook URL to register","tags":["newsletter"],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetV1NewsletterStripeResponse"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1NewsletterStripe"},"put":{"summary":"Connect the workspace's own Stripe account (keys are sealed and never returned)","tags":["newsletter"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"secretKey":{"type":"string","minLength":8,"maxLength":300,"pattern":"^(sk|rk)_(test|live)_"},"webhookSecret":{"type":"string","minLength":8,"maxLength":300,"pattern":"^whsec_"}},"required":["secretKey","webhookSecret"]}}}},"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetV1NewsletterStripeResponse"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"putV1NewsletterStripe"},"delete":{"tags":["newsletter"],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"ok":{"type":"boolean","enum":[true]}},"required":["ok"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"deleteV1NewsletterStripe"}},"/v1/newsletter/tiers":{"get":{"tags":["newsletter"],"parameters":[{"schema":{"type":"integer","minimum":1,"maximum":200},"in":"query","name":"limit","required":false,"description":"Page size; omitted returns the whole list"},{"schema":{"type":"string","pattern":"^\\d{1,9}$"},"in":"query","name":"cursor","required":false,"description":"Opaque: the `nextCursor` of the previous page"}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"items":{"type":"array","items":{"$ref":"#/components/schemas/ItemsItem191"}},"nextCursor":{"nullable":true,"type":"string"}},"required":["items","nextCursor"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1NewsletterTiers"},"post":{"tags":["newsletter"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":120},"description":{"type":"string","maxLength":2000},"benefits":{"default":[],"maxItems":20,"type":"array","items":{"type":"string","minLength":1,"maxLength":300}},"currency":{"type":"string","minLength":3,"maxLength":3},"monthlyMinor":{"default":null,"nullable":true,"type":"integer","minimum":0,"maximum":9007199254740991},"annualMinor":{"default":null,"nullable":true,"type":"integer","minimum":0,"maximum":9007199254740991},"trialDays":{"default":0,"type":"integer","minimum":0,"maximum":365},"isFounding":{"default":false,"type":"boolean"},"foundingLimit":{"default":null,"nullable":true,"type":"integer","minimum":0,"exclusiveMinimum":true,"maximum":9007199254740991},"teamPlan":{"default":false,"type":"boolean"}},"required":["name"]}}}},"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ItemsItem191"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"postV1NewsletterTiers"}},"/v1/newsletter/tiers/{id}":{"patch":{"summary":"Edit a tier. Price changes apply to new subscribers only.","tags":["newsletter"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":120},"description":{"type":"string","maxLength":2000},"benefits":{"maxItems":20,"type":"array","items":{"type":"string","minLength":1,"maxLength":300}},"currency":{"type":"string","minLength":3,"maxLength":3},"monthlyMinor":{"nullable":true,"type":"integer","minimum":0,"maximum":9007199254740991},"annualMinor":{"nullable":true,"type":"integer","minimum":0,"maximum":9007199254740991},"trialDays":{"type":"integer","minimum":0,"maximum":365},"isFounding":{"type":"boolean"},"foundingLimit":{"nullable":true,"type":"integer","minimum":0,"exclusiveMinimum":true,"maximum":9007199254740991},"teamPlan":{"type":"boolean"},"position":{"type":"integer","minimum":0,"maximum":1000}}}}}},"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ItemsItem191"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"patchV1NewsletterTiersById"}},"/v1/newsletter/tiers/{id}/archive":{"post":{"summary":"Archive a tier: current members keep it, nobody new can join","tags":["newsletter"],"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ItemsItem191"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"postV1NewsletterTiersByIdArchive"}},"/v1/newsletter/coupons":{"get":{"tags":["newsletter"],"parameters":[{"schema":{"type":"integer","minimum":1,"maximum":200},"in":"query","name":"limit","required":false,"description":"Page size; omitted returns the whole list"},{"schema":{"type":"string","pattern":"^\\d{1,9}$"},"in":"query","name":"cursor","required":false,"description":"Opaque: the `nextCursor` of the previous page"}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"items":{"type":"array","items":{"$ref":"#/components/schemas/ItemsItem192"}},"nextCursor":{"nullable":true,"type":"string"}},"required":["items","nextCursor"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1NewsletterCoupons"},"post":{"tags":["newsletter"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string","minLength":3,"maxLength":40,"pattern":"^[A-Za-z0-9_-]+$"},"percentOff":{"type":"number","minimum":1,"maximum":100},"amountOffMinor":{"type":"integer","minimum":0,"maximum":9007199254740991},"currency":{"type":"string","minLength":3,"maxLength":3},"duration":{"default":"once","type":"string","enum":["once","repeating","forever"]},"durationMonths":{"type":"integer","minimum":1,"maximum":36},"maxRedemptions":{"type":"integer","minimum":0,"exclusiveMinimum":true,"maximum":9007199254740991},"expiresAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"tierIds":{"$ref":"#/components/schemas/IncludeSegmentIds"}},"required":["code"]}}}},"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ItemsItem192"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"postV1NewsletterCoupons"}},"/v1/newsletter/coupons/{id}/archive":{"post":{"tags":["newsletter"],"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ItemsItem192"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"postV1NewsletterCouponsByIdArchive"}},"/v1/newsletter/gifts":{"get":{"tags":["newsletter"],"parameters":[{"schema":{"type":"integer","minimum":1,"maximum":200},"in":"query","name":"limit","required":false,"description":"Page size; omitted returns the whole list"},{"schema":{"type":"string","pattern":"^\\d{1,9}$"},"in":"query","name":"cursor","required":false,"description":"Opaque: the `nextCursor` of the previous page"}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"items":{"type":"array","items":{"$ref":"#/components/schemas/ItemsItem193"}},"nextCursor":{"nullable":true,"type":"string"}},"required":["items","nextCursor"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1NewsletterGifts"},"post":{"summary":"Create a gift and its Stripe Checkout link for the buyer; the redeem link works once paid","tags":["newsletter"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PostV1NewsletterGiftsBody"}}}},"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PostV1NewsletterGiftsResponse"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"postV1NewsletterGifts"}},"/v1/newsletter/members":{"get":{"tags":["newsletter"],"parameters":[{"schema":{"type":"string","enum":["trialing","active","past_due","canceled","paused","comped","gifted"]},"in":"query","name":"status","required":false},{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"query","name":"tierId","required":false},{"schema":{"default":50,"type":"integer","minimum":1,"maximum":200},"in":"query","name":"limit","required":false},{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"query","name":"cursor","required":false}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"items":{"type":"array","items":{"$ref":"#/components/schemas/ItemsItem194"}},"nextCursor":{"nullable":true,"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},"required":["items","nextCursor"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1NewsletterMembers"}},"/v1/newsletter/members/comp":{"post":{"summary":"Grant free paid access (optionally until a date)","tags":["newsletter"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"email":{"type":"string","format":"email","pattern":"^(?:[A-Za-z0-9_'+\\-]+\\.)*[A-Za-z0-9_'+\\-]*[A-Za-z0-9_+-]@(?:[A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$"},"profileId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"tierId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"expiresAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"}},"required":["tierId"]}}}},"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ItemsItem194"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"postV1NewsletterMembersComp"}},"/v1/newsletter/members/{profileId}/comp":{"delete":{"tags":["newsletter"],"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"profileId","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"ok":{"type":"boolean","enum":[true]}},"required":["ok"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"deleteV1NewsletterMembersByProfileIdComp"}},"/v1/newsletter/members/import":{"post":{"summary":"Import paid subscribers with their existing Stripe customer/subscription ids. Reads from Stripe only: nobody is charged or re-subscribed.","tags":["newsletter"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"rows":{"minItems":1,"maxItems":1000,"type":"array","items":{"type":"object","properties":{"email":{"type":"string","format":"email","pattern":"^(?:[A-Za-z0-9_'+\\-]+\\.)*[A-Za-z0-9_'+\\-]*[A-Za-z0-9_+-]@(?:[A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$"},"stripeCustomerId":{"type":"string","pattern":"^cus_\\w+$"},"stripeSubscriptionId":{"type":"string","pattern":"^sub_\\w+$"},"tierId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"interval":{"default":"month","type":"string","enum":["month","year"]},"status":{"default":"active","type":"string","enum":["active","trialing","past_due","canceled"]},"periodEnd":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"amountMinor":{"type":"integer","minimum":0,"maximum":9007199254740991}},"required":["email","tierId"]}},"dryRun":{"default":false,"type":"boolean"},"attestedBy":{"type":"string","minLength":2,"maxLength":200}},"required":["rows"]}}}},"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"imported":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"failed":{"$ref":"#/components/schemas/Errors2"},"dryRun":{"type":"boolean"}},"required":["imported","failed","dryRun"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"postV1NewsletterMembersImport"}},"/v1/newsletter/members/{profileId}/change-plan":{"post":{"summary":"Upgrade or downgrade (prorated)","tags":["newsletter"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"tierId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"interval":{"type":"string","enum":["month","year"]}},"required":["tierId"]}}}},"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"profileId","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"ok":{"type":"boolean","enum":[true]}},"required":["ok"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"postV1NewsletterMembersByProfileIdChangePlan"}},"/v1/newsletter/members/{profileId}/cancel":{"post":{"summary":"Cancel at period end, or immediately","tags":["newsletter"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"immediately":{"default":false,"type":"boolean"}}}}}},"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"profileId","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"ok":{"type":"boolean","enum":[true]}},"required":["ok"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"postV1NewsletterMembersByProfileIdCancel"}},"/v1/newsletter/members/{profileId}/resume":{"post":{"tags":["newsletter"],"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"profileId","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"ok":{"type":"boolean","enum":[true]}},"required":["ok"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"postV1NewsletterMembersByProfileIdResume"}},"/v1/newsletter/members/{profileId}/pause":{"post":{"tags":["newsletter"],"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"profileId","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"ok":{"type":"boolean","enum":[true]}},"required":["ok"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"postV1NewsletterMembersByProfileIdPause"}},"/v1/newsletter/members/{profileId}/portal":{"post":{"summary":"Stripe customer portal link for this member","tags":["newsletter"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"returnUrl":{"type":"string","format":"uri"}}}}}},"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"profileId","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"url":{"type":"string"}},"required":["url"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"postV1NewsletterMembersByProfileIdPortal"}},"/v1/newsletter/members/{profileId}/reader-link":{"post":{"summary":"Signed link (30 days) to the reader-facing account page","tags":["newsletter"],"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"profileId","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetV1OutboundSequencesByIdShareResponse"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"postV1NewsletterMembersByProfileIdReaderLink"}},"/v1/newsletter/members/{profileId}":{"get":{"tags":["newsletter"],"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"profileId","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ItemsItem194"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1NewsletterMembersByProfileId"}},"/v1/newsletter/checkout":{"post":{"summary":"Stripe Checkout link for a tier (send it to the subscriber)","tags":["newsletter"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"email":{"type":"string","format":"email","pattern":"^(?:[A-Za-z0-9_'+\\-]+\\.)*[A-Za-z0-9_'+\\-]*[A-Za-z0-9_+-]@(?:[A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$"},"profileId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"tierId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"interval":{"default":"month","type":"string","enum":["month","year"]},"couponCode":{"type":"string","maxLength":40},"seats":{"type":"integer","minimum":2,"maximum":500},"successUrl":{"type":"string","format":"uri"},"cancelUrl":{"type":"string","format":"uri"},"optIn":{"default":false,"type":"boolean"},"fromPostId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},"required":["tierId"]}}}},"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"url":{"type":"string"}},"required":["url"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"postV1NewsletterCheckout"}},"/v1/newsletter/groups":{"get":{"tags":["newsletter"],"parameters":[{"schema":{"type":"integer","minimum":1,"maximum":200},"in":"query","name":"limit","required":false,"description":"Page size; omitted returns the whole list"},{"schema":{"type":"string","pattern":"^\\d{1,9}$"},"in":"query","name":"cursor","required":false,"description":"Opaque: the `nextCursor` of the previous page"}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"items":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"name":{"type":"string"},"tierId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"ownerProfileId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"seats":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"used":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"status":{"type":"string"}},"required":["id","name","tierId","ownerProfileId","seats","used","status"],"additionalProperties":false}},"nextCursor":{"nullable":true,"type":"string"}},"required":["items","nextCursor"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1NewsletterGroups"}},"/v1/newsletter/groups/{id}":{"patch":{"summary":"Change the paid seat count of a team plan (prorated by Stripe)","tags":["newsletter"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"seats":{"type":"integer","minimum":1,"maximum":10000}},"required":["seats"]}}}},"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"ok":{"type":"boolean","enum":[true]}},"required":["ok"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"patchV1NewsletterGroupsById"}},"/v1/newsletter/groups/{id}/seats":{"get":{"tags":["newsletter"],"parameters":[{"schema":{"type":"integer","minimum":1,"maximum":200},"in":"query","name":"limit","required":false,"description":"Page size; omitted returns the whole list"},{"schema":{"type":"string","pattern":"^\\d{1,9}$"},"in":"query","name":"cursor","required":false,"description":"Opaque: the `nextCursor` of the previous page"},{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"items":{"type":"array","items":{"$ref":"#/components/schemas/ItemsItem195"}},"nextCursor":{"nullable":true,"type":"string"}},"required":["items","nextCursor"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1NewsletterGroupsByIdSeats"},"post":{"tags":["newsletter"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"email":{"type":"string","format":"email","pattern":"^(?:[A-Za-z0-9_'+\\-]+\\.)*[A-Za-z0-9_'+\\-]*[A-Za-z0-9_+-]@(?:[A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$"}},"required":["email"]}}}},"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ItemsItem195"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"postV1NewsletterGroupsByIdSeats"}},"/v1/newsletter/groups/{id}/seats/{seatId}":{"delete":{"tags":["newsletter"],"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true},{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"seatId","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"ok":{"type":"boolean","enum":[true]}},"required":["ok"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"deleteV1NewsletterGroupsByIdSeatsBySeatId"}},"/v1/newsletter/revenue":{"get":{"summary":"MRR, ARR, churn, ARPU, LTV, trial conversion, by tier and by month","tags":["newsletter"],"parameters":[{"schema":{"default":12,"type":"integer","minimum":1,"maximum":36},"in":"query","name":"months","required":false}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"currency":{"type":"string"},"mrrMinor":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"arrMinor":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"activePaid":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"trialing":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"newLast30":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"churnedLast30":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"churnRate":{"type":"number"},"arpuMinor":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"ltvMinor":{"nullable":true,"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"trialConversion":{"nullable":true,"type":"number"},"byTier":{"type":"array","items":{"type":"object","properties":{"tierId":{"nullable":true,"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"name":{"type":"string"},"members":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"mrrMinor":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["tierId","name","members","mrrMinor"],"additionalProperties":false}},"byMonth":{"type":"array","items":{"type":"object","properties":{"month":{"type":"string"},"newPaid":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"churned":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"netNew":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"mrrMinor":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"revenueMinor":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"tipsMinor":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["month","newPaid","churned","netNew","mrrMinor","revenueMinor","tipsMinor"],"additionalProperties":false}}},"required":["currency","mrrMinor","arrMinor","activePaid","trialing","newLast30","churnedLast30","churnRate","arpuMinor","ltvMinor","trialConversion","byTier","byMonth"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1NewsletterRevenue"}},"/v1/newsletter/revenue.csv":{"get":{"summary":"Revenue by month as CSV","tags":["newsletter"],"parameters":[{"schema":{"default":12,"type":"integer","minimum":1,"maximum":36},"in":"query","name":"months","required":false}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"string"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1NewsletterRevenueCsv"}},"/webhooks/stripe-memberships/{workspaceId}":{"post":{"tags":["newsletter"],"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"workspaceId","required":true}],"security":[],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"received":{"type":"boolean","enum":[true]}},"required":["received"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"postWebhooksStripeMembershipsByWorkspaceId"}},"/p/checkout/{ws}":{"post":{"summary":"Public: start a paid subscription Checkout (used by paywall and subscribe pages)","tags":["newsletter"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"email":{"type":"string","format":"email","pattern":"^(?:[A-Za-z0-9_'+\\-]+\\.)*[A-Za-z0-9_'+\\-]*[A-Za-z0-9_+-]@(?:[A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$"},"tierId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"interval":{"default":"month","type":"string","enum":["month","year"]},"couponCode":{"type":"string","maxLength":40},"seats":{"type":"integer","minimum":2,"maximum":500},"successUrl":{"type":"string","format":"uri"},"cancelUrl":{"type":"string","format":"uri"},"optIn":{"default":false,"type":"boolean"},"fromPostId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},"required":["email","tierId"]}}}},"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"ws","required":true}],"security":[],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"url":{"type":"string"}},"required":["url"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"postPCheckoutByWs"}},"/p/tip/{ws}":{"post":{"summary":"Public: tip or pay-what-you-want one-off payment","tags":["newsletter"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"email":{"type":"string","format":"email","pattern":"^(?:[A-Za-z0-9_'+\\-]+\\.)*[A-Za-z0-9_'+\\-]*[A-Za-z0-9_+-]@(?:[A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$"},"amountMinor":{"type":"integer","minimum":100,"maximum":10000000},"currency":{"type":"string","minLength":3,"maxLength":3},"message":{"type":"string","maxLength":500},"successUrl":{"type":"string","format":"uri"},"cancelUrl":{"type":"string","format":"uri"}},"required":["amountMinor"]}}}},"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"ws","required":true}],"security":[],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"url":{"type":"string"}},"required":["url"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"postPTipByWs"}},"/p/gift-buy/{ws}":{"post":{"summary":"Public: buy a gift subscription (returns the Checkout link)","tags":["newsletter"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PostV1NewsletterGiftsBody"}}}},"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"ws","required":true}],"security":[],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PostV1NewsletterGiftsResponse"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"postPGiftBuyByWs"}},"/p/gift/{ws}/{code}":{"get":{"summary":"Gift redeem page","tags":["newsletter"],"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"ws","required":true},{"schema":{"type":"string","minLength":10,"maxLength":80},"in":"path","name":"code","required":true}],"security":[],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"string"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getPGiftByWsByCode"},"post":{"summary":"Redeem a gift subscription for an email address","tags":["newsletter"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","additionalProperties":{}}}}},"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"ws","required":true},{"schema":{"type":"string","minLength":10,"maxLength":80},"in":"path","name":"code","required":true}],"security":[],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"string"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"postPGiftByWsByCode"}},"/p/account/{token}":{"get":{"summary":"Reader account page behind a signed link: plan, invoices, change plan, cancel","tags":["newsletter"],"parameters":[{"schema":{"type":"string","minLength":20,"maxLength":600},"in":"path","name":"token","required":true}],"security":[],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"string"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getPAccountByToken"}},"/p/account/{token}/{action}":{"post":{"summary":"Account page actions (change plan, cancel, resume, billing portal, team seats)","tags":["newsletter"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","additionalProperties":{}}}}},"parameters":[{"schema":{"type":"string","minLength":20,"maxLength":600},"in":"path","name":"token","required":true},{"schema":{"type":"string","enum":["plan","cancel","resume","portal","invite","remove"]},"in":"path","name":"action","required":true}],"security":[],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"string"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"postPAccountByTokenByAction"}},"/p/n/{ref}/upgrade":{"get":{"summary":"Upgrade to a paid subscription","tags":["newsletter-site"],"parameters":[{"schema":{"type":"string","maxLength":80},"in":"query","name":"from","required":false},{"schema":{"type":"string","maxLength":200},"in":"query","name":"error","required":false},{"schema":{"type":"string","pattern":"^[0-9a-f-]{36}\\.[a-z0-9][a-z0-9-]{0,79}$"},"in":"path","name":"ref","required":true}],"security":[],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"string"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getPNByRefUpgrade"},"post":{"summary":"Start Checkout from the upgrade page (opt-in box unticked unless the reader ticks it)","tags":["newsletter-site"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","additionalProperties":{}}}}},"parameters":[{"schema":{"type":"string","pattern":"^[0-9a-f-]{36}\\.[a-z0-9][a-z0-9-]{0,79}$"},"in":"path","name":"ref","required":true}],"security":[],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"string"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"postPNByRefUpgrade"}},"/v1/newsletter/growth/surfaces/{publicationId}":{"get":{"summary":"Subscribe page, embed and popup settings for a publication (null until saved)","tags":["newsletter-growth"],"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"publicationId","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"nullable":true,"type":"object","properties":{"listId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"enabled":{"default":true,"type":"boolean"},"headline":{"type":"string","minLength":1,"maxLength":160},"blurb":{"default":"","type":"string","maxLength":600},"buttonLabel":{"default":"Subscribe","type":"string","minLength":1,"maxLength":40},"consentText":{"type":"string","minLength":10,"maxLength":1000},"popup":{"$ref":"#/components/schemas/Popup"},"scroll":{"$ref":"#/components/schemas/Scroll"},"publicationId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"hostedUrl":{"type":"string"},"embedSnippet":{"type":"string"}},"required":["listId","enabled","headline","blurb","buttonLabel","consentText","popup","scroll","publicationId","hostedUrl","embedSnippet"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1NewsletterGrowthSurfacesByPublicationId"},"put":{"tags":["newsletter-growth"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"listId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"enabled":{"default":true,"type":"boolean"},"headline":{"type":"string","minLength":1,"maxLength":160},"blurb":{"default":"","type":"string","maxLength":600},"buttonLabel":{"default":"Subscribe","type":"string","minLength":1,"maxLength":40},"consentText":{"type":"string","minLength":10,"maxLength":1000},"popup":{"default":{"mode":"off","delaySeconds":8,"scrollPercent":0,"frequencyDays":7,"headline":""},"type":"object","properties":{"mode":{"default":"off","type":"string","enum":["off","popup","slide_in"]},"delaySeconds":{"default":8,"type":"integer","minimum":0,"maximum":600},"scrollPercent":{"default":0,"type":"integer","minimum":0,"maximum":100},"frequencyDays":{"default":7,"type":"integer","minimum":0,"maximum":365},"headline":{"default":"","type":"string","maxLength":160}}},"scroll":{"default":{"enabled":false,"percent":60},"type":"object","properties":{"enabled":{"default":false,"type":"boolean"},"percent":{"default":60,"type":"integer","minimum":5,"maximum":100}}}},"required":["listId","headline","consentText"]}}}},"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"publicationId","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"listId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"enabled":{"default":true,"type":"boolean"},"headline":{"type":"string","minLength":1,"maxLength":160},"blurb":{"default":"","type":"string","maxLength":600},"buttonLabel":{"default":"Subscribe","type":"string","minLength":1,"maxLength":40},"consentText":{"type":"string","minLength":10,"maxLength":1000},"popup":{"$ref":"#/components/schemas/Popup"},"scroll":{"$ref":"#/components/schemas/Scroll"},"publicationId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"hostedUrl":{"type":"string"},"embedSnippet":{"type":"string"}},"required":["listId","enabled","headline","blurb","buttonLabel","consentText","popup","scroll","publicationId","hostedUrl","embedSnippet"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"putV1NewsletterGrowthSurfacesByPublicationId"}},"/v1/newsletter/growth/referrals/{publicationId}":{"get":{"tags":["newsletter-growth"],"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"publicationId","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetV1NewsletterGrowthReferralsByPublicationIdResponse"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1NewsletterGrowthReferralsByPublicationId"},"put":{"summary":"Turn the newsletter referral program on or off","tags":["newsletter-growth"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"enabled":{"default":true,"type":"boolean"},"cookieDays":{"default":30,"type":"integer","minimum":1,"maximum":365}}}}}},"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"publicationId","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetV1NewsletterGrowthReferralsByPublicationIdResponse"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"putV1NewsletterGrowthReferralsByPublicationId"}},"/v1/newsletter/growth/referrals/{publicationId}/milestones":{"post":{"summary":"Add or update the reward for a referral count","tags":["newsletter-growth"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"threshold":{"type":"integer","minimum":1,"maximum":100000},"rewardKind":{"type":"string","enum":["download","coupon","merch","paid_comp"]},"rewardLabel":{"type":"string","minLength":1,"maxLength":160},"rewardValue":{"default":"","type":"string","maxLength":1000}},"required":["threshold","rewardKind","rewardLabel"]}}}},"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"publicationId","required":true}],"responses":{"201":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MilestonesItem"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"postV1NewsletterGrowthReferralsByPublicationIdMilestones"}},"/v1/newsletter/growth/referrals/{publicationId}/milestones/{id}":{"delete":{"tags":["newsletter-growth"],"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"publicationId","required":true},{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"ok":{"type":"boolean","enum":[true]}},"required":["ok"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"deleteV1NewsletterGrowthReferralsByPublicationIdMilestonesById"}},"/v1/newsletter/growth/referrals/{publicationId}/leaderboard":{"get":{"tags":["newsletter-growth"],"parameters":[{"schema":{"type":"integer","minimum":1,"maximum":200},"in":"query","name":"limit","required":false,"description":"Page size; omitted returns the whole list"},{"schema":{"type":"string","pattern":"^\\d{1,9}$"},"in":"query","name":"cursor","required":false,"description":"Opaque: the `nextCursor` of the previous page"},{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"publicationId","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"items":{"type":"array","items":{"type":"object","properties":{"profileId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"name":{"type":"string"},"counted":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"pending":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"flagged":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["profileId","name","counted","pending","flagged"],"additionalProperties":false}},"nextCursor":{"nullable":true,"type":"string"}},"required":["items","nextCursor"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1NewsletterGrowthReferralsByPublicationIdLeaderboard"}},"/v1/newsletter/growth/referrals/{publicationId}/awards":{"get":{"tags":["newsletter-growth"],"parameters":[{"schema":{"type":"integer","minimum":1,"maximum":200},"in":"query","name":"limit","required":false,"description":"Page size; omitted returns the whole list"},{"schema":{"type":"string","pattern":"^\\d{1,9}$"},"in":"query","name":"cursor","required":false,"description":"Opaque: the `nextCursor` of the previous page"},{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"publicationId","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"items":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"profileId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"name":{"type":"string"},"milestoneLabel":{"type":"string"},"threshold":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"rewardKind":{"type":"string"},"awardedAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"fulfilledAt":{"nullable":true,"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"}},"required":["id","profileId","name","milestoneLabel","threshold","rewardKind","awardedAt","fulfilledAt"],"additionalProperties":false}},"nextCursor":{"nullable":true,"type":"string"}},"required":["items","nextCursor"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1NewsletterGrowthReferralsByPublicationIdAwards"}},"/v1/newsletter/growth/referrals/{publicationId}/awards/{id}/fulfilled":{"post":{"summary":"Mark a hand-fulfilled reward (merch, paid comp) as delivered","tags":["newsletter-growth"],"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"publicationId","required":true},{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"ok":{"type":"boolean","enum":[true]}},"required":["ok"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"postV1NewsletterGrowthReferralsByPublicationIdAwardsByIdFulfilled"}},"/v1/newsletter/growth/directory/{publicationId}":{"get":{"summary":"Browse the recommendations directory","tags":["newsletter-growth"],"parameters":[{"schema":{"type":"string","maxLength":80},"in":"query","name":"q","required":false},{"schema":{"type":"integer","minimum":1,"maximum":200},"in":"query","name":"limit","required":false,"description":"Page size; omitted returns the whole list"},{"schema":{"type":"string","pattern":"^\\d{1,9}$"},"in":"query","name":"cursor","required":false,"description":"Opaque: the `nextCursor` of the previous page"},{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"publicationId","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"items":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"workspaceId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"publicationId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"name":{"type":"string"},"tagline":{"type":"string"},"category":{"type":"string"},"logoUrl":{"nullable":true,"type":"string"},"recommendedBy":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"recommending":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"mine":{"type":"boolean"},"recommended":{"type":"boolean"}},"required":["id","workspaceId","publicationId","name","tagline","category","logoUrl","recommendedBy","recommending","mine","recommended"],"additionalProperties":false}},"nextCursor":{"nullable":true,"type":"string"}},"required":["items","nextCursor"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1NewsletterGrowthDirectoryByPublicationId"},"delete":{"summary":"Leave the directory and withdraw your recommendations","tags":["newsletter-growth"],"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"publicationId","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"ok":{"type":"boolean","enum":[true]}},"required":["ok"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"deleteV1NewsletterGrowthDirectoryByPublicationId"}},"/v1/newsletter/growth/directory":{"put":{"summary":"Join the directory (publishes the name, tagline, category and logo given)","tags":["newsletter-growth"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"publicationId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"name":{"type":"string","minLength":1,"maxLength":120},"tagline":{"default":"","type":"string","maxLength":300},"category":{"default":"","type":"string","maxLength":60},"logoUrl":{"nullable":true,"type":"string","maxLength":1000,"format":"uri"}},"required":["publicationId","name"]}}}},"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"ok":{"type":"boolean","enum":[true]}},"required":["ok"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"putV1NewsletterGrowthDirectory"}},"/v1/newsletter/growth/recommendations/{publicationId}":{"get":{"tags":["newsletter-growth"],"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"publicationId","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"listing":{"nullable":true,"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"workspaceId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"publicationId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"name":{"type":"string"},"tagline":{"type":"string"},"category":{"type":"string"},"logoUrl":{"nullable":true,"type":"string"},"recommendedBy":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"recommending":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"mine":{"type":"boolean"},"recommended":{"type":"boolean"}},"required":["id","workspaceId","publicationId","name","tagline","category","logoUrl","recommendedBy","recommending","mine","recommended"],"additionalProperties":false},"outgoing":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"listingId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"name":{"type":"string"},"tagline":{"type":"string"},"sent":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"views":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["id","listingId","name","tagline","sent","views"],"additionalProperties":false}},"incoming":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"incomingSubscribes":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["listing","outgoing","incoming","incomingSubscribes"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1NewsletterGrowthRecommendationsByPublicationId"},"post":{"tags":["newsletter-growth"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"listingId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},"required":["listingId"]}}}},"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"publicationId","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"ok":{"type":"boolean","enum":[true]}},"required":["ok"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"postV1NewsletterGrowthRecommendationsByPublicationId"}},"/v1/newsletter/growth/recommendations/{publicationId}/{listingId}":{"delete":{"tags":["newsletter-growth"],"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"publicationId","required":true},{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"listingId","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"ok":{"type":"boolean","enum":[true]}},"required":["ok"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"deleteV1NewsletterGrowthRecommendationsByPublicationIdByListingId"}},"/v1/newsletter/growth/dashboard/{publicationId}":{"get":{"summary":"Growth dashboard: totals, net growth per day, sources, churn, cohorts, top posts","tags":["newsletter-growth"],"parameters":[{"schema":{"default":30,"type":"integer","minimum":7,"maximum":365},"in":"query","name":"days","required":false},{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"publicationId","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"total":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"paid":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"free":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"pending":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"joined":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"left":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"churnRate":{"type":"number"},"daily":{"type":"array","items":{"type":"object","properties":{"day":{"type":"string"},"joined":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"left":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"net":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"total":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["day","joined","left","net","total"],"additionalProperties":false}},"sources":{"type":"array","items":{"type":"object","properties":{"source":{"type":"string"},"count":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["source","count"],"additionalProperties":false}},"cohorts":{"type":"array","items":{"type":"object","properties":{"week":{"type":"string"},"size":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"retained":{"type":"array","items":{"type":"number"}}},"required":["week","size","retained"],"additionalProperties":false}},"topPosts":{"type":"array","items":{"type":"object","properties":{"post":{"type":"string"},"signups":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["post","signups"],"additionalProperties":false}}},"required":["total","paid","free","pending","joined","left","churnRate","daily","sources","cohorts","topPosts"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1NewsletterGrowthDashboardByPublicationId"}},"/v1/newsletter/boosts/offers":{"get":{"summary":"Boost marketplace: open offers and your own","tags":["newsletter-boosts"],"parameters":[{"schema":{"type":"integer","minimum":1,"maximum":200},"in":"query","name":"limit","required":false,"description":"Page size; omitted returns the whole list"},{"schema":{"type":"string","pattern":"^\\d{1,9}$"},"in":"query","name":"cursor","required":false,"description":"Opaque: the `nextCursor` of the previous page"}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"items":{"type":"array","items":{"$ref":"#/components/schemas/ItemsItem196"}},"nextCursor":{"nullable":true,"type":"string"}},"required":["items","nextCursor"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1NewsletterBoostsOffers"},"post":{"summary":"Offer a bounty per confirmed, retained subscriber","tags":["newsletter-boosts"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"publicationId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"title":{"type":"string","minLength":1,"maxLength":120},"description":{"default":"","type":"string","maxLength":1000},"bountyMinor":{"type":"integer","minimum":1,"maximum":100000000},"currency":{"default":"USD","type":"string","minLength":3,"maxLength":3},"holdDays":{"default":30,"type":"integer","minimum":1,"maximum":180},"maxConversions":{"nullable":true,"type":"integer","minimum":1,"maximum":1000000},"status":{"default":"open","type":"string","enum":["open","paused","closed"]}},"required":["publicationId","title","bountyMinor"]}}}},"responses":{"201":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ItemsItem196"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"postV1NewsletterBoostsOffers"}},"/v1/newsletter/boosts/offers/{id}":{"patch":{"tags":["newsletter-boosts"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"title":{"type":"string","minLength":1,"maxLength":120},"description":{"type":"string","maxLength":1000},"bountyMinor":{"type":"integer","minimum":1,"maximum":100000000},"currency":{"type":"string","minLength":3,"maxLength":3},"holdDays":{"type":"integer","minimum":1,"maximum":180},"maxConversions":{"nullable":true,"type":"integer","minimum":1,"maximum":1000000},"status":{"type":"string","enum":["open","paused","closed"]}}}}}},"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ItemsItem196"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"patchV1NewsletterBoostsOffersById"}},"/v1/newsletter/boosts/offers/{id}/apply":{"post":{"summary":"Apply to promote an offer","tags":["newsletter-boosts"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"partnerPublicationId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"partnerName":{"type":"string","minLength":1,"maxLength":120},"promo":{"type":"string","enum":["recommendation_slot","boost_link"]},"message":{"default":"","type":"string","maxLength":600}},"required":["partnerPublicationId","partnerName","promo"]}}}},"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"201":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"status":{"type":"string"}},"required":["id","status"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"postV1NewsletterBoostsOffersByIdApply"}},"/v1/newsletter/boosts/applications":{"get":{"summary":"Applications to your offers (received) or that you sent","tags":["newsletter-boosts"],"parameters":[{"schema":{"default":"received","type":"string","enum":["received","sent"]},"in":"query","name":"side","required":false},{"schema":{"type":"integer","minimum":1,"maximum":200},"in":"query","name":"limit","required":false,"description":"Page size; omitted returns the whole list"},{"schema":{"type":"string","pattern":"^\\d{1,9}$"},"in":"query","name":"cursor","required":false,"description":"Opaque: the `nextCursor` of the previous page"}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"items":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"offerId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"offerTitle":{"type":"string"},"partnerWorkspaceId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"partnerName":{"type":"string"},"promo":{"type":"string"},"status":{"type":"string"},"message":{"type":"string"},"link":{"nullable":true,"type":"string"},"createdAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"}},"required":["id","offerId","offerTitle","partnerWorkspaceId","partnerName","promo","status","message","link","createdAt"],"additionalProperties":false}},"nextCursor":{"nullable":true,"type":"string"}},"required":["items","nextCursor"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1NewsletterBoostsApplications"}},"/v1/newsletter/boosts/applications/{id}/decision":{"post":{"tags":["newsletter-boosts"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"decision":{"type":"string","enum":["approve","reject","end"]}},"required":["decision"]}}}},"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"status":{"type":"string"},"code":{"nullable":true,"type":"string"}},"required":["id","status","code"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"postV1NewsletterBoostsApplicationsByIdDecision"}},"/v1/newsletter/boosts/ledger":{"get":{"summary":"Ledger and report for either side of a boost. No money moves through Hermeticor.","tags":["newsletter-boosts"],"parameters":[{"schema":{"default":"advertiser","type":"string","enum":["advertiser","partner"]},"in":"query","name":"side","required":false}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"side":{"type":"string","enum":["advertiser","partner"]},"totals":{"type":"object","properties":{"pending":{"type":"integer","minimum":0,"maximum":100000000},"held":{"type":"integer","minimum":0,"maximum":100000000},"payable":{"type":"integer","minimum":0,"maximum":100000000},"paid":{"type":"integer","minimum":0,"maximum":100000000},"void":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"conversions":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["pending","held","payable","paid","void","conversions"],"additionalProperties":false},"currency":{"nullable":true,"type":"string"},"items":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"applicationId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"offerTitle":{"type":"string"},"partnerName":{"type":"string"},"amountMinor":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"currency":{"type":"string"},"status":{"type":"string","enum":["pending","held","payable","paid","void"]},"holdUntil":{"nullable":true,"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"createdAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"paidAt":{"nullable":true,"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"}},"required":["id","applicationId","offerTitle","partnerName","amountMinor","currency","status","holdUntil","createdAt","paidAt"],"additionalProperties":false}},"note":{"type":"string"}},"required":["side","totals","currency","items","note"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1NewsletterBoostsLedger"}},"/v1/newsletter/boosts/ledger/{id}/paid":{"post":{"summary":"Record that a payable line was settled outside Hermeticor","tags":["newsletter-boosts"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"note":{"default":"","type":"string","maxLength":300}}}}}},"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"ok":{"type":"boolean","enum":[true]}},"required":["ok"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"postV1NewsletterBoostsLedgerByIdPaid"}},"/p/ng/{ws}/{pub}":{"get":{"summary":"Hosted subscribe page for a publication","tags":["newsletter-growth"],"parameters":[{"schema":{"type":"string"},"in":"query","name":"embed","required":false},{"schema":{"type":"string","maxLength":40},"in":"query","name":"ref","required":false},{"schema":{"type":"string","maxLength":40},"in":"query","name":"boost","required":false},{"schema":{"type":"string","maxLength":200},"in":"query","name":"post","required":false},{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"ws","required":true},{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"pub","required":true}],"security":[],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"string"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getPNgByWsByPub"},"post":{"summary":"Subscribe through a publication surface (consent checkbox required; double opt-in respected)","tags":["newsletter-growth"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","additionalProperties":{}}}}},"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"ws","required":true},{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"pub","required":true}],"security":[],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"string"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"postPNgByWsByPub"}},"/p/ng/{ws}/{pub}/widget.js":{"get":{"summary":"Popup, slide-in and scroll-trigger script for a publication","tags":["newsletter-growth"],"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"ws","required":true},{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"pub","required":true}],"security":[],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"string"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getPNgByWsByPubWidgetJs"}},"/p/ng/{ws}/{pub}/recommend/{listing}":{"post":{"summary":"Subscribe to a recommended publication","tags":["newsletter-growth"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","additionalProperties":{}}}}},"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"ws","required":true},{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"pub","required":true},{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"listing","required":true}],"security":[],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"string"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"postPNgByWsByPubRecommendByListing"}},"/p/ng/{ws}/s/{token}":{"get":{"summary":"One-click subscribe confirmation page (does not change state)","tags":["newsletter-growth"],"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"ws","required":true},{"schema":{"type":"string","maxLength":2000},"in":"path","name":"token","required":true}],"security":[],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"string"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getPNgByWsSByToken"},"post":{"summary":"Subscribe the address a one-click link names (consent, suppression and double opt-in apply; idempotent)","tags":["newsletter-growth"],"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"ws","required":true},{"schema":{"type":"string","maxLength":2000},"in":"path","name":"token","required":true}],"security":[],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"string"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"postPNgByWsSByToken"}},"/v1/newsletter/growth/subscribe-links/{publicationId}":{"post":{"summary":"Mint a signed one-click subscribe link for one address","tags":["newsletter-growth"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"email":{"type":"string","maxLength":254,"format":"email","pattern":"^(?:[A-Za-z0-9_'+\\-]+\\.)*[A-Za-z0-9_'+\\-]*[A-Za-z0-9_+-]@(?:[A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$"},"source":{"default":"api","type":"string","minLength":1,"maxLength":200},"expiresInDays":{"default":30,"type":"integer","minimum":1,"maximum":365}},"required":["email"]}}}},"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"publicationId","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"url":{"type":"string"},"expiresAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"mergeTag":{"type":"string"}},"required":["url","expiresAt","mergeTag"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"postV1NewsletterGrowthSubscribeLinksByPublicationId"}},"/v1/sponsors/advertisers":{"get":{"summary":"Advertisers you sell ads to","tags":["sponsorships"],"parameters":[{"schema":{"type":"integer","minimum":1,"maximum":200},"in":"query","name":"limit","required":false,"description":"Page size; omitted returns the whole list"},{"schema":{"type":"string","pattern":"^\\d{1,9}$"},"in":"query","name":"cursor","required":false,"description":"Opaque: the `nextCursor` of the previous page"}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"items":{"type":"array","items":{"$ref":"#/components/schemas/ItemsItem197"}},"nextCursor":{"nullable":true,"type":"string"}},"required":["items","nextCursor"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1SponsorsAdvertisers"},"post":{"summary":"Add an advertiser","tags":["sponsorships"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":200},"contactName":{"nullable":true,"type":"string","maxLength":200},"contactEmail":{"nullable":true,"type":"string","maxLength":320,"format":"email","pattern":"^(?:[A-Za-z0-9_'+\\-]+\\.)*[A-Za-z0-9_'+\\-]*[A-Za-z0-9_+-]@(?:[A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$"},"website":{"nullable":true,"type":"string","maxLength":2048,"format":"uri"},"logoUrl":{"nullable":true,"type":"string","maxLength":2048,"format":"uri"},"notes":{"nullable":true,"type":"string","maxLength":5000}},"required":["name"]}}}},"responses":{"201":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ItemsItem197"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"postV1SponsorsAdvertisers"}},"/v1/sponsors/advertisers/{id}":{"patch":{"summary":"Edit an advertiser","tags":["sponsorships"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":200},"contactName":{"nullable":true,"type":"string","maxLength":200},"contactEmail":{"nullable":true,"type":"string","maxLength":320,"format":"email","pattern":"^(?:[A-Za-z0-9_'+\\-]+\\.)*[A-Za-z0-9_'+\\-]*[A-Za-z0-9_+-]@(?:[A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$"},"website":{"nullable":true,"type":"string","maxLength":2048,"format":"uri"},"logoUrl":{"nullable":true,"type":"string","maxLength":2048,"format":"uri"},"notes":{"nullable":true,"type":"string","maxLength":5000}}}}}},"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ItemsItem197"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"patchV1SponsorsAdvertisersById"}},"/v1/sponsors/advertisers/{id}/archive":{"post":{"summary":"Archive or restore an advertiser","tags":["sponsorships"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"archived":{"type":"boolean"}},"required":["archived"]}}}},"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ItemsItem197"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"postV1SponsorsAdvertisersByIdArchive"}},"/v1/sponsors/bookings":{"get":{"summary":"Sponsor bookings","tags":["sponsorships"],"parameters":[{"schema":{"type":"string","enum":["proposed","approved","scheduled","run","invoiced","paid","canceled"]},"in":"query","name":"status","required":false},{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"query","name":"publicationId","required":false},{"schema":{"type":"integer","minimum":1,"maximum":200},"in":"query","name":"limit","required":false,"description":"Page size; omitted returns the whole list"},{"schema":{"type":"string","pattern":"^\\d{1,9}$"},"in":"query","name":"cursor","required":false,"description":"Opaque: the `nextCursor` of the previous page"}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"items":{"type":"array","items":{"$ref":"#/components/schemas/ItemsItem198"}},"nextCursor":{"nullable":true,"type":"string"}},"required":["items","nextCursor"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1SponsorsBookings"},"post":{"summary":"Create a booking (starts as proposed)","tags":["sponsorships"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"advertiserId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"publicationId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"name":{"type":"string","minLength":1,"maxLength":200},"slot":{"default":"top","type":"string","pattern":"^[a-z0-9_-]{1,32}$"},"channel":{"default":"both","type":"string","enum":["email","web","both"]},"startsOn":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}(?:[T ]\\d{2}:\\d{2}(?::\\d{2}(?:\\.\\d+)?)?(?:Z|[+-]\\d{2}:?\\d{2})?)?$","format":"date"},"endsOn":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}(?:[T ]\\d{2}:\\d{2}(?::\\d{2}(?:\\.\\d+)?)?(?:Z|[+-]\\d{2}:?\\d{2})?)?$","format":"date"},"pricing":{"default":"flat","type":"string","enum":["flat","cpm","cpc"]},"priceMinor":{"type":"integer","minimum":0,"maximum":1000000000},"currency":{"default":"USD","type":"string","minLength":3,"maxLength":3},"notes":{"nullable":true,"type":"string","maxLength":5000}},"required":["advertiserId","publicationId","name","startsOn","endsOn","priceMinor"]}}}},"responses":{"201":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ItemsItem198"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"postV1SponsorsBookings"}},"/v1/sponsors/bookings/{id}":{"get":{"summary":"One booking","tags":["sponsorships"],"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ItemsItem198"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1SponsorsBookingsById"},"patch":{"summary":"Edit a proposed or approved booking","tags":["sponsorships"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"advertiserId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"publicationId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"name":{"type":"string","minLength":1,"maxLength":200},"slot":{"type":"string","pattern":"^[a-z0-9_-]{1,32}$"},"channel":{"type":"string","enum":["email","web","both"]},"startsOn":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}(?:[T ]\\d{2}:\\d{2}(?::\\d{2}(?:\\.\\d+)?)?(?:Z|[+-]\\d{2}:?\\d{2})?)?$","format":"date"},"endsOn":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}(?:[T ]\\d{2}:\\d{2}(?::\\d{2}(?:\\.\\d+)?)?(?:Z|[+-]\\d{2}:?\\d{2})?)?$","format":"date"},"pricing":{"type":"string","enum":["flat","cpm","cpc"]},"priceMinor":{"type":"integer","minimum":0,"maximum":1000000000},"currency":{"type":"string","minLength":3,"maxLength":3},"notes":{"nullable":true,"type":"string","maxLength":5000}}}}}},"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ItemsItem198"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"patchV1SponsorsBookingsById"}},"/v1/sponsors/bookings/{id}/move":{"post":{"summary":"Move a booking to its next status (proposed, approved, scheduled, run, invoiced, paid) or cancel it","tags":["sponsorships"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"to":{"type":"string","enum":["proposed","approved","scheduled","run","invoiced","paid","canceled"]}},"required":["to"]}}}},"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ItemsItem198"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"postV1SponsorsBookingsByIdMove"}},"/v1/sponsors/bookings/{id}/creatives":{"get":{"summary":"Creatives of a booking","tags":["sponsorships"],"parameters":[{"schema":{"type":"integer","minimum":1,"maximum":200},"in":"query","name":"limit","required":false,"description":"Page size; omitted returns the whole list"},{"schema":{"type":"string","pattern":"^\\d{1,9}$"},"in":"query","name":"cursor","required":false,"description":"Opaque: the `nextCursor` of the previous page"},{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"items":{"type":"array","items":{"$ref":"#/components/schemas/ItemsItem199"}},"nextCursor":{"nullable":true,"type":"string"}},"required":["items","nextCursor"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1SponsorsBookingsByIdCreatives"},"post":{"summary":"Add a creative (draft)","tags":["sponsorships"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"headline":{"type":"string","minLength":1,"maxLength":200},"body":{"default":"","type":"string","maxLength":1000},"imageUrl":{"default":null,"nullable":true,"type":"string","maxLength":2048,"format":"uri"},"href":{"type":"string","maxLength":2048,"format":"uri"},"cta":{"default":"Learn more","type":"string","minLength":1,"maxLength":60}},"required":["headline","href"]}}}},"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"201":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ItemsItem199"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"postV1SponsorsBookingsByIdCreatives"}},"/v1/sponsors/creatives/{id}":{"patch":{"summary":"Edit a creative; it goes back to draft and needs approval again","tags":["sponsorships"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"headline":{"type":"string","minLength":1,"maxLength":200},"body":{"type":"string","maxLength":1000},"imageUrl":{"nullable":true,"type":"string","maxLength":2048,"format":"uri"},"href":{"type":"string","maxLength":2048,"format":"uri"},"cta":{"type":"string","minLength":1,"maxLength":60}}}}}},"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ItemsItem199"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"patchV1SponsorsCreativesById"}},"/v1/sponsors/creatives/{id}/submit":{"post":{"summary":"Send a creative for approval","tags":["sponsorships"],"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ItemsItem199"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"postV1SponsorsCreativesByIdSubmit"}},"/v1/sponsors/creatives/{id}/decision":{"post":{"summary":"Approve or reject a submitted creative","tags":["sponsorships"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"decision":{"type":"string","enum":["approved","rejected"]},"note":{"nullable":true,"type":"string","maxLength":1000}},"required":["decision"]}}}},"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ItemsItem199"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"postV1SponsorsCreativesByIdDecision"}},"/v1/sponsors/bookings/{id}/report":{"get":{"summary":"Impressions, opens, clicks and CTR of a booking","tags":["sponsorships"],"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetV1SponsorsBookingsByIdReportResponse"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1SponsorsBookingsByIdReport"}},"/v1/sponsors/bookings/{id}/report-link":{"post":{"summary":"Create a new shareable report link for the sponsor (revokes the previous one)","tags":["sponsorships"],"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"url":{"type":"string"}},"required":["url"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"postV1SponsorsBookingsByIdReportLink"}},"/v1/sponsors/publications/{publicationId}/rules":{"get":{"summary":"Ad slot rules of a publication","tags":["sponsorships"],"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"publicationId","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetV1SponsorsPublicationsByPublicationIdRulesResponse"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1SponsorsPublicationsByPublicationIdRules"},"put":{"summary":"Set max ads per issue, allowed slots, auto-fill and ad network use","tags":["sponsorships"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"maxAdsPerIssue":{"type":"integer","minimum":0,"maximum":10},"slots":{"maxItems":10,"type":"array","items":{"type":"string","pattern":"^[a-z0-9_-]{1,32}$"}},"autoFill":{"type":"boolean"},"allowNetwork":{"type":"boolean"}},"required":["maxAdsPerIssue","slots","autoFill","allowNetwork"]}}}},"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"publicationId","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetV1SponsorsPublicationsByPublicationIdRulesResponse"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"putV1SponsorsPublicationsByPublicationIdRules"}},"/v1/sponsors/publications/{publicationId}/media-kit":{"get":{"summary":"Rate card / media kit of a publication (null until saved)","tags":["sponsorships"],"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"publicationId","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"nullable":true,"type":"object","properties":{"slug":{"type":"string","pattern":"^[a-z0-9-]{2,64}$"},"title":{"type":"string","minLength":1,"maxLength":200},"description":{"default":"","type":"string","maxLength":5000},"audienceSize":{"type":"integer","minimum":0,"maximum":9007199254740991},"openRatePct":{"nullable":true,"type":"number","minimum":0,"maximum":100},"categories":{"maxItems":10,"type":"array","items":{"type":"string","minLength":1,"maxLength":40}},"prices":{"$ref":"#/components/schemas/Prices"},"currency":{"default":"USD","type":"string","minLength":3,"maxLength":3},"contactEmail":{"nullable":true,"type":"string","format":"email","pattern":"^(?:[A-Za-z0-9_'+\\-]+\\.)*[A-Za-z0-9_'+\\-]*[A-Za-z0-9_+-]@(?:[A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$"},"published":{"type":"boolean"},"publicationId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"url":{"nullable":true,"type":"string"},"live":{"$ref":"#/components/schemas/Live"}},"required":["slug","title","description","audienceSize","openRatePct","categories","prices","currency","published","publicationId","url","live"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1SponsorsPublicationsByPublicationIdMediaKit"},"put":{"summary":"Save the rate card; publishing it makes the public page live","tags":["sponsorships"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"slug":{"type":"string","pattern":"^[a-z0-9-]{2,64}$"},"title":{"type":"string","minLength":1,"maxLength":200},"description":{"default":"","type":"string","maxLength":5000},"audienceSize":{"type":"integer","minimum":0,"maximum":9007199254740991},"openRatePct":{"nullable":true,"type":"number","minimum":0,"maximum":100},"categories":{"maxItems":10,"type":"array","items":{"type":"string","minLength":1,"maxLength":40}},"prices":{"maxItems":20,"type":"array","items":{"type":"object","properties":{"label":{"type":"string","minLength":1,"maxLength":120},"slot":{"type":"string","maxLength":32},"pricing":{"type":"string","enum":["flat","cpm","cpc"]},"priceMinor":{"type":"integer","minimum":0,"maximum":9007199254740991}},"required":["label","slot","pricing","priceMinor"]}},"currency":{"default":"USD","type":"string","minLength":3,"maxLength":3},"contactEmail":{"nullable":true,"type":"string","format":"email","pattern":"^(?:[A-Za-z0-9_'+\\-]+\\.)*[A-Za-z0-9_'+\\-]*[A-Za-z0-9_+-]@(?:[A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$"},"published":{"type":"boolean"}},"required":["slug","title","audienceSize","openRatePct","categories","prices","published"]}}}},"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"publicationId","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"slug":{"type":"string","pattern":"^[a-z0-9-]{2,64}$"},"title":{"type":"string","minLength":1,"maxLength":200},"description":{"default":"","type":"string","maxLength":5000},"audienceSize":{"type":"integer","minimum":0,"maximum":9007199254740991},"openRatePct":{"nullable":true,"type":"number","minimum":0,"maximum":100},"categories":{"maxItems":10,"type":"array","items":{"type":"string","minLength":1,"maxLength":40}},"prices":{"$ref":"#/components/schemas/Prices"},"currency":{"default":"USD","type":"string","minLength":3,"maxLength":3},"contactEmail":{"nullable":true,"type":"string","format":"email","pattern":"^(?:[A-Za-z0-9_'+\\-]+\\.)*[A-Za-z0-9_'+\\-]*[A-Za-z0-9_+-]@(?:[A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$"},"published":{"type":"boolean"},"publicationId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"url":{"nullable":true,"type":"string"},"live":{"$ref":"#/components/schemas/Live"}},"required":["slug","title","description","audienceSize","openRatePct","categories","prices","currency","published","publicationId","url","live"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"putV1SponsorsPublicationsByPublicationIdMediaKit"}},"/v1/sponsors/network/advertisers":{"get":{"summary":"Your advertiser profiles on the ad network","tags":["sponsorships"],"parameters":[{"schema":{"type":"integer","minimum":1,"maximum":200},"in":"query","name":"limit","required":false,"description":"Page size; omitted returns the whole list"},{"schema":{"type":"string","pattern":"^\\d{1,9}$"},"in":"query","name":"cursor","required":false,"description":"Opaque: the `nextCursor` of the previous page"}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"items":{"type":"array","items":{"$ref":"#/components/schemas/ItemsItem200"}},"nextCursor":{"nullable":true,"type":"string"}},"required":["items","nextCursor"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1SponsorsNetworkAdvertisers"},"post":{"summary":"Create an advertiser profile to run network campaigns","tags":["sponsorships"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":200},"website":{"nullable":true,"type":"string","maxLength":2048,"format":"uri"},"logoUrl":{"nullable":true,"type":"string","maxLength":2048,"format":"uri"}},"required":["name"]}}}},"responses":{"201":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ItemsItem200"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"postV1SponsorsNetworkAdvertisers"}},"/v1/sponsors/network/campaigns":{"get":{"summary":"Network campaigns you run as an advertiser","tags":["sponsorships"],"parameters":[{"schema":{"type":"integer","minimum":1,"maximum":200},"in":"query","name":"limit","required":false,"description":"Page size; omitted returns the whole list"},{"schema":{"type":"string","pattern":"^\\d{1,9}$"},"in":"query","name":"cursor","required":false,"description":"Opaque: the `nextCursor` of the previous page"}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"items":{"type":"array","items":{"$ref":"#/components/schemas/ItemsItem201"}},"nextCursor":{"nullable":true,"type":"string"}},"required":["items","nextCursor"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1SponsorsNetworkCampaigns"},"post":{"summary":"Create a network campaign (draft)","tags":["sponsorships"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PostV1SponsorsNetworkCampaignsBody"}}}},"responses":{"201":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ItemsItem201"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"postV1SponsorsNetworkCampaigns"}},"/v1/sponsors/network/campaigns/{id}":{"put":{"summary":"Edit a draft or paused campaign","tags":["sponsorships"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PostV1SponsorsNetworkCampaignsBody"}}}},"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ItemsItem201"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"putV1SponsorsNetworkCampaignsById"}},"/v1/sponsors/network/campaigns/{id}/status":{"post":{"summary":"Publish, pause or end a campaign","tags":["sponsorships"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"string","enum":["draft","published","paused","ended"]}},"required":["status"]}}}},"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ItemsItem201"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"postV1SponsorsNetworkCampaignsByIdStatus"}},"/v1/sponsors/network/marketplace":{"get":{"summary":"Published network campaigns for a publication, with your decision and whether targeting fits","tags":["sponsorships"],"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"query","name":"publicationId","required":true},{"schema":{"type":"integer","minimum":1,"maximum":200},"in":"query","name":"limit","required":false,"description":"Page size; omitted returns the whole list"},{"schema":{"type":"string","pattern":"^\\d{1,9}$"},"in":"query","name":"cursor","required":false,"description":"Opaque: the `nextCursor` of the previous page"}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"items":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"advertiser":{"type":"string"},"name":{"type":"string"},"pricing":{"type":"string","enum":["flat","cpm","cpc"]},"rateMinor":{"type":"number"},"currency":{"type":"string"},"targetCategories":{"type":"array","items":{"type":"string"}},"minAudience":{"type":"number"},"startsOn":{"nullable":true,"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},"endsOn":{"nullable":true,"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},"creative":{"$ref":"#/components/schemas/Creative3"},"decision":{"nullable":true,"type":"string","enum":["accepted","declined"]},"eligible":{"type":"boolean"},"reason":{"nullable":true,"type":"string"}},"required":["id","advertiser","name","pricing","rateMinor","currency","targetCategories","minAudience","startsOn","endsOn","creative","decision","eligible","reason"],"additionalProperties":false}},"nextCursor":{"nullable":true,"type":"string"}},"required":["items","nextCursor"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1SponsorsNetworkMarketplace"}},"/v1/sponsors/network/marketplace/{id}/decision":{"post":{"summary":"Accept or decline a network campaign for a publication","tags":["sponsorships"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"publicationId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"decision":{"type":"string","enum":["accepted","declined"]}},"required":["publicationId","decision"]}}}},"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"ok":{"type":"boolean","enum":[true]}},"required":["ok"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"postV1SponsorsNetworkMarketplaceByIdDecision"}},"/v1/sponsors/network/earnings":{"get":{"summary":"Earnings ledger (earned, approved, paid). Hermeticor does not move money: mark entries paid after the advertiser pays you","tags":["sponsorships"],"parameters":[{"schema":{"type":"string","enum":["earned","approved","paid"]},"in":"query","name":"status","required":false}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"items":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"placementId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"campaignId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"campaign":{"type":"string"},"publicationId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"impressions":{"type":"number"},"clicks":{"type":"number"},"amountMinor":{"type":"number"},"currency":{"type":"string"},"status":{"type":"string","enum":["earned","approved","paid"]},"paidAt":{"nullable":true,"type":"string"},"paidNote":{"nullable":true,"type":"string"},"createdAt":{"type":"string"}},"required":["id","placementId","campaignId","campaign","publicationId","impressions","clicks","amountMinor","currency","status","paidAt","paidNote","createdAt"],"additionalProperties":false}},"summary":{"type":"object","properties":{"earnedMinor":{"type":"number"},"approvedMinor":{"type":"number"},"paidMinor":{"type":"number"},"currency":{"nullable":true,"type":"string"}},"required":["earnedMinor","approvedMinor","paidMinor","currency"],"additionalProperties":false}},"required":["items","summary"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1SponsorsNetworkEarnings"}},"/v1/sponsors/network/earnings/move":{"post":{"summary":"Approve earned entries, or record approved entries as paid (manual)","tags":["sponsorships"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"ids":{"$ref":"#/components/schemas/Ids"},"to":{"type":"string","enum":["approved","paid"]},"note":{"nullable":true,"type":"string","maxLength":500}},"required":["ids","to"]}}}},"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"updated":{"type":"number"}},"required":["updated"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"postV1SponsorsNetworkEarningsMove"}},"/v1/sponsors/network/earnings/refresh":{"post":{"summary":"Recompute earnings from delivered emails, web views and clicks now","tags":["sponsorships"],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"settled":{"type":"number"}},"required":["settled"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"postV1SponsorsNetworkEarningsRefresh"}},"/p/sr/{ws}/{token}":{"get":{"summary":"Shareable sponsor report (impressions, opens, clicks, CTR)","tags":["sponsorships"],"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"ws","required":true},{"schema":{"type":"string","minLength":10,"maxLength":80},"in":"path","name":"token","required":true}],"security":[],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"string"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getPSrByWsByToken"}},"/v1/public/sponsor-report/{ws}/{token}":{"get":{"summary":"Sponsor report as JSON (same token as the shareable page)","tags":["sponsorships"],"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"ws","required":true},{"schema":{"type":"string","minLength":10,"maxLength":80},"in":"path","name":"token","required":true}],"security":[],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetV1SponsorsBookingsByIdReportResponse"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1PublicSponsorReportByWsByToken"}},"/p/kit/{ws}/{slug}":{"get":{"summary":"Public rate card / media kit of a publication","tags":["sponsorships"],"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"ws","required":true},{"schema":{"type":"string","pattern":"^[a-z0-9-]{2,64}$"},"in":"path","name":"slug","required":true}],"security":[],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"string"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getPKitByWsBySlug"}},"/p/ad/{ws}/{id}":{"get":{"summary":"Sponsor link on a web post: counts the click, then redirects to the sponsor","tags":["sponsorships"],"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"ws","required":true},{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"security":[],"responses":{"302":{"description":"Default Response","content":{"application/json":{"schema":{"type":"string"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getPAdByWsById"}},"/v1/newsletter/engagement/settings":{"get":{"summary":"Comment and reaction settings of a publication","tags":["engagement"],"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"query","name":"publicationId","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetV1NewsletterEngagementSettingsResponse"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1NewsletterEngagementSettings"},"put":{"summary":"Save comment and reaction settings","tags":["engagement"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"commentsMode":{"type":"string","enum":["off","everyone","members","paid"]},"moderation":{"type":"string","enum":["none","first","all"]},"holdLinks":{"type":"boolean"},"reactionsEnabled":{"type":"boolean"},"reactionSet":{"minItems":1,"maxItems":12,"type":"array","items":{"type":"string","minLength":1,"maxLength":16}},"maxPerHour":{"type":"integer","minimum":1,"maximum":200},"minSecondsBetween":{"type":"integer","minimum":0,"maximum":600},"notifyComments":{"default":true,"type":"boolean"}},"required":["commentsMode","moderation","holdLinks","reactionsEnabled","reactionSet","maxPerHour","minSecondsBetween"]}}}},"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"query","name":"publicationId","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetV1NewsletterEngagementSettingsResponse"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"putV1NewsletterEngagementSettings"}},"/v1/newsletter/engagement/comments":{"get":{"summary":"Comments for moderation (filter by status, e.g. pending)","tags":["engagement"],"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"query","name":"publicationId","required":true},{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"query","name":"postId","required":false},{"schema":{"type":"string","enum":["published","pending","spam","removed","deleted"]},"in":"query","name":"status","required":false},{"schema":{"default":50,"type":"integer","minimum":1,"maximum":200},"in":"query","name":"limit","required":false},{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"query","name":"cursor","required":false}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"items":{"type":"array","items":{"$ref":"#/components/schemas/ItemsItem202"}},"nextCursor":{"nullable":true,"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},"required":["items","nextCursor"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1NewsletterEngagementComments"}},"/v1/newsletter/engagement/comments/{id}/moderate":{"post":{"summary":"Approve, mark spam, remove, pin or unpin a comment","tags":["engagement"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"action":{"type":"string","enum":["approve","spam","remove","pin","unpin"]}},"required":["action"]}}}},"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ItemsItem202"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"postV1NewsletterEngagementCommentsByIdModerate"}},"/v1/newsletter/engagement/comments/{id}/reply":{"post":{"summary":"Reply as the author (badged, notifies the commenter)","tags":["engagement"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"body":{"type":"string","minLength":1,"maxLength":5000},"authorName":{"default":"Author","type":"string","minLength":1,"maxLength":80}},"required":["body"]}}}},"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"201":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ItemsItem202"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"postV1NewsletterEngagementCommentsByIdReply"}},"/v1/newsletter/engagement/bans":{"get":{"summary":"Banned commenters","tags":["engagement"],"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"query","name":"publicationId","required":true},{"schema":{"type":"integer","minimum":1,"maximum":200},"in":"query","name":"limit","required":false,"description":"Page size; omitted returns the whole list"},{"schema":{"type":"string","pattern":"^\\d{1,9}$"},"in":"query","name":"cursor","required":false,"description":"Opaque: the `nextCursor` of the previous page"}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"items":{"type":"array","items":{"$ref":"#/components/schemas/ItemsItem203"}},"nextCursor":{"nullable":true,"type":"string"}},"required":["items","nextCursor"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1NewsletterEngagementBans"},"post":{"summary":"Ban a reader from commenting on a publication","tags":["engagement"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"publicationId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"profileId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"reason":{"type":"string","maxLength":300}},"required":["publicationId","profileId"]}}}},"responses":{"201":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ItemsItem203"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"postV1NewsletterEngagementBans"}},"/v1/newsletter/engagement/bans/{publicationId}/{profileId}":{"delete":{"summary":"Lift a ban","tags":["engagement"],"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"publicationId","required":true},{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"profileId","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"ok":{"type":"boolean","enum":[true]}},"required":["ok"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"deleteV1NewsletterEngagementBansByPublicationIdByProfileId"}},"/v1/newsletter/engagement/posts/{postId}/reactions":{"get":{"summary":"Reaction counts for a post","tags":["engagement"],"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"postId","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"postId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"counts":{"type":"object","additionalProperties":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"total":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["postId","counts","total"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1NewsletterEngagementPostsByPostIdReactions"}},"/v1/newsletter/engagement/posts/{postId}/highlights":{"get":{"summary":"Most read sections of a post (from the read-depth beacon)","tags":["engagement"],"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"postId","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"postId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"sample":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"sections":{"type":"array","items":{"type":"object","properties":{"section":{"type":"string"},"readers":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"share":{"type":"number"}},"required":["section","readers","share"],"additionalProperties":false}}},"required":["postId","sample","sections"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1NewsletterEngagementPostsByPostIdHighlights"}},"/v1/newsletter/engagement/posts/{postId}/passages":{"get":{"summary":"Most highlighted passages of a post (counts; names only beside notes readers chose to share)","tags":["engagement"],"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"postId","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"postId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"passages":{"type":"array","items":{"type":"object","properties":{"quote":{"type":"string"},"readers":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"notes":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string"},"note":{"type":"string"}},"required":["name","note"],"additionalProperties":false}}},"required":["quote","readers","notes"],"additionalProperties":false}}},"required":["postId","passages"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1NewsletterEngagementPostsByPostIdPassages"}},"/v1/newsletter/engagement/surveys":{"get":{"summary":"Polls and surveys","tags":["engagement"],"parameters":[{"schema":{"type":"string","enum":["poll","survey"]},"in":"query","name":"kind","required":false},{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"query","name":"publicationId","required":false},{"schema":{"default":50,"type":"integer","minimum":1,"maximum":200},"in":"query","name":"limit","required":false},{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"query","name":"cursor","required":false}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"items":{"type":"array","items":{"$ref":"#/components/schemas/ItemsItem204"}},"nextCursor":{"nullable":true,"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},"required":["items","nextCursor"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1NewsletterEngagementSurveys"},"post":{"summary":"Create a poll (one question) or a survey","tags":["engagement"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"kind":{"type":"string","enum":["poll","survey"]},"publicationId":{"nullable":true,"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"postId":{"nullable":true,"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"title":{"type":"string","minLength":1,"maxLength":200},"description":{"nullable":true,"type":"string","maxLength":2000},"questions":{"$ref":"#/components/schemas/Questions2"},"listId":{"nullable":true,"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"thankYouText":{"nullable":true,"type":"string","maxLength":1000},"anonymous":{"type":"boolean"}},"required":["kind","title","questions"]}}}},"responses":{"201":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ItemsItem204"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"postV1NewsletterEngagementSurveys"}},"/v1/newsletter/engagement/surveys/{id}":{"get":{"summary":"One poll or survey, with the poll block for editors","tags":["engagement"],"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ItemsItem204"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1NewsletterEngagementSurveysById"},"patch":{"summary":"Rename, describe, open or close, link a list, set the thank-you, turn the anonymous link on or off, edit questions","tags":["engagement"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"title":{"type":"string","minLength":1,"maxLength":200},"description":{"nullable":true,"type":"string","maxLength":2000},"status":{"type":"string","enum":["open","closed"]},"listId":{"nullable":true,"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"thankYouText":{"nullable":true,"type":"string","maxLength":1000},"anonymous":{"type":"boolean"},"questions":{"$ref":"#/components/schemas/Questions2"}}}}}},"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ItemsItem204"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"patchV1NewsletterEngagementSurveysById"},"delete":{"summary":"Delete a poll or survey and its answers","tags":["engagement"],"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"ok":{"type":"boolean","enum":[true]}},"required":["ok"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"deleteV1NewsletterEngagementSurveysById"}},"/v1/newsletter/engagement/surveys/{id}/results":{"get":{"summary":"Results per question","tags":["engagement"],"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"surveyId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"responses":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"questions":{"type":"array","items":{"type":"object","properties":{"questionId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"prompt":{"type":"string"},"kind":{"type":"string","enum":["single","multi","text","rating","email"]},"total":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"options":{"$ref":"#/components/schemas/Options3"},"average":{"nullable":true,"type":"number"},"texts":{"type":"array","items":{"type":"string"}}},"required":["questionId","prompt","kind","total","options","average","texts"],"additionalProperties":false}}},"required":["surveyId","responses","questions"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1NewsletterEngagementSurveysByIdResults"}},"/v1/newsletter/engagement/surveys/{id}/responses":{"get":{"summary":"Individual responses (respondent, time, answers), newest first","tags":["engagement"],"parameters":[{"schema":{"default":50,"type":"integer","minimum":1,"maximum":200},"in":"query","name":"limit","required":false},{"schema":{"type":"string","maxLength":64},"in":"query","name":"cursor","required":false},{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"items":{"type":"array","items":{"$ref":"#/components/schemas/ItemsItem205"}},"nextCursor":{"nullable":true,"type":"string"}},"required":["items","nextCursor"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1NewsletterEngagementSurveysByIdResponses"}},"/v1/newsletter/engagement/surveys/{id}/responses/{respondent}":{"get":{"summary":"One respondent's answers","tags":["engagement"],"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true},{"schema":{"type":"string","pattern":"^[0-9a-f-]{36}$"},"in":"path","name":"respondent","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ItemsItem205"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1NewsletterEngagementSurveysByIdResponsesByRespondent"}},"/v1/newsletter/engagement/surveys/{id}/duplicate":{"post":{"summary":"Copy a survey (questions and settings, no answers)","tags":["engagement"],"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"201":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ItemsItem204"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"postV1NewsletterEngagementSurveysByIdDuplicate"}},"/v1/newsletter/engagement/surveys/{id}/campaign":{"post":{"summary":"Draft an email campaign to the survey's list, with a new template that links each recipient to the survey (signed per reader)","tags":["engagement"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":200}}}}}},"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"201":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"campaignId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},"required":["campaignId"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"postV1NewsletterEngagementSurveysByIdCampaign"}},"/v1/newsletter/engagement/replies":{"get":{"summary":"Replies to the publication's post emails (reply-to-author inbox)","tags":["engagement"],"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"query","name":"publicationId","required":true},{"schema":{"type":"boolean"},"in":"query","name":"unread","required":false},{"schema":{"default":50,"type":"integer","minimum":1,"maximum":100},"in":"query","name":"limit","required":false},{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"query","name":"cursor","required":false}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"items":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"fromAddr":{"type":"string"},"subject":{"nullable":true,"type":"string"},"text":{"nullable":true,"type":"string"},"receivedAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"profileId":{"nullable":true,"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"read":{"type":"boolean"},"archived":{"type":"boolean"},"campaignId":{"nullable":true,"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},"required":["id","fromAddr","subject","text","receivedAt","profileId","read","archived","campaignId"],"additionalProperties":false}},"nextCursor":{"nullable":true,"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},"required":["items","nextCursor"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1NewsletterEngagementReplies"}},"/v1/newsletter/engagement/replies/{id}":{"patch":{"summary":"Mark a reply read or archived","tags":["engagement"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"read":{"type":"boolean"},"archived":{"type":"boolean"}}}}}},"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"ok":{"type":"boolean","enum":[true]}},"required":["ok"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"patchV1NewsletterEngagementRepliesById"}},"/e/widget.js":{"get":{"summary":"Embed script: turns <div data-hermetica-comments=\"workspace/post\"> into the comments widget","tags":["engagement"],"security":[],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"string"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getEWidgetJs"}},"/e/c/{ws}/{postId}":{"get":{"summary":"Comments and reactions for a post (server-rendered, embeddable)","tags":["engagement"],"parameters":[{"schema":{"type":"string","maxLength":600},"in":"query","name":"t","required":false},{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"ws","required":true},{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"postId","required":true}],"security":[],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"string"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getECByWsByPostId"},"post":{"summary":"Comment, reply, edit, delete, like or react (form post, reader token required)","tags":["engagement"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","additionalProperties":{}}}}},"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"ws","required":true},{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"postId","required":true}],"security":[],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"string"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"postECByWsByPostId"}},"/e/link/{ws}/{kind}/{id}":{"post":{"summary":"Email a sign-in link (same reply whether or not the address is known)","tags":["engagement"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","additionalProperties":{}}}}},"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"ws","required":true},{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true},{"schema":{"type":"string","enum":["c","poll","survey"]},"in":"path","name":"kind","required":true}],"security":[],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"string"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"postELinkByWsByKindById"}},"/e/poll/{ws}/{id}":{"get":{"summary":"Hosted poll page","tags":["engagement"],"parameters":[{"schema":{"type":"string","maxLength":600},"in":"query","name":"t","required":false},{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"ws","required":true},{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"security":[],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"string"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getEPollByWsById"}},"/e/survey/{ws}/{id}":{"get":{"summary":"Hosted survey page","tags":["engagement"],"parameters":[{"schema":{"type":"string","maxLength":600},"in":"query","name":"t","required":false},{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"ws","required":true},{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"security":[],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"string"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getESurveyByWsById"},"post":{"summary":"Submit (or change) survey answers","tags":["engagement"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","additionalProperties":{}}}}},"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"ws","required":true},{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"security":[],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"string"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"postESurveyByWsById"}},"/e/s/{ws}/{token}":{"get":{"summary":"Anonymous survey link: a blank form (never earlier answers or results)","tags":["engagement"],"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"ws","required":true},{"schema":{"type":"string","pattern":"^[A-Za-z0-9_-]{16,64}$"},"in":"path","name":"token","required":true}],"security":[],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"string"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getESByWsByToken"},"post":{"summary":"Submit answers through the anonymous survey link","tags":["engagement"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","additionalProperties":{}}}}},"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"ws","required":true},{"schema":{"type":"string","pattern":"^[A-Za-z0-9_-]{16,64}$"},"in":"path","name":"token","required":true}],"security":[],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"string"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"postESByWsByToken"}},"/e/results/{ws}/{id}":{"get":{"summary":"Poll results page","tags":["engagement"],"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"ws","required":true},{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"security":[],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"string"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getEResultsByWsById"}},"/e/v/{poll}/{opt}/{*}":{"get":{"summary":"Poll option link from an email: confirmation page (changes nothing until posted)","tags":["engagement"],"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"poll","required":true},{"schema":{"type":"string","pattern":"^[a-z0-9_-]{1,40}$"},"in":"path","name":"opt","required":true},{"schema":{"type":"string","minLength":10,"maxLength":600},"in":"path","name":"*","required":true}],"security":[],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"string"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getEVByPollByOptWildcard"},"post":{"summary":"Record a poll vote from an email link (one per reader, changeable)","tags":["engagement"],"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"poll","required":true},{"schema":{"type":"string","pattern":"^[a-z0-9_-]{1,40}$"},"in":"path","name":"opt","required":true},{"schema":{"type":"string","minLength":10,"maxLength":600},"in":"path","name":"*","required":true}],"security":[],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"string"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"postEVByPollByOptWildcard"}},"/p/signin/{ws}":{"get":{"summary":"Sign in to read or manage a subscription (emails a link)","tags":["newsletter"],"parameters":[{"schema":{"type":"string","maxLength":300},"in":"query","name":"next","required":false},{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"ws","required":true}],"security":[],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"string"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getPSigninByWs"},"post":{"summary":"Email a sign-in link (same reply whether or not the address is known)","tags":["newsletter"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","additionalProperties":{}}}}},"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"ws","required":true}],"security":[],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"string"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"postPSigninByWs"}},"/p/n/{ref}/p/{slug}/highlights":{"get":{"summary":"The signed-in reader's own highlights on a post","tags":["newsletter-site"],"parameters":[{"schema":{"type":"integer","minimum":1,"maximum":200},"in":"query","name":"limit","required":false,"description":"Page size; omitted returns the whole list"},{"schema":{"type":"string","pattern":"^\\d{1,9}$"},"in":"query","name":"cursor","required":false,"description":"Opaque: the `nextCursor` of the previous page"},{"schema":{"type":"string","pattern":"^[0-9a-f-]{36}\\.[a-z0-9][a-z0-9-]{0,79}$"},"in":"path","name":"ref","required":true},{"schema":{"type":"string","minLength":1,"maxLength":80,"pattern":"^[a-z0-9-]+$"},"in":"path","name":"slug","required":true}],"security":[],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"items":{"type":"array","items":{"$ref":"#/components/schemas/ItemsItem206"}},"nextCursor":{"nullable":true,"type":"string"}},"required":["items","nextCursor"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getPNByRefPBySlugHighlights"},"post":{"summary":"Save a highlight with an optional note (private unless the reader shares the note)","tags":["newsletter-site"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"quote":{"type":"string","minLength":3,"maxLength":500},"note":{"type":"string","maxLength":1000},"notePublic":{"default":false,"type":"boolean"}},"required":["quote"]}}}},"parameters":[{"schema":{"type":"string","pattern":"^[0-9a-f-]{36}\\.[a-z0-9][a-z0-9-]{0,79}$"},"in":"path","name":"ref","required":true},{"schema":{"type":"string","minLength":1,"maxLength":80,"pattern":"^[a-z0-9-]+$"},"in":"path","name":"slug","required":true}],"security":[],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ItemsItem206"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"postPNByRefPBySlugHighlights"}},"/p/n/{ref}/p/{slug}/highlights/{id}":{"delete":{"summary":"Remove one of the reader's own highlights","tags":["newsletter-site"],"parameters":[{"schema":{"type":"string","pattern":"^[0-9a-f-]{36}\\.[a-z0-9][a-z0-9-]{0,79}$"},"in":"path","name":"ref","required":true},{"schema":{"type":"string","minLength":1,"maxLength":80,"pattern":"^[a-z0-9-]+$"},"in":"path","name":"slug","required":true},{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"security":[],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"ok":{"type":"boolean","enum":[true]}},"required":["ok"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"deletePNByRefPBySlugHighlightsById"}},"/v1/in-app-messages":{"get":{"summary":"In-app messages","tags":["inapp"],"parameters":[{"schema":{"type":"integer","minimum":1,"maximum":200},"in":"query","name":"limit","required":false,"description":"Page size; omitted returns the whole list"},{"schema":{"type":"string","pattern":"^\\d{1,9}$"},"in":"query","name":"cursor","required":false,"description":"Opaque: the `nextCursor` of the previous page"}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"items":{"type":"array","items":{"$ref":"#/components/schemas/ItemsItem207"}},"nextCursor":{"nullable":true,"type":"string"}},"required":["items","nextCursor"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1InAppMessages"},"post":{"summary":"Create an in-app message (draft)","tags":["inapp"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":200},"layout":{"default":"modal","type":"string","enum":["modal","banner_top","banner_bottom","fullscreen","bottom_sheet"]},"content":{"default":{"blocks":[]},"type":"object","properties":{"blocks":{"$ref":"#/components/schemas/Blocks2"},"html":{"type":"string","maxLength":50000}}},"style":{"default":{"background":"#ffffff","textColor":"#111111","accentColor":"#2563eb","radius":12,"dismissible":true},"type":"object","properties":{"background":{"default":"#ffffff","type":"string","pattern":"^#[0-9a-fA-F]{3,8}$"},"textColor":{"default":"#111111","type":"string","pattern":"^#[0-9a-fA-F]{3,8}$"},"accentColor":{"default":"#2563eb","type":"string","pattern":"^#[0-9a-fA-F]{3,8}$"},"radius":{"default":12,"type":"integer","minimum":0,"maximum":48},"dismissible":{"default":true,"type":"boolean"}}},"audience":{"default":{"kind":"everyone"},"oneOf":[{"type":"object","properties":{"kind":{"type":"string","enum":["everyone"]}},"required":["kind"]},{"$ref":"#/components/schemas/AudienceVariant3"},{"$ref":"#/components/schemas/AudienceVariant4"}]},"trigger":{"default":{"type":"app_open"},"oneOf":[{"type":"object","properties":{"type":{"type":"string","enum":["app_open"]}},"required":["type"]},{"type":"object","properties":{"type":{"type":"string","enum":["screen_view"]},"name":{"type":"string","minLength":1,"maxLength":128}},"required":["type","name"]},{"$ref":"#/components/schemas/TriggerVariant4"},{"$ref":"#/components/schemas/TriggerVariant5"}]},"platforms":{"default":["ios","android","web"],"minItems":1,"type":"array","items":{"type":"string","enum":["ios","android","web"]}},"frequency":{"default":{"mode":"once"},"type":"object","properties":{"mode":{"type":"string","enum":["once","once_per_session","every_time","max"]},"max":{"type":"integer","minimum":1,"maximum":1000},"perDays":{"type":"integer","minimum":1,"maximum":365}},"required":["mode"]},"priority":{"default":100,"type":"integer","minimum":0,"maximum":1000},"startAt":{"nullable":true,"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"endAt":{"nullable":true,"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"variants":{"default":[],"maxItems":5,"type":"array","items":{"$ref":"#/components/schemas/VariantsItem7"}}},"required":["name"]}}}},"responses":{"201":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ItemsItem207"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"postV1InAppMessages"}},"/v1/in-app-messages/{id}":{"get":{"summary":"One in-app message","tags":["inapp"],"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ItemsItem207"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1InAppMessagesById"},"patch":{"summary":"Edit an in-app message or change its status (draft, live, paused, archived)","tags":["inapp"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":200},"layout":{"type":"string","enum":["modal","banner_top","banner_bottom","fullscreen","bottom_sheet"]},"content":{"$ref":"#/components/schemas/Content3"},"style":{"type":"object","properties":{"background":{"default":"#ffffff","type":"string","pattern":"^#[0-9a-fA-F]{3,8}$"},"textColor":{"default":"#111111","type":"string","pattern":"^#[0-9a-fA-F]{3,8}$"},"accentColor":{"default":"#2563eb","type":"string","pattern":"^#[0-9a-fA-F]{3,8}$"},"radius":{"default":12,"type":"integer","minimum":0,"maximum":48},"dismissible":{"default":true,"type":"boolean"}}},"audience":{"oneOf":[{"type":"object","properties":{"kind":{"type":"string","enum":["everyone"]}},"required":["kind"]},{"$ref":"#/components/schemas/AudienceVariant3"},{"$ref":"#/components/schemas/AudienceVariant4"}]},"trigger":{"oneOf":[{"type":"object","properties":{"type":{"type":"string","enum":["app_open"]}},"required":["type"]},{"type":"object","properties":{"type":{"type":"string","enum":["screen_view"]},"name":{"type":"string","minLength":1,"maxLength":128}},"required":["type","name"]},{"$ref":"#/components/schemas/TriggerVariant4"},{"$ref":"#/components/schemas/TriggerVariant5"}]},"platforms":{"minItems":1,"type":"array","items":{"type":"string","enum":["ios","android","web"]}},"frequency":{"type":"object","properties":{"mode":{"type":"string","enum":["once","once_per_session","every_time","max"]},"max":{"type":"integer","minimum":1,"maximum":1000},"perDays":{"type":"integer","minimum":1,"maximum":365}},"required":["mode"]},"priority":{"type":"integer","minimum":0,"maximum":1000},"startAt":{"nullable":true,"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"endAt":{"nullable":true,"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"variants":{"maxItems":5,"type":"array","items":{"$ref":"#/components/schemas/VariantsItem7"}},"status":{"type":"string","enum":["draft","live","paused","archived"]}}}}}},"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ItemsItem207"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"patchV1InAppMessagesById"},"delete":{"summary":"Delete an in-app message and its events","tags":["inapp"],"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"ok":{"type":"boolean","enum":[true]}},"required":["ok"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"deleteV1InAppMessagesById"}},"/v1/in-app-messages/{id}/stats":{"get":{"summary":"Impressions, clicks, dismissals per variant, and attributed revenue","tags":["inapp"],"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"impressions":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"uniqueProfiles":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"clicks":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"dismissals":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"ctrPct":{"type":"number"},"variants":{"type":"array","items":{"type":"object","properties":{"variant":{"type":"string"},"impressions":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"clicks":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"dismissals":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"ctrPct":{"type":"number"},"orders":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["variant","impressions","clicks","dismissals","ctrPct","orders"],"additionalProperties":false}},"revenue":{"$ref":"#/components/schemas/Revenue3"}},"required":["impressions","uniqueProfiles","clicks","dismissals","ctrPct","variants","revenue"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1InAppMessagesByIdStats"}},"/v1/geofences":{"get":{"summary":"Geofences","tags":["inapp"],"parameters":[{"schema":{"type":"integer","minimum":1,"maximum":200},"in":"query","name":"limit","required":false,"description":"Page size; omitted returns the whole list"},{"schema":{"type":"string","pattern":"^\\d{1,9}$"},"in":"query","name":"cursor","required":false,"description":"Opaque: the `nextCursor` of the previous page"}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"items":{"type":"array","items":{"$ref":"#/components/schemas/ItemsItem208"}},"nextCursor":{"nullable":true,"type":"string"}},"required":["items","nextCursor"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1Geofences"},"post":{"summary":"Create a geofence","tags":["inapp"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":200},"latitude":{"type":"number","minimum":-90,"maximum":90},"longitude":{"type":"number","minimum":-180,"maximum":180},"radiusM":{"type":"integer","minimum":100,"maximum":100000},"active":{"default":true,"type":"boolean"}},"required":["name","latitude","longitude","radiusM"]}}}},"responses":{"201":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ItemsItem208"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"postV1Geofences"}},"/v1/geofences/{id}":{"patch":{"summary":"Edit a geofence","tags":["inapp"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":200},"latitude":{"type":"number","minimum":-90,"maximum":90},"longitude":{"type":"number","minimum":-180,"maximum":180},"radiusM":{"type":"integer","minimum":100,"maximum":100000},"active":{"type":"boolean"}}}}}},"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ItemsItem208"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"patchV1GeofencesById"},"delete":{"summary":"Delete a geofence","tags":["inapp"],"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"ok":{"type":"boolean","enum":[true]}},"required":["ok"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"deleteV1GeofencesById"}},"/client/in-app-messages":{"get":{"summary":"In-app messages for an identified or anonymous visitor at a trigger","tags":["inapp-client"],"parameters":[{"schema":{"type":"string","maxLength":256},"in":"query","name":"company_id","required":false},{"schema":{"type":"string","enum":["ios","android","web"]},"in":"query","name":"platform","required":true},{"schema":{"default":"app_open","type":"string","enum":["app_open","screen_view","event","page_url"]},"in":"query","name":"trigger","required":false},{"schema":{"type":"string","maxLength":128},"in":"query","name":"name","required":false},{"schema":{"type":"string","maxLength":2048},"in":"query","name":"url","required":false},{"schema":{"type":"string","maxLength":4096},"in":"query","name":"properties","required":false},{"schema":{"type":"string","maxLength":128},"in":"query","name":"session_id","required":false},{"schema":{"type":"string","minLength":1,"maxLength":256},"in":"query","name":"external_id","required":false},{"schema":{"type":"string","maxLength":320},"in":"query","name":"email","required":false},{"schema":{"type":"string","maxLength":40},"in":"query","name":"phone_number","required":false},{"schema":{"type":"string","minLength":1,"maxLength":128},"in":"query","name":"anonymous_id","required":false},{"schema":{"type":"integer","minimum":1,"maximum":200},"in":"query","name":"limit","required":false,"description":"Page size; omitted returns the whole list"},{"schema":{"type":"string","pattern":"^\\d{1,9}$"},"in":"query","name":"cursor","required":false,"description":"Opaque: the `nextCursor` of the previous page"}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"items":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"variant":{"type":"string"},"layout":{"type":"string","enum":["modal","banner_top","banner_bottom","fullscreen","bottom_sheet"]},"content":{"$ref":"#/components/schemas/Content2"},"style":{"$ref":"#/components/schemas/Style"},"priority":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"queued":{"type":"boolean"}},"required":["id","variant","layout","content","style","priority","queued"],"additionalProperties":false}},"nextCursor":{"nullable":true,"type":"string"}},"required":["items","nextCursor"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getClientInAppMessages"}},"/client/in-app-events":{"post":{"summary":"Report impressions, clicks and dismissals","tags":["inapp-client"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"events":{"minItems":1,"maxItems":20,"type":"array","items":{"type":"object","properties":{"messageId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"variant":{"default":"a","type":"string","maxLength":16},"type":{"type":"string","enum":["impression","click","dismiss"]},"platform":{"type":"string","enum":["ios","android","web"]},"sessionId":{"type":"string","maxLength":128},"button":{"type":"string","maxLength":60},"at":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"}},"required":["messageId","type","platform"]}},"profile":{"$ref":"#/components/schemas/Profile4"}},"required":["events"]}}}},"parameters":[{"schema":{"type":"string","maxLength":256},"in":"query","name":"company_id","required":false}],"responses":{"202":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PostClientInAppEventsResponse"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"postClientInAppEvents"}},"/client/geofences":{"get":{"summary":"Active geofences the app should monitor (Klaviyo JSON:API list)","tags":["inapp-client"],"parameters":[{"schema":{"type":"string","maxLength":256},"in":"query","name":"company_id","required":false}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","enum":["geofence"]},"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"attributes":{"type":"object","properties":{"name":{"type":"string"},"latitude":{"type":"number"},"longitude":{"type":"number"},"radius":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["name","latitude","longitude","radius"],"additionalProperties":false}},"required":["type","id","attributes"],"additionalProperties":false}}},"required":["data"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getClientGeofences"}},"/v1/in-app-messages/{id}/send":{"post":{"summary":"Hold a live in-app message for one contact (shown on their next visit). Needs an idempotency key","tags":["inapp"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"profileId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"expiresInHours":{"default":24,"type":"integer","minimum":1,"maximum":720},"idempotencyKey":{"type":"string","minLength":1,"maxLength":200}},"required":["profileId"]}}}},"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"string","enum":["queued","duplicate","blocked"]},"reason":{"nullable":true,"type":"string"}},"required":["status","reason"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"postV1InAppMessagesByIdSend"}},"/v1/inbox-messages":{"post":{"summary":"Send a transactional message into a contact's in-app inbox. Needs an idempotency key","tags":["inapp"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"profileId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"title":{"type":"string","minLength":1,"maxLength":200},"body":{"default":"","type":"string","maxLength":4000},"imageUrl":{"type":"string","maxLength":2048,"format":"uri"},"link":{"type":"string","maxLength":2048},"category":{"type":"string","maxLength":64},"data":{"default":{},"type":"object","additionalProperties":{}},"expiresInDays":{"type":"integer","minimum":1,"maximum":365},"idempotencyKey":{"type":"string","minLength":1,"maxLength":200}},"required":["profileId","title"]}}}},"responses":{"201":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"string","enum":["sent","duplicate","blocked"]},"id":{"nullable":true,"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"reason":{"nullable":true,"type":"string"}},"required":["status","id","reason"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"postV1InboxMessages"}},"/v1/profiles/{id}/inbox":{"get":{"summary":"A contact's inbox, including read and deleted messages","tags":["inapp"],"parameters":[{"schema":{"type":"integer","minimum":1,"maximum":200},"in":"query","name":"limit","required":false,"description":"Page size; omitted returns the whole list"},{"schema":{"type":"string","pattern":"^\\d{1,9}$"},"in":"query","name":"cursor","required":false,"description":"Opaque: the `nextCursor` of the previous page"},{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"items":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"title":{"type":"string"},"body":{"type":"string"},"imageUrl":{"nullable":true,"type":"string"},"link":{"nullable":true,"type":"string"},"category":{"nullable":true,"type":"string"},"data":{"type":"object","additionalProperties":{}},"read":{"type":"boolean"},"createdAt":{"type":"string"},"expiresAt":{"nullable":true,"type":"string"},"profileId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"source":{"type":"string"},"deleted":{"type":"boolean"}},"required":["id","title","body","imageUrl","link","category","data","read","createdAt","expiresAt","profileId","source","deleted"],"additionalProperties":false}},"nextCursor":{"nullable":true,"type":"string"}},"required":["items","nextCursor"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1ProfilesByIdInbox"}},"/v1/inbox-messages/{id}":{"delete":{"summary":"Withdraw an inbox message","tags":["inapp"],"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"ok":{"type":"boolean","enum":[true]}},"required":["ok"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"deleteV1InboxMessagesById"}},"/v1/in-app-components":{"get":{"summary":"Developer-defined in-app components","tags":["inapp"],"parameters":[{"schema":{"type":"integer","minimum":1,"maximum":200},"in":"query","name":"limit","required":false,"description":"Page size; omitted returns the whole list"},{"schema":{"type":"string","pattern":"^\\d{1,9}$"},"in":"query","name":"cursor","required":false,"description":"Opaque: the `nextCursor` of the previous page"}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"items":{"type":"array","items":{"$ref":"#/components/schemas/ItemsItem209"}},"nextCursor":{"nullable":true,"type":"string"}},"required":["items","nextCursor"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1InAppComponents"},"post":{"summary":"Define a component the app renders natively (its fields and the events it reports)","tags":["inapp"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"key":{"type":"string","pattern":"^[a-z][a-z0-9_]{0,63}$"},"name":{"type":"string","minLength":1,"maxLength":200},"description":{"default":"","type":"string","maxLength":1000},"fields":{"default":[],"maxItems":30,"type":"array","items":{"$ref":"#/components/schemas/FieldsItem3"}},"events":{"default":[],"maxItems":20,"type":"array","items":{"type":"string","pattern":"^[a-z][a-z0-9_]{0,63}$"}}},"required":["key","name"]}}}},"responses":{"201":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ItemsItem209"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"postV1InAppComponents"}},"/v1/in-app-components/{id}":{"patch":{"summary":"Edit a component","tags":["inapp"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":200},"description":{"type":"string","maxLength":1000},"fields":{"maxItems":30,"type":"array","items":{"$ref":"#/components/schemas/FieldsItem3"}},"events":{"maxItems":20,"type":"array","items":{"type":"string","pattern":"^[a-z][a-z0-9_]{0,63}$"}}}}}}},"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ItemsItem209"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"patchV1InAppComponentsById"},"delete":{"summary":"Delete a component","tags":["inapp"],"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"ok":{"type":"boolean","enum":[true]}},"required":["ok"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"deleteV1InAppComponentsById"}},"/client/inbox":{"get":{"summary":"The contact's inbox, newest first, with the unread count","tags":["inapp-client"],"parameters":[{"schema":{"type":"string","maxLength":256},"in":"query","name":"company_id","required":false},{"schema":{"type":"string","enum":["true","false"]},"in":"query","name":"unread","required":false},{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"query","name":"cursor","required":false},{"schema":{"default":30,"type":"integer","minimum":1,"maximum":100},"in":"query","name":"limit","required":false},{"schema":{"type":"string","minLength":1,"maxLength":256},"in":"query","name":"external_id","required":false},{"schema":{"type":"string","maxLength":320},"in":"query","name":"email","required":false},{"schema":{"type":"string","maxLength":40},"in":"query","name":"phone_number","required":false},{"schema":{"type":"string","minLength":1,"maxLength":128},"in":"query","name":"anonymous_id","required":false}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"items":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"title":{"type":"string"},"body":{"type":"string"},"imageUrl":{"nullable":true,"type":"string"},"link":{"nullable":true,"type":"string"},"category":{"nullable":true,"type":"string"},"data":{"type":"object","additionalProperties":{}},"read":{"type":"boolean"},"createdAt":{"type":"string"},"expiresAt":{"nullable":true,"type":"string"}},"required":["id","title","body","imageUrl","link","category","data","read","createdAt","expiresAt"],"additionalProperties":false}},"unread":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"nextCursor":{"nullable":true,"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},"required":["items","unread","nextCursor"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getClientInbox"}},"/client/inbox/{id}/read":{"post":{"summary":"Mark an inbox message read or unread","tags":["inapp-client"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"read":{"default":true,"type":"boolean"},"profile":{"$ref":"#/components/schemas/Profile4"}},"required":["profile"]}}}},"parameters":[{"schema":{"type":"string","maxLength":256},"in":"query","name":"company_id","required":false},{"schema":{"type":"string","minLength":1,"maxLength":256},"in":"query","name":"external_id","required":false},{"schema":{"type":"string","maxLength":320},"in":"query","name":"email","required":false},{"schema":{"type":"string","maxLength":40},"in":"query","name":"phone_number","required":false},{"schema":{"type":"string","minLength":1,"maxLength":128},"in":"query","name":"anonymous_id","required":false},{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"ok":{"type":"boolean","enum":[true]}},"required":["ok"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"postClientInboxByIdRead"}},"/client/inbox/{id}/delete":{"post":{"summary":"Delete an inbox message for the contact","tags":["inapp-client"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"profile":{"$ref":"#/components/schemas/Profile4"}},"required":["profile"]}}}},"parameters":[{"schema":{"type":"string","maxLength":256},"in":"query","name":"company_id","required":false},{"schema":{"type":"string","minLength":1,"maxLength":256},"in":"query","name":"external_id","required":false},{"schema":{"type":"string","maxLength":320},"in":"query","name":"email","required":false},{"schema":{"type":"string","maxLength":40},"in":"query","name":"phone_number","required":false},{"schema":{"type":"string","minLength":1,"maxLength":128},"in":"query","name":"anonymous_id","required":false},{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"ok":{"type":"boolean","enum":[true]}},"required":["ok"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"postClientInboxByIdDelete"}},"/client/in-app-trackers":{"get":{"summary":"Active tracker components for the contact (journey tracker steps)","tags":["inapp-client"],"parameters":[{"schema":{"type":"string","maxLength":256},"in":"query","name":"company_id","required":false},{"schema":{"type":"string","minLength":1,"maxLength":256},"in":"query","name":"external_id","required":false},{"schema":{"type":"string","maxLength":320},"in":"query","name":"email","required":false},{"schema":{"type":"string","maxLength":40},"in":"query","name":"phone_number","required":false},{"schema":{"type":"string","minLength":1,"maxLength":128},"in":"query","name":"anonymous_id","required":false},{"schema":{"type":"integer","minimum":1,"maximum":200},"in":"query","name":"limit","required":false,"description":"Page size; omitted returns the whole list"},{"schema":{"type":"string","pattern":"^\\d{1,9}$"},"in":"query","name":"cursor","required":false,"description":"Opaque: the `nextCursor` of the previous page"}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"items":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"componentKey":{"type":"string"},"fields":{"type":"object","additionalProperties":{}},"events":{"type":"array","items":{"type":"string"}}},"required":["id","componentKey","fields","events"],"additionalProperties":false}},"nextCursor":{"nullable":true,"type":"string"}},"required":["items","nextCursor"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getClientInAppTrackers"}},"/client/in-app-trackers/{id}/events":{"post":{"summary":"The component reports an event; the journey waiting on it moves on","tags":["inapp-client"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"event":{"type":"string","minLength":1,"maxLength":64},"profile":{"$ref":"#/components/schemas/Profile4"}},"required":["event","profile"]}}}},"parameters":[{"schema":{"type":"string","maxLength":256},"in":"query","name":"company_id","required":false},{"schema":{"type":"string","minLength":1,"maxLength":256},"in":"query","name":"external_id","required":false},{"schema":{"type":"string","maxLength":320},"in":"query","name":"email","required":false},{"schema":{"type":"string","maxLength":40},"in":"query","name":"phone_number","required":false},{"schema":{"type":"string","minLength":1,"maxLength":128},"in":"query","name":"anonymous_id","required":false},{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"202":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"ok":{"type":"boolean","enum":[true]}},"required":["ok"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"postClientInAppTrackersByIdEvents"}},"/client/geofence-events":{"post":{"summary":"The app entered, left or dwelled in a geofence: recorded as geofence_entered / geofence_exited / geofence_dwelled","tags":["inapp-client"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"geofenceId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"transition":{"default":"enter","type":"string","enum":["enter","exit","dwell"]},"profile":{"$ref":"#/components/schemas/Profile4"}},"required":["geofenceId","profile"]}}}},"parameters":[{"schema":{"type":"string","maxLength":256},"in":"query","name":"company_id","required":false},{"schema":{"type":"string","minLength":1,"maxLength":256},"in":"query","name":"external_id","required":false},{"schema":{"type":"string","maxLength":320},"in":"query","name":"email","required":false},{"schema":{"type":"string","maxLength":40},"in":"query","name":"phone_number","required":false},{"schema":{"type":"string","minLength":1,"maxLength":128},"in":"query","name":"anonymous_id","required":false}],"responses":{"202":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PostClientInAppEventsResponse"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"postClientGeofenceEvents"}},"/v1/benchmarks/settings":{"get":{"summary":"Peer benchmark sharing: opt-in state, peer profile and the consent text","tags":["analytics"],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetV1BenchmarksSettingsResponse"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1BenchmarksSettings"},"put":{"summary":"Turn peer benchmark sharing on (explicit consent required) or off (deletes your contribution)","tags":["analytics"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"optedIn":{"type":"boolean"},"industry":{"type":"string","maxLength":40},"region":{"type":"string","maxLength":40},"consentVersion":{"type":"string","maxLength":40}},"required":["optedIn"]}}}},"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetV1BenchmarksSettingsResponse"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"putV1BenchmarksSettings"}},"/v1/benchmarks":{"get":{"summary":"Peer benchmarks (overview): your last 90 days against peer percentiles, falling back to a labelled static reference table","tags":["analytics"],"parameters":[{"schema":{"type":"string","maxLength":40},"in":"query","name":"industry","required":false},{"schema":{"type":"string","maxLength":40},"in":"query","name":"size","required":false},{"schema":{"type":"string","maxLength":40},"in":"query","name":"region","required":false}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetV1BenchmarksResponse"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1Benchmarks"}},"/v1/benchmarks/campaigns":{"get":{"summary":"Peer benchmarks (campaigns): your last 90 days against peer percentiles, falling back to a labelled static reference table","tags":["analytics"],"parameters":[{"schema":{"type":"string","maxLength":40},"in":"query","name":"industry","required":false},{"schema":{"type":"string","maxLength":40},"in":"query","name":"size","required":false},{"schema":{"type":"string","maxLength":40},"in":"query","name":"region","required":false}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetV1BenchmarksResponse"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1BenchmarksCampaigns"}},"/v1/benchmarks/flows":{"get":{"summary":"Peer benchmarks (flows): your last 90 days against peer percentiles, falling back to a labelled static reference table","tags":["analytics"],"parameters":[{"schema":{"type":"string","maxLength":40},"in":"query","name":"industry","required":false},{"schema":{"type":"string","maxLength":40},"in":"query","name":"size","required":false},{"schema":{"type":"string","maxLength":40},"in":"query","name":"region","required":false}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetV1BenchmarksResponse"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1BenchmarksFlows"}},"/v1/benchmarks/forms":{"get":{"summary":"Peer benchmarks (forms): your last 90 days against peer percentiles, falling back to a labelled static reference table","tags":["analytics"],"parameters":[{"schema":{"type":"string","maxLength":40},"in":"query","name":"industry","required":false},{"schema":{"type":"string","maxLength":40},"in":"query","name":"size","required":false},{"schema":{"type":"string","maxLength":40},"in":"query","name":"region","required":false}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetV1BenchmarksResponse"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1BenchmarksForms"}},"/v1/benchmarks/sms":{"get":{"summary":"Peer benchmarks (sms): your last 90 days against peer percentiles, falling back to a labelled static reference table","tags":["analytics"],"parameters":[{"schema":{"type":"string","maxLength":40},"in":"query","name":"industry","required":false},{"schema":{"type":"string","maxLength":40},"in":"query","name":"size","required":false},{"schema":{"type":"string","maxLength":40},"in":"query","name":"region","required":false}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetV1BenchmarksResponse"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1BenchmarksSms"}},"/v1/ai-agents/status":{"get":{"summary":"Whether agents can run: operator switch and workspace AI opt-in","tags":["ai-agents"],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"operatorEnabled":{"type":"boolean"},"workspaceEnabled":{"type":"boolean"},"available":{"type":"boolean"}},"required":["operatorEnabled","workspaceEnabled","available"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1AiAgentsStatus"}},"/v1/ai-agents":{"get":{"tags":["ai-agents"],"parameters":[{"schema":{"type":"integer","minimum":1,"maximum":200},"in":"query","name":"limit","required":false,"description":"Page size; omitted returns the whole list"},{"schema":{"type":"string","pattern":"^\\d{1,9}$"},"in":"query","name":"cursor","required":false,"description":"Opaque: the `nextCursor` of the previous page"}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"items":{"type":"array","items":{"$ref":"#/components/schemas/ItemsItem210"}},"nextCursor":{"nullable":true,"type":"string"}},"required":["items","nextCursor"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1AiAgents"},"post":{"summary":"Create an agent. It starts switched off and review-only","tags":["ai-agents"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"kind":{"type":"string","enum":["inbox_manager"]},"name":{"type":"string","minLength":1,"maxLength":120},"config":{"type":"object","properties":{"categories":{"default":["positive","neutral","meeting"],"minItems":1,"type":"array","items":{"type":"string","enum":["positive","neutral","meeting","wrong_person","negative"]}},"goal":{"type":"string","maxLength":300},"signature":{"type":"string","maxLength":500}}}},"required":["kind","name","config"]},{"type":"object","properties":{"kind":{"type":"string","enum":["sales"]},"name":{"type":"string","minLength":1,"maxLength":120},"config":{"type":"object","properties":{"offer":{"type":"string","minLength":1,"maxLength":1000},"audience":{"type":"string","maxLength":300},"connectionId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"dailyLimit":{"default":10,"type":"integer","minimum":1,"maximum":100},"researchField":{"type":"string","minLength":1,"maxLength":100}},"required":["offer","connectionId"]}},"required":["kind","name","config"]}]}}}},"responses":{"201":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ItemsItem210"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"postV1AiAgents"}},"/v1/ai-agents/{id}":{"get":{"tags":["ai-agents"],"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ItemsItem210"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1AiAgentsById"},"patch":{"summary":"Rename, switch on or off, turn auto-send on or off, or change its settings","tags":["ai-agents"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":120},"enabled":{"type":"boolean"},"autoSend":{"type":"boolean"},"config":{"type":"object","additionalProperties":{}}}}}}},"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ItemsItem210"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"patchV1AiAgentsById"},"delete":{"tags":["ai-agents"],"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"ok":{"type":"boolean","enum":[true]}},"required":["ok"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"deleteV1AiAgentsById"}},"/v1/ai-agents/{id}/run":{"post":{"summary":"Run the agent now instead of waiting for its next pass. Drafts go to the review feed unless auto-send is on","tags":["ai-agents"],"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"drafted":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"sent":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"blocked":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"skipped":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["drafted","sent","blocked","skipped"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"postV1AiAgentsByIdRun"}},"/v1/ai-agents/{id}/guidances":{"get":{"tags":["ai-agents"],"parameters":[{"schema":{"type":"integer","minimum":1,"maximum":200},"in":"query","name":"limit","required":false,"description":"Page size; omitted returns the whole list"},{"schema":{"type":"string","pattern":"^\\d{1,9}$"},"in":"query","name":"cursor","required":false,"description":"Opaque: the `nextCursor` of the previous page"},{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"items":{"type":"array","items":{"$ref":"#/components/schemas/ItemsItem211"}},"nextCursor":{"nullable":true,"type":"string"}},"required":["items","nextCursor"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1AiAgentsByIdGuidances"},"post":{"summary":"Add a guidance rule (at most 10 per agent)","tags":["ai-agents"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"title":{"type":"string","minLength":1,"maxLength":120},"body":{"type":"string","minLength":1,"maxLength":1000},"position":{"type":"integer","minimum":0,"maximum":100}},"required":["title","body"]}}}},"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"201":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ItemsItem211"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"postV1AiAgentsByIdGuidances"}},"/v1/ai-agents/{id}/guidances/{guidanceId}":{"get":{"tags":["ai-agents"],"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true},{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"guidanceId","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ItemsItem211"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1AiAgentsByIdGuidancesByGuidanceId"},"patch":{"tags":["ai-agents"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"title":{"type":"string","minLength":1,"maxLength":120},"body":{"type":"string","minLength":1,"maxLength":1000},"position":{"type":"integer","minimum":0,"maximum":100}}}}}},"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true},{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"guidanceId","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ItemsItem211"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"patchV1AiAgentsByIdGuidancesByGuidanceId"},"delete":{"tags":["ai-agents"],"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true},{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"guidanceId","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"ok":{"type":"boolean","enum":[true]}},"required":["ok"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"deleteV1AiAgentsByIdGuidancesByGuidanceId"}},"/v1/ai-agents/items":{"get":{"tags":["ai-agents"],"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"query","name":"agentId","required":false},{"schema":{"type":"string","enum":["pending","sent","blocked","rejected","failed"]},"in":"query","name":"status","required":false},{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"query","name":"profileId","required":false},{"schema":{"default":50,"type":"integer","minimum":1,"maximum":200},"in":"query","name":"limit","required":false},{"schema":{"type":"string"},"in":"query","name":"cursor","required":false}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"items":{"$ref":"#/components/schemas/Items54"},"nextCursor":{"nullable":true,"type":"string"}},"required":["items","nextCursor"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1AiAgentsItems"}},"/v1/ai-agents/items/{id}":{"get":{"tags":["ai-agents"],"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ItemsItem212"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1AiAgentsItemsById"},"patch":{"summary":"Edit a pending draft before approving it","tags":["ai-agents"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"subject":{"type":"string","minLength":1,"maxLength":300},"body":{"type":"string","minLength":1,"maxLength":20000}}}}}},"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ItemsItem212"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"patchV1AiAgentsItemsById"}},"/v1/ai-agents/items/{id}/decide":{"post":{"summary":"Approve (sends through consent and suppression; a blocked recipient ends as blocked) or reject (nothing is sent)","tags":["ai-agents"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"action":{"type":"string","enum":["approve","reject"]},"subject":{"type":"string","minLength":1,"maxLength":300},"body":{"type":"string","minLength":1,"maxLength":20000}},"required":["action"]}}}},"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ItemsItem212"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"postV1AiAgentsItemsByIdDecide"}},"/v1/ai-agents/items/bulk-decide":{"post":{"tags":["ai-agents"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PostV1AiAgentsItemsBulkDecideBody"}}}},"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PostV1AiAgentsItemsBulkDecideResponse"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"postV1AiAgentsItemsBulkDecide"}},"/v1/ai-agents/items/bulk-delete":{"post":{"summary":"Delete items from the feed; a deleted draft is never sent","tags":["ai-agents"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PostV1CampaignsBulkDeleteBody"}}}},"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PostV1AiAgentsItemsBulkDecideResponse"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"postV1AiAgentsItemsBulkDelete"}},"/v1/ai-agents/{id}/analytics/summary":{"get":{"tags":["ai-agents"],"parameters":[{"schema":{"default":30,"type":"integer","minimum":1,"maximum":90},"in":"query","name":"days","required":false},{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"total":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"byStatus":{"type":"object","additionalProperties":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"required":["pending","sent","blocked","rejected","failed"]},"approvalRate":{"nullable":true,"type":"number"},"autoSent":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"byDay":{"type":"array","items":{"type":"object","properties":{"day":{"type":"string"},"drafted":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"sent":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"rejected":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["day","drafted","sent","rejected"],"additionalProperties":false}}},"required":["total","byStatus","approvalRate","autoSent","byDay"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1AiAgentsByIdAnalyticsSummary"}},"/v1/ai-agents/{id}/leads":{"get":{"tags":["ai-agents"],"parameters":[{"schema":{"type":"integer","minimum":1,"maximum":200},"in":"query","name":"limit","required":false,"description":"Page size; omitted returns the whole list"},{"schema":{"type":"string","pattern":"^\\d{1,9}$"},"in":"query","name":"cursor","required":false,"description":"Opaque: the `nextCursor` of the previous page"},{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"items":{"type":"array","items":{"type":"object","properties":{"profileId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"profileEmail":{"nullable":true,"type":"string"},"items":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"lastStatus":{"type":"string","enum":["pending","sent","blocked","rejected","failed"]},"lastAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"}},"required":["profileId","profileEmail","items","lastStatus","lastAt"],"additionalProperties":false}},"nextCursor":{"nullable":true,"type":"string"}},"required":["items","nextCursor"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1AiAgentsByIdLeads"}},"/v1/ai-agents/{id}/leads/{profileId}/research":{"get":{"summary":"What the agent knew about a lead when it wrote to them, and every proposal it made","tags":["ai-agents"],"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true},{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"profileId","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"profileId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"research":{"nullable":true,"type":"string"},"items":{"$ref":"#/components/schemas/Items54"}},"required":["profileId","research","items"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1AiAgentsByIdLeadsByProfileIdResearch"}},"/v1/ai-agents/{id}/opportunities":{"get":{"summary":"Where the leads a sales agent emailed stand now","tags":["ai-agents"],"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"contacted":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"replied":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"interested":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"meetings":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"won":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"pipelineValueCents":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["contacted","replied","interested","meetings","won","pipelineValueCents"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1AiAgentsByIdOpportunities"}},"/ingest/v1/forms/visitor":{"get":{"summary":"Audience flags for on-site targeting: booleans only (known, subscriber, membership of each targeted list/segment, targeted countries)","tags":["forms"],"parameters":[{"schema":{"type":"string","minLength":1,"maxLength":128},"in":"query","name":"aid","required":false}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"known":{"type":"boolean"},"subscriber":{"type":"boolean"},"lists":{"type":"object","additionalProperties":{"type":"boolean"}},"segments":{"type":"object","additionalProperties":{"type":"boolean"}},"countries":{"type":"object","additionalProperties":{"type":"boolean"}}},"required":["known","subscriber","lists","segments","countries"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getIngestV1FormsVisitor"}},"/ingest/v1/forms/{id}/companies":{"get":{"summary":"Company name suggestions for a form company field (names only)","tags":["forms"],"parameters":[{"schema":{"type":"string","minLength":2,"maxLength":100},"in":"query","name":"q","required":true},{"schema":{"type":"integer","minimum":1,"maximum":200},"in":"query","name":"limit","required":false,"description":"Page size; omitted returns the whole list"},{"schema":{"type":"string","pattern":"^\\d{1,9}$"},"in":"query","name":"cursor","required":false,"description":"Opaque: the `nextCursor` of the previous page"},{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetV1GoalsByGoalIdTagsResponse"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getIngestV1FormsByIdCompanies"}},"/p/f/{ref}/companies":{"get":{"summary":"Company suggestions for a hosted form","tags":["forms"],"parameters":[{"schema":{"type":"string","minLength":2,"maxLength":100},"in":"query","name":"q","required":true},{"schema":{"type":"integer","minimum":1,"maximum":200},"in":"query","name":"limit","required":false,"description":"Page size; omitted returns the whole list"},{"schema":{"type":"string","pattern":"^\\d{1,9}$"},"in":"query","name":"cursor","required":false,"description":"Opaque: the `nextCursor` of the previous page"},{"schema":{"type":"string","pattern":"^[0-9a-f-]{36}\\.[0-9a-f-]{36}$"},"in":"path","name":"ref","required":true}],"security":[],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetV1GoalsByGoalIdTagsResponse"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getPFByRefCompanies"}},"/p/l/{ref}/companies":{"get":{"summary":"Company suggestions for the form on a hosted page","tags":["landing-pages"],"parameters":[{"schema":{"type":"string","minLength":2,"maxLength":100},"in":"query","name":"q","required":true},{"schema":{"type":"integer","minimum":1,"maximum":200},"in":"query","name":"limit","required":false,"description":"Page size; omitted returns the whole list"},{"schema":{"type":"string","pattern":"^\\d{1,9}$"},"in":"query","name":"cursor","required":false,"description":"Opaque: the `nextCursor` of the previous page"},{"schema":{"type":"string","pattern":"^[0-9a-f-]{36}\\.[a-z0-9][a-z0-9-]{0,62}$"},"in":"path","name":"ref","required":true}],"security":[],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetV1GoalsByGoalIdTagsResponse"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getPLByRefCompanies"}},"/ingest/v1/site-messages":{"get":{"summary":"Site messages for this visitor: published ones, plus those a journey queued for them","tags":["forms"],"parameters":[{"schema":{"type":"string","minLength":1,"maxLength":128},"in":"query","name":"aid","required":false}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"messages":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"html":{"type":"string"},"style":{"type":"string","enum":["banner","modal","slide_in"]},"targeting":{"type":"object","additionalProperties":{}},"ctaLabel":{"nullable":true,"type":"string"},"ctaUrl":{"nullable":true,"type":"string"},"queued":{"type":"boolean"}},"required":["id","html","style","targeting","ctaLabel","ctaUrl","queued"],"additionalProperties":false}}},"required":["messages"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getIngestV1SiteMessages"}},"/ingest/v1/site-messages/{id}/shown":{"post":{"summary":"The visitor saw a site message (a queued one stops showing)","tags":["forms"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"aid":{"type":"string","minLength":1,"maxLength":128}}}}}},"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"ok":{"type":"boolean","enum":[true]}},"required":["ok"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"postIngestV1SiteMessagesByIdShown"}},"/v1/site-messages":{"get":{"tags":["forms"],"parameters":[{"schema":{"default":50,"type":"integer","minimum":1,"maximum":200},"in":"query","name":"limit","required":false},{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"query","name":"cursor","required":false}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"items":{"type":"array","items":{"$ref":"#/components/schemas/ItemsItem213"}},"nextCursor":{"nullable":true,"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},"required":["items","nextCursor"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1SiteMessages"},"post":{"summary":"Create a content-only on-site message (draft)","tags":["forms"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":200},"html":{"type":"string","maxLength":20000},"style":{"default":"banner","type":"string","enum":["banner","modal","slide_in"]},"audience":{"default":"everyone","type":"string","enum":["everyone","journey"]},"targeting":{"$ref":"#/components/schemas/Targeting"},"ctaLabel":{"type":"string","maxLength":60},"ctaUrl":{"type":"string","maxLength":2048,"format":"uri"}},"required":["name","html"]}}}},"responses":{"201":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ItemsItem213"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"postV1SiteMessages"}},"/v1/site-messages/{id}":{"get":{"tags":["forms"],"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ItemsItem213"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1SiteMessagesById"},"patch":{"summary":"Edit, publish (status) or archive","tags":["forms"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":200},"html":{"type":"string","maxLength":20000},"style":{"type":"string","enum":["banner","modal","slide_in"]},"audience":{"type":"string","enum":["everyone","journey"]},"targeting":{"$ref":"#/components/schemas/Targeting2"},"ctaLabel":{"type":"string","maxLength":60},"ctaUrl":{"type":"string","maxLength":2048,"format":"uri"},"status":{"type":"string","enum":["draft","published","archived"]}}}}}},"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ItemsItem213"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"patchV1SiteMessagesById"},"delete":{"tags":["forms"],"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"ok":{"type":"boolean","enum":[true]}},"required":["ok"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"deleteV1SiteMessagesById"}},"/v1/content-slots/pushes":{"get":{"summary":"Live content journeys pushed into individual visitors' slots","tags":["sites"],"parameters":[{"schema":{"type":"string","maxLength":63},"in":"query","name":"slotKey","required":false},{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"query","name":"profileId","required":false},{"schema":{"type":"integer","minimum":1,"maximum":200},"in":"query","name":"limit","required":false,"description":"Page size; omitted returns the whole list"},{"schema":{"type":"string","pattern":"^\\d{1,9}$"},"in":"query","name":"cursor","required":false,"description":"Opaque: the `nextCursor` of the previous page"}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"items":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"profileId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"slotKey":{"type":"string"},"html":{"type":"string"},"expiresAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"createdAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"}},"required":["id","profileId","slotKey","html","expiresAt","createdAt"],"additionalProperties":false}},"nextCursor":{"nullable":true,"type":"string"}},"required":["items","nextCursor"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1ContentSlotsPushes"}},"/v1/content-slots/pushes/{id}":{"delete":{"summary":"Withdraw pushed content (the slot falls back to its rules)","tags":["sites"],"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"ok":{"type":"boolean","enum":[true]}},"required":["ok"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"deleteV1ContentSlotsPushesById"}},"/v1/page-sites":{"get":{"tags":["landing-pages"],"parameters":[{"schema":{"type":"integer","minimum":1,"maximum":200},"in":"query","name":"limit","required":false,"description":"Page size; omitted returns the whole list"},{"schema":{"type":"string","pattern":"^\\d{1,9}$"},"in":"query","name":"cursor","required":false,"description":"Opaque: the `nextCursor` of the previous page"}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"items":{"type":"array","items":{"$ref":"#/components/schemas/ItemsItem214"}},"nextCursor":{"nullable":true,"type":"string"}},"required":["items","nextCursor"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1PageSites"},"post":{"summary":"Create a website: pages that share a header, footer and menus","tags":["landing-pages"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":120},"homePageId":{"nullable":true,"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"header":{"default":{"title":""},"type":"object","properties":{"title":{"default":"","type":"string","maxLength":120},"logoUrl":{"type":"string","maxLength":2048,"format":"uri"}}},"menu":{"$ref":"#/components/schemas/Menu2"},"footerMenu":{"$ref":"#/components/schemas/Menu2"},"footerHtml":{"default":"","type":"string","maxLength":5000},"theme":{"default":{"background":"#ffffff","text":"#111111","accent":"#1f6feb"},"type":"object","properties":{"background":{"default":"#ffffff","type":"string","pattern":"^#[0-9a-fA-F]{6}$"},"text":{"default":"#111111","type":"string","pattern":"^#[0-9a-fA-F]{6}$"},"accent":{"default":"#1f6feb","type":"string","pattern":"^#[0-9a-fA-F]{6}$"}}}},"required":["name"]}}}},"responses":{"201":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ItemsItem214"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"postV1PageSites"}},"/v1/page-sites/{id}":{"get":{"tags":["landing-pages"],"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ItemsItem214"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1PageSitesById"},"patch":{"tags":["landing-pages"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":120},"homePageId":{"nullable":true,"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"header":{"type":"object","properties":{"title":{"default":"","type":"string","maxLength":120},"logoUrl":{"type":"string","maxLength":2048,"format":"uri"}}},"menu":{"$ref":"#/components/schemas/Menu3"},"footerMenu":{"$ref":"#/components/schemas/Menu3"},"footerHtml":{"type":"string","maxLength":5000},"theme":{"type":"object","properties":{"background":{"default":"#ffffff","type":"string","pattern":"^#[0-9a-fA-F]{6}$"},"text":{"default":"#111111","type":"string","pattern":"^#[0-9a-fA-F]{6}$"},"accent":{"default":"#1f6feb","type":"string","pattern":"^#[0-9a-fA-F]{6}$"}}}}}}}},"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ItemsItem214"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"patchV1PageSitesById"},"delete":{"summary":"Delete the site (its pages stay, unassigned) and stop serving its domain","tags":["landing-pages"],"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"ok":{"type":"boolean","enum":[true]}},"required":["ok"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"deleteV1PageSitesById"}},"/v1/page-sites/{id}/domain":{"put":{"summary":"Set the custom domain; publish the returned DNS records, then verify","tags":["landing-pages"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"domain":{"type":"string","minLength":3,"maxLength":253,"pattern":"^[a-z0-9]([a-z0-9-]*[a-z0-9])?(\\.[a-z0-9]([a-z0-9-]*[a-z0-9])?)+$"}},"required":["domain"]}}}},"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ItemsItem214"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"putV1PageSitesByIdDomain"},"delete":{"tags":["landing-pages"],"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ItemsItem214"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"deleteV1PageSitesByIdDomain"}},"/v1/page-sites/{id}/domain/verify":{"post":{"summary":"Queue a DNS check (status `checking` until it lands); once verified the domain is added to the proxy routing file (TLS is issued automatically)","tags":["landing-pages"],"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ItemsItem214"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"postV1PageSitesByIdDomainVerify"}},"/v1/landing-pages/{id}/site":{"put":{"summary":"Put the page in a website (null takes it out)","tags":["landing-pages"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"siteId":{"nullable":true,"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},"required":["siteId"]}}}},"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ItemsItem75"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"putV1LandingPagesByIdSite"}},"/v1/landing-page-templates":{"get":{"summary":"Built-in page presets for `template_id`, and a link to more","tags":["landing-pages"],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"items":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","enum":["blank","lead_capture","webinar","product_launch","coming_soon","ebook","event","thank_you"]},"name":{"type":"string"},"description":{"type":"string"},"category":{"type":"string"}},"required":["id","name","description","category"],"additionalProperties":false}},"storeUrl":{"nullable":true,"type":"string"}},"required":["items","storeUrl"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1LandingPageTemplates"}},"/v1/landing-pages/{id}/content":{"get":{"summary":"The page rendered to HTML (draft by default), with its block document","tags":["landing-pages"],"parameters":[{"schema":{"default":"draft","type":"string","enum":["draft","published"]},"in":"query","name":"version","required":false},{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"version":{"type":"string","enum":["draft","published"]},"html":{"type":"string"},"doc":{}},"required":["id","version","html","doc"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1LandingPagesByIdContent"}},"/v1/landing-pages/{id}/archive":{"post":{"summary":"Hide the page from the list and stop serving it","tags":["landing-pages"],"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ItemsItem75"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"postV1LandingPagesByIdArchive"}},"/v1/landing-pages/{id}/unarchive":{"post":{"tags":["landing-pages"],"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ItemsItem75"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"postV1LandingPagesByIdUnarchive"}},"/v1/landing-pages/seo/audit":{"get":{"summary":"SEO audit of every page: score and recommendations","tags":["landing-pages"],"parameters":[{"schema":{"type":"integer","minimum":1,"maximum":200},"in":"query","name":"limit","required":false,"description":"Page size; omitted returns the whole list"},{"schema":{"type":"string","pattern":"^\\d{1,9}$"},"in":"query","name":"cursor","required":false,"description":"Opaque: the `nextCursor` of the previous page"}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"items":{"type":"array","items":{"type":"object","properties":{"pageId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"score":{"type":"integer","minimum":0,"maximum":100},"issues":{"$ref":"#/components/schemas/Issues"},"keyword":{"nullable":true,"type":"string"},"words":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"name":{"type":"string"},"slug":{"type":"string"}},"required":["pageId","score","issues","keyword","words","name","slug"],"additionalProperties":false}},"nextCursor":{"nullable":true,"type":"string"}},"required":["items","nextCursor"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1LandingPagesSeoAudit"}},"/v1/landing-pages/{id}/seo":{"get":{"summary":"SEO recommendations for one page (draft)","tags":["landing-pages"],"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetV1LandingPagesByIdSeoResponse"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1LandingPagesByIdSeo"}},"/v1/landing-pages/{id}/seo/keyword":{"put":{"summary":"Set the focus keyword the audit checks","tags":["landing-pages"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"keyword":{"nullable":true,"type":"string","maxLength":100}},"required":["keyword"]}}}},"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetV1LandingPagesByIdSeoResponse"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"putV1LandingPagesByIdSeoKeyword"}},"/v1/landing-page-clusters":{"get":{"tags":["landing-pages"],"parameters":[{"schema":{"type":"integer","minimum":1,"maximum":200},"in":"query","name":"limit","required":false,"description":"Page size; omitted returns the whole list"},{"schema":{"type":"string","pattern":"^\\d{1,9}$"},"in":"query","name":"cursor","required":false,"description":"Opaque: the `nextCursor` of the previous page"}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"items":{"type":"array","items":{"$ref":"#/components/schemas/ItemsItem215"}},"nextCursor":{"nullable":true,"type":"string"}},"required":["items","nextCursor"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1LandingPageClusters"},"post":{"summary":"Group a pillar page and its supporting pages; missing links between them are listed","tags":["landing-pages"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PostV1LandingPageClustersBody"}}}},"responses":{"201":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ItemsItem215"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"postV1LandingPageClusters"}},"/v1/landing-page-clusters/{id}":{"put":{"tags":["landing-pages"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PostV1LandingPageClustersBody"}}}},"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ItemsItem215"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"putV1LandingPageClustersById"},"get":{"tags":["landing-pages"],"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ItemsItem215"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1LandingPageClustersById"},"delete":{"tags":["landing-pages"],"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"ok":{"type":"boolean","enum":[true]}},"required":["ok"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"deleteV1LandingPageClustersById"}},"/p/sitemap/{ws}":{"get":{"summary":"sitemap.xml for hosted pages (one site with `site`)","tags":["landing-pages"],"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"query","name":"site","required":false},{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"ws","required":true}],"security":[],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"string"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getPSitemapByWs"}},"/p/robots/{ws}":{"get":{"summary":"robots.txt for a site on its custom domain","tags":["landing-pages"],"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"query","name":"site","required":false},{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"ws","required":true}],"security":[],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"string"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getPRobotsByWs"}},"/v1/outbound/sequences/{id}/enroll-accounts":{"post":{"summary":"ABM: enroll the contacts of these companies, grouped per account (per-account cap and stop rule from the sequence settings)","tags":["outbound"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"companyIds":{"$ref":"#/components/schemas/Ids"},"ownerUserId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},"required":["companyIds"]}}}},"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"enrolled":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"skipped":{"$ref":"#/components/schemas/Skipped"},"warnings":{"$ref":"#/components/schemas/Warnings"},"accounts":{"type":"array","items":{"type":"object","properties":{"accountId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"enrolled":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"capped":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["accountId","enrolled","capped"],"additionalProperties":false}}},"required":["enrolled","skipped","warnings","accounts"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"postV1OutboundSequencesByIdEnrollAccounts"}},"/v1/outbound/sequences/{id}/export-leads":{"post":{"summary":"CSV of the sequence's leads with their fields, variables and per-lead stats, built in the background; optional email when ready","tags":["outbound"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"notifyEmail":{"type":"string","format":"email","pattern":"^(?:[A-Za-z0-9_'+\\-]+\\.)*[A-Za-z0-9_'+\\-]*[A-Za-z0-9_+-]@(?:[A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$"}}}}}},"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"202":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ItemsItem14"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"postV1OutboundSequencesByIdExportLeads"}},"/v1/outbound/task-types":{"get":{"tags":["outbound"],"parameters":[{"schema":{"type":"integer","minimum":1,"maximum":200},"in":"query","name":"limit","required":false,"description":"Page size; omitted returns the whole list"},{"schema":{"type":"string","pattern":"^\\d{1,9}$"},"in":"query","name":"cursor","required":false,"description":"Opaque: the `nextCursor` of the previous page"}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"items":{"type":"array","items":{"$ref":"#/components/schemas/ItemsItem216"}},"nextCursor":{"nullable":true,"type":"string"}},"required":["items","nextCursor"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1OutboundTaskTypes"},"post":{"tags":["outbound"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PostV1OutboundTaskTypesBody"}}}},"responses":{"201":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ItemsItem216"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"postV1OutboundTaskTypes"}},"/v1/outbound/task-types/{id}":{"put":{"tags":["outbound"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PostV1OutboundTaskTypesBody"}}}},"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ItemsItem216"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"putV1OutboundTaskTypesById"},"delete":{"tags":["outbound"],"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"ok":{"type":"boolean","enum":[true]}},"required":["ok"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"deleteV1OutboundTaskTypesById"}},"/v1/outbound/tasks/bulk":{"post":{"summary":"Assign, snooze, complete or skip many tasks at once","tags":["outbound"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"ids":{"$ref":"#/components/schemas/Ids"},"action":{"oneOf":[{"type":"object","properties":{"op":{"type":"string","enum":["assign"]},"assigneeUserId":{"nullable":true,"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},"required":["op","assigneeUserId"]},{"type":"object","properties":{"op":{"type":"string","enum":["snooze"]},"until":{"type":"string","format":"date-time"}},"required":["op","until"]},{"type":"object","properties":{"op":{"type":"string","enum":["complete"]},"outcome":{"type":"string","minLength":1,"maxLength":40}},"required":["op"]},{"type":"object","properties":{"op":{"type":"string","enum":["skip"]}},"required":["op"]}]}},"required":["ids","action"]}}}},"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"updated":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"failed":{"$ref":"#/components/schemas/Failed2"}},"required":["updated","failed"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"postV1OutboundTasksBulk"}},"/v1/outbound/voice-clips":{"get":{"tags":["outbound"],"parameters":[{"schema":{"type":"integer","minimum":1,"maximum":200},"in":"query","name":"limit","required":false,"description":"Page size; omitted returns the whole list"},{"schema":{"type":"string","pattern":"^\\d{1,9}$"},"in":"query","name":"cursor","required":false,"description":"Opaque: the `nextCursor` of the previous page"}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"items":{"type":"array","items":{"$ref":"#/components/schemas/ItemsItem217"}},"nextCursor":{"nullable":true,"type":"string"}},"required":["items","nextCursor"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1OutboundVoiceClips"},"post":{"summary":"Upload an audio clip (multipart field \"file\"): MP3, M4A, OGG, WAV or WebM up to 5 MB","tags":["outbound"],"responses":{"201":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ItemsItem217"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"postV1OutboundVoiceClips"}},"/v1/outbound/voice-clips/{id}":{"delete":{"tags":["outbound"],"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"ok":{"type":"boolean","enum":[true]}},"required":["ok"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"deleteV1OutboundVoiceClipsById"}},"/v1/outbound/telephony":{"get":{"summary":"The connected Twilio Voice account (the auth token is never returned)","tags":["outbound"],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetV1OutboundTelephonyResponse"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1OutboundTelephony"},"put":{"tags":["outbound"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"accountSid":{"type":"string","maxLength":64},"authToken":{"type":"string","minLength":16,"maxLength":128},"fromNumber":{"type":"string","maxLength":20}},"required":["accountSid","authToken","fromNumber"]}}}},"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetV1OutboundTelephonyResponse"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"putV1OutboundTelephony"},"delete":{"tags":["outbound"],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"ok":{"type":"boolean","enum":[true]}},"required":["ok"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"deleteV1OutboundTelephony"}},"/v1/outbound/telephony/my-phone":{"get":{"summary":"Your own phone for click-to-call (Twilio rings it first)","tags":["outbound"],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"phone":{"nullable":true,"type":"string","maxLength":20}},"required":["phone"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1OutboundTelephonyMyPhone"},"put":{"tags":["outbound"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"phone":{"nullable":true,"type":"string","maxLength":20}},"required":["phone"]}}}},"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"phone":{"nullable":true,"type":"string","maxLength":20}},"required":["phone"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"putV1OutboundTelephonyMyPhone"}},"/v1/outbound/tasks/{id}/call":{"post":{"summary":"Click-to-call (or voicemail drop) from a call task through the workspace's Twilio; the call is logged on the task when Twilio reports back","tags":["outbound"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"mode":{"default":"call","type":"string","enum":["call","voicemail"]},"agentPhone":{"type":"string","maxLength":20}}}}}},"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"callSid":{"type":"string"}},"required":["callSid"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"postV1OutboundTasksByIdCall"}},"/v1/outbound/inbox-routing":{"get":{"tags":["outbound"],"parameters":[{"schema":{"type":"integer","minimum":1,"maximum":200},"in":"query","name":"limit","required":false,"description":"Page size; omitted returns the whole list"},{"schema":{"type":"string","pattern":"^\\d{1,9}$"},"in":"query","name":"cursor","required":false,"description":"Opaque: the `nextCursor` of the previous page"}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"items":{"type":"array","items":{"$ref":"#/components/schemas/ItemsItem218"}},"nextCursor":{"nullable":true,"type":"string"}},"required":["items","nextCursor"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1OutboundInboxRouting"}},"/v1/outbound/inbox-routing/{channel}":{"put":{"summary":"Default inbox and default assignee for new replies on a channel","tags":["outbound"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"connectionId":{"nullable":true,"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"assigneeUserId":{"nullable":true,"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},"required":["connectionId","assigneeUserId"]}}}},"parameters":[{"schema":{"type":"string","enum":["email","sms","whatsapp","linkedin"]},"in":"path","name":"channel","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ItemsItem218"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"putV1OutboundInboxRoutingByChannel"}},"/v1/outbound/proposals":{"get":{"summary":"Messages proposed by AI agents, waiting for a person","tags":["outbound"],"parameters":[{"schema":{"type":"string","enum":["pending","sent","blocked","rejected"]},"in":"query","name":"status","required":false},{"schema":{"type":"string","maxLength":60},"in":"query","name":"source","required":false},{"schema":{"default":50,"type":"integer","minimum":1,"maximum":200},"in":"query","name":"limit","required":false},{"schema":{"type":"string"},"in":"query","name":"cursor","required":false}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"items":{"type":"array","items":{"$ref":"#/components/schemas/ItemsItem219"}},"nextCursor":{"nullable":true,"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},"required":["items","nextCursor"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1OutboundProposals"}},"/v1/outbound/proposals/{id}/decide":{"post":{"summary":"Approve (optionally edited) or reject; approving sends through the normal path, consent and suppression rechecked","tags":["outbound"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"action":{"type":"string","enum":["approve","reject"]},"subject":{"type":"string","maxLength":300},"text":{"type":"string","minLength":1,"maxLength":20000}},"required":["action"]}}}},"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ItemsItem219"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"postV1OutboundProposalsByIdDecide"}},"/webhooks/outbound-voice/{workspaceId}/{taskId}":{"post":{"summary":"Twilio Voice status / dial / answering-machine callback: plays the voicemail clip or bridges the rep, and logs the call on the task","tags":["outbound"],"parameters":[{"schema":{"type":"string","enum":["dial","status","amd"]},"in":"query","name":"kind","required":true},{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"query","name":"rep","required":false},{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"workspaceId","required":true},{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"taskId","required":true}],"security":[],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"string"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"postWebhooksOutboundVoiceByWorkspaceIdByTaskId"}},"/v1/calendar-feeds":{"get":{"tags":["outbound"],"parameters":[{"schema":{"type":"integer","minimum":1,"maximum":200},"in":"query","name":"limit","required":false,"description":"Page size; omitted returns the whole list"},{"schema":{"type":"string","pattern":"^\\d{1,9}$"},"in":"query","name":"cursor","required":false,"description":"Opaque: the `nextCursor` of the previous page"}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"items":{"type":"array","items":{"$ref":"#/components/schemas/ItemsItem220"}},"nextCursor":{"nullable":true,"type":"string"}},"required":["items","nextCursor"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1CalendarFeeds"},"post":{"summary":"Create a feed; the response holds the only copy of its subscription URL","tags":["outbound"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":80},"taskScope":{"default":"mine","type":"string","enum":["mine","all"]},"includeTasks":{"default":true,"type":"boolean"},"includeCampaigns":{"default":true,"type":"boolean"}},"required":["name"]}}}},"responses":{"201":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PostV1CalendarFeedsResponse"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"postV1CalendarFeeds"}},"/v1/calendar-feeds/{id}":{"patch":{"tags":["outbound"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":80},"taskScope":{"type":"string","enum":["mine","all"]},"includeTasks":{"type":"boolean"},"includeCampaigns":{"type":"boolean"}}}}}},"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ItemsItem220"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"patchV1CalendarFeedsById"},"delete":{"tags":["outbound"],"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"ok":{"type":"boolean","enum":[true]}},"required":["ok"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"deleteV1CalendarFeedsById"}},"/v1/calendar-feeds/{id}/rotate":{"post":{"summary":"New subscription URL; the old one stops working","tags":["outbound"],"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PostV1CalendarFeedsResponse"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"postV1CalendarFeedsByIdRotate"}},"/ical/{ws}/{file}":{"get":{"summary":"The ICS feed itself (token in the URL). Titles and times only, never message bodies","tags":["outbound"],"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"ws","required":true},{"schema":{"type":"string","pattern":"^[A-Za-z0-9_-]{20,64}\\.ics$"},"in":"path","name":"file","required":true}],"security":[],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"string"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getIcalByWsByFile"}},"/v1/outbound/booking-pages":{"get":{"tags":["outbound"],"parameters":[{"schema":{"type":"integer","minimum":1,"maximum":200},"in":"query","name":"limit","required":false,"description":"Page size; omitted returns the whole list"},{"schema":{"type":"string","pattern":"^\\d{1,9}$"},"in":"query","name":"cursor","required":false,"description":"Opaque: the `nextCursor` of the previous page"}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"items":{"type":"array","items":{"$ref":"#/components/schemas/ItemsItem221"}},"nextCursor":{"nullable":true,"type":"string"}},"required":["items","nextCursor"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1OutboundBookingPages"},"post":{"tags":["outbound"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PostV1OutboundBookingPagesBody"}}}},"responses":{"201":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ItemsItem221"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"postV1OutboundBookingPages"}},"/v1/outbound/booking-pages/{id}":{"put":{"tags":["outbound"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PostV1OutboundBookingPagesBody"}}}},"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ItemsItem221"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"putV1OutboundBookingPagesById"},"delete":{"tags":["outbound"],"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"ok":{"type":"boolean","enum":[true]}},"required":["ok"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"deleteV1OutboundBookingPagesById"}},"/v1/outbound/booking-pages/{id}/bookings":{"get":{"tags":["outbound"],"parameters":[{"schema":{"type":"integer","minimum":1,"maximum":200},"in":"query","name":"limit","required":false,"description":"Page size; omitted returns the whole list"},{"schema":{"type":"string","pattern":"^\\d{1,9}$"},"in":"query","name":"cursor","required":false,"description":"Opaque: the `nextCursor` of the previous page"},{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"items":{"type":"array","items":{"$ref":"#/components/schemas/ItemsItem222"}},"nextCursor":{"nullable":true,"type":"string"}},"required":["items","nextCursor"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1OutboundBookingPagesByIdBookings"}},"/v1/outbound/bookings/{id}/cancel":{"post":{"tags":["outbound"],"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ItemsItem222"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"postV1OutboundBookingsByIdCancel"}},"/v1/public/booking/{ws}/{slug}/slots":{"get":{"summary":"Open start times of a booking page (JSON)","tags":["outbound"],"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"ws","required":true},{"schema":{"type":"string","pattern":"^[a-z0-9-]{3,60}$"},"in":"path","name":"slug","required":true}],"security":[],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"timezone":{"type":"string"},"durationMin":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"slots":{"type":"array","items":{"type":"string"}}},"required":["timezone","durationMin","slots"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1PublicBookingByWsBySlugSlots"}},"/book/{ws}/{slug}":{"get":{"summary":"Hosted booking page","tags":["outbound"],"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"ws","required":true},{"schema":{"type":"string","pattern":"^[a-z0-9-]{3,60}$"},"in":"path","name":"slug","required":true}],"security":[],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"string"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getBookByWsBySlug"},"post":{"summary":"Book a time on a booking page (consent is recorded only when the visitor ticks the box)","tags":["outbound"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","additionalProperties":{}}}}},"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"ws","required":true},{"schema":{"type":"string","pattern":"^[a-z0-9-]{3,60}$"},"in":"path","name":"slug","required":true}],"security":[],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"string"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"postBookByWsBySlug"}},"/auth/atlas/start":{"get":{"summary":"Sign in (or sign up with screen_hint=signup) at Atlas: authorization code + PKCE + nonce","tags":["auth"],"parameters":[{"schema":{"type":"string","maxLength":500},"in":"query","name":"return_to","required":false},{"schema":{"type":"string","enum":["signup","signin"]},"in":"query","name":"screen_hint","required":false},{"schema":{"type":"string","maxLength":100},"in":"query","name":"ref","required":false},{"schema":{"type":"string","maxLength":200},"in":"query","name":"invite","required":false},{"schema":{"type":"string","maxLength":254,"format":"email","pattern":"^(?:[A-Za-z0-9_'+\\-]+\\.)*[A-Za-z0-9_'+\\-]*[A-Za-z0-9_+-]@(?:[A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$"},"in":"query","name":"login_hint","required":false}],"security":[],"responses":{"302":{"description":"Default Response","content":{"application/json":{"schema":{}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getAuthAtlasStart"}},"/auth/atlas/callback":{"get":{"summary":"Atlas redirect target: verifies the ID token, finds or creates the user, opens a session bound to the Atlas sid","tags":["auth"],"parameters":[{"schema":{"type":"string","maxLength":2000},"in":"query","name":"code","required":false},{"schema":{"type":"string","maxLength":200},"in":"query","name":"state","required":false},{"schema":{"type":"string","maxLength":200},"in":"query","name":"error","required":false}],"security":[],"responses":{"302":{"description":"Default Response","content":{"application/json":{"schema":{}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getAuthAtlasCallback"}},"/auth/atlas/backchannel-logout":{"post":{"summary":"OIDC back-channel logout from Atlas: ends every session opened from that Atlas session","tags":["auth"],"security":[],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"postAuthAtlasBackchannelLogout"}},"/auth/atlas/webhooks":{"post":{"summary":"Atlas webhooks (user.updated/deleted/banned, session.revoked/expired): signature-verified over the raw body","tags":["auth"],"security":[],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"postAuthAtlasWebhooks"}},"/auth/atlas/before-user-create":{"post":{"summary":"Atlas before_user_create hook: names the Hermeticor user id (external_id), or denies while sign-up is closed","tags":["auth"],"security":[],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"postAuthAtlasBeforeUserCreate"}},"/v1/workspaces/current/reset":{"post":{"summary":"Owner only: delete the chosen data (contacts, events, messages, campaigns, journeys) and keep settings, members, keys, connections, templates and suppressions. Audited.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"confirmName":{"type":"string","minLength":1,"maxLength":120},"datasets":{"minItems":1,"maxItems":5,"type":"array","items":{"type":"string","enum":["contacts","events","messages","campaigns","journeys"]}}},"required":["confirmName","datasets"]}}}},"security":[{"session":[]}],"responses":{"202":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PostV1WorkspacesCurrentResetResponse"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"postV1WorkspacesCurrentReset"}},"/v1/workspaces/current/resets":{"get":{"parameters":[{"schema":{"type":"integer","minimum":1,"maximum":200},"in":"query","name":"limit","required":false,"description":"Page size; omitted returns the whole list"},{"schema":{"type":"string","pattern":"^\\d{1,9}$"},"in":"query","name":"cursor","required":false,"description":"Opaque: the `nextCursor` of the previous page"}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"items":{"type":"array","items":{"$ref":"#/components/schemas/PostV1WorkspacesCurrentResetResponse"}},"nextCursor":{"nullable":true,"type":"string"}},"required":["items","nextCursor"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1WorkspacesCurrentResets"}},"/v1/workspaces/current/resets/{id}":{"get":{"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PostV1WorkspacesCurrentResetResponse"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1WorkspacesCurrentResetsById"}},"/v1/user-groups/{id}/access":{"get":{"tags":["roles"],"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetV1UserGroupsByIdAccessResponse"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1UserGroupsByIdAccess"},"put":{"summary":"Lists the group's members may reach (null = the group does not limit lists) and caps such as sends per day","tags":["roles"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"listIds":{"$ref":"#/components/schemas/ListIds"},"limits":{"type":"object","additionalProperties":{"type":"integer","minimum":0,"maximum":100000000}}},"required":["listIds","limits"]}}}},"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetV1UserGroupsByIdAccessResponse"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"putV1UserGroupsByIdAccess"}},"/v1/postal-address-groups":{"get":{"summary":"Address id -> user groups that may use it (absent = everyone)","responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"map":{"type":"object","additionalProperties":{"$ref":"#/components/schemas/Conflicts"}}},"required":["map"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1PostalAddressGroups"}},"/v1/postal-addresses/{id}/groups":{"put":{"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"groupIds":{"$ref":"#/components/schemas/VariantIds"}},"required":["groupIds"]}}}},"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"groupIds":{"$ref":"#/components/schemas/Conflicts"}},"required":["groupIds"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"putV1PostalAddressesByIdGroups"}},"/v1/postal-addresses/usable":{"get":{"summary":"Ids of the saved addresses the caller may pick (open ones, plus those of the caller's user groups)","responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"ids":{"$ref":"#/components/schemas/Conflicts"}},"required":["ids"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1PostalAddressesUsable"}},"/v1/agency/clients/{workspaceId}/handoff":{"post":{"summary":"Single-use login link into a client workspace (valid 5 minutes, audited in the client workspace)","tags":["agency"],"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"workspaceId","required":true}],"security":[{"session":[]}],"responses":{"201":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PostV1AgencyClientsByWorkspaceIdHandoffResponse"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"postV1AgencyClientsByWorkspaceIdHandoff"}},"/v1/agency/transfer":{"post":{"summary":"Copy a segment, list or form from the current workspace into another workspace of the same agency (templates and journeys: /v1/agency/copy-template, /v1/agency/copy-workflow)","tags":["agency"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"kind":{"type":"string","enum":["segment","list","form"]},"sourceId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"targetWorkspaceId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},"required":["kind","sourceId","targetWorkspaceId"]}}}},"security":[{"session":[]}],"responses":{"201":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"kind":{"type":"string","enum":["segment","list","form"]},"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"name":{"type":"string"},"notes":{"type":"array","items":{"type":"string"}}},"required":["kind","id","name","notes"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"postV1AgencyTransfer"}},"/v1/agency/clients/{workspaceId}/snippet":{"get":{"summary":"The client's website snippet (site key) and the state of its integrations","tags":["agency"],"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"workspaceId","required":true}],"security":[{"session":[]}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"workspaceId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"siteKeyPrefix":{"nullable":true,"type":"string"},"apiBase":{"type":"string"},"snippet":{"type":"string"},"integrations":{"type":"array","items":{"type":"object","properties":{"kind":{"type":"string"},"label":{"type":"string"},"status":{"type":"string"}},"required":["kind","label","status"],"additionalProperties":false}}},"required":["workspaceId","siteKeyPrefix","apiBase","snippet","integrations"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1AgencyClientsByWorkspaceIdSnippet"}},"/v1/operator/teams":{"get":{"summary":"Every workspace on this instance with its organization, members and status","tags":["operator"],"parameters":[{"schema":{"default":50,"type":"integer","minimum":1,"maximum":200},"in":"query","name":"limit","required":false},{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"query","name":"cursor","required":false},{"schema":{"type":"string","maxLength":120},"in":"query","name":"q","required":false}],"security":[{"session":[]}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"items":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"name":{"type":"string"},"organizationId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"organizationName":{"type":"string"},"organizationKind":{"type":"string"},"planId":{"nullable":true,"type":"string"},"members":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"owners":{"type":"array","items":{"type":"string"}},"status":{"type":"string","enum":["active","paused","pending_deletion"]},"createdAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"}},"required":["id","name","organizationId","organizationName","organizationKind","planId","members","owners","status","createdAt"],"additionalProperties":false}},"nextCursor":{"nullable":true,"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},"required":["items","nextCursor"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1OperatorTeams"}},"/v1/operator/stats":{"get":{"summary":"Platform analytics: accounts, sign-ups, sessions, queue health","tags":["operator"],"security":[{"session":[]}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"users":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"verifiedUsers":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"workspaces":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"organizations":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"agencies":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"signups7d":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"signups30d":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"activeSessions":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"signupsByDay":{"$ref":"#/components/schemas/Points"},"sendJobs24h":{"nullable":true,"type":"object","additionalProperties":{"type":"number"}},"outboxPending":{"nullable":true,"type":"number"}},"required":["users","verifiedUsers","workspaces","organizations","agencies","signups7d","signups30d","activeSessions","signupsByDay","sendJobs24h","outboxPending"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1OperatorStats"}},"/v1/operator/settings":{"get":{"tags":["operator"],"security":[{"session":[]}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetV1OperatorSettingsResponse"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1OperatorSettings"},"patch":{"summary":"Instance settings: sign-up open / closed (the Atlas sign-up hook enforces it), a banner for every user","tags":["operator"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"signupMode":{"type":"string","enum":["open","closed"]},"banner":{"nullable":true,"type":"string","maxLength":300}}}}}},"security":[{"session":[]}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetV1OperatorSettingsResponse"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"patchV1OperatorSettings"}},"/v1/info/ip-addresses":{"get":{"summary":"Egress IP addresses to allowlist for webhooks and connectors; compare syncToken to detect changes","tags":["info"],"security":[],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"syncToken":{"type":"string"},"ipv4":{"type":"array","items":{"type":"string"}},"ipv6":{"type":"array","items":{"type":"string"}},"usedFor":{"type":"array","items":{"type":"string"}},"updatedAt":{"nullable":true,"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"}},"required":["syncToken","ipv4","ipv6","usedFor","updatedAt"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1InfoIpAddresses"}},"/v1/notifications":{"get":{"summary":"Your in-app notifications in this workspace, newest first, with the unread count","tags":["notifications"],"parameters":[{"schema":{"default":20,"type":"integer","minimum":1,"maximum":100},"in":"query","name":"limit","required":false},{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"query","name":"cursor","required":false},{"schema":{"type":"string","enum":["true","false"]},"in":"query","name":"unread","required":false}],"security":[{"session":[]}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"items":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"source":{"type":"string"},"title":{"type":"string"},"body":{"nullable":true,"type":"string"},"link":{"nullable":true,"type":"string"},"data":{"type":"object","additionalProperties":{}},"readAt":{"nullable":true,"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"createdAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"}},"required":["id","source","title","body","link","data","readAt","createdAt"],"additionalProperties":false}},"nextCursor":{"nullable":true,"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"unread":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["items","nextCursor","unread"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1Notifications"}},"/v1/notifications/read":{"post":{"tags":["notifications"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PostV1CampaignsBulkDeleteBody"}}}},"security":[{"session":[]}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"ok":{"type":"boolean","enum":[true]}},"required":["ok"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"postV1NotificationsRead"}},"/v1/notifications/read-all":{"post":{"tags":["notifications"],"security":[{"session":[]}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"marked":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["marked"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"postV1NotificationsReadAll"}},"/mcp":{"post":{"summary":"Hosted MCP server (JSON-RPC over HTTP). Authenticate with a secret key; tools the key's scopes do not cover are hidden and refused.","tags":["mcp"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/PostMcpBodyVariant"},{"maxItems":20,"type":"array","items":{"$ref":"#/components/schemas/PostMcpBodyVariant"}}]}}}},"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"postMcp"},"get":{"summary":"Not offered: the hosted MCP server is stateless (POST only).","tags":["mcp"],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getMcp"},"delete":{"summary":"Not offered: the hosted MCP server is stateless (POST only).","tags":["mcp"],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"deleteMcp"}},"/v1/embeds/editors":{"post":{"summary":"Signed, expiring link that embeds the template editor, the journey editor or the deliveries table in another site (only the given origin may frame it)","tags":["embeds"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"kind":{"type":"string","enum":["template_editor","journey_editor","deliveries"]},"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"origin":{"type":"string","maxLength":200,"format":"uri"},"mode":{"default":"edit","type":"string","enum":["view","edit"]},"ttlMinutes":{"default":60,"type":"integer","minimum":1,"maximum":1440}},"required":["kind","origin"]}}}},"responses":{"201":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PostV1AgencyClientsByWorkspaceIdHandoffResponse"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"postV1EmbedsEditors"}},"/v1/embed-api/frame-policy":{"get":{"summary":"Internal: frame-ancestors for the web embed page, from the token in x-embed-token","tags":["embeds"],"security":[],"responses":{"204":{"description":"Default Response","content":{"application/json":{"schema":{"type":"string","nullable":true,"enum":[null]}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1EmbedApiFramePolicy"}},"/v1/embed-api/{token}/template":{"get":{"tags":["embeds"],"parameters":[{"schema":{"type":"string","minLength":20,"maxLength":1200},"in":"path","name":"token","required":true}],"security":[],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"workspaceId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"channel":{"type":"string","enum":["email","sms","whatsapp","push","postcard"]},"name":{"type":"string"},"kind":{"type":"string","enum":["blocks","html","text","sms"]},"folder":{"nullable":true,"type":"string"},"tags":{"type":"array","items":{"type":"string"}},"currentVersionId":{"nullable":true,"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"archived":{"type":"boolean"},"folderId":{"nullable":true,"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"brandKitId":{"nullable":true,"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"isDefault":{"default":false,"type":"boolean"},"topicId":{"default":null,"nullable":true,"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"createdBy":{"default":null,"nullable":true,"type":"string"},"createdAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"updatedAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"currentVersion":{"$ref":"#/components/schemas/CurrentVersion"},"editable":{"type":"boolean"}},"required":["id","workspaceId","channel","name","kind","folder","tags","currentVersionId","archived","folderId","brandKitId","isDefault","topicId","createdBy","createdAt","updatedAt","currentVersion","editable"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1EmbedApiByTokenTemplate"}},"/v1/embed-api/{token}/template/versions":{"post":{"tags":["embeds"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Version"}}}},"parameters":[{"schema":{"type":"string","minLength":20,"maxLength":1200},"in":"path","name":"token","required":true}],"security":[],"responses":{"201":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ItemsItem31"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"postV1EmbedApiByTokenTemplateVersions"},"get":{"tags":["embeds"],"parameters":[{"schema":{"default":50,"type":"integer","minimum":1,"maximum":200},"in":"query","name":"limit","required":false},{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"query","name":"cursor","required":false},{"schema":{"type":"string","minLength":20,"maxLength":1200},"in":"path","name":"token","required":true}],"security":[],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetV1TemplatesByIdVersionsResponse"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1EmbedApiByTokenTemplateVersions"}},"/v1/embed-api/{token}/journey":{"get":{"tags":["embeds"],"parameters":[{"schema":{"type":"string","minLength":20,"maxLength":1200},"in":"path","name":"token","required":true}],"security":[],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"name":{"type":"string"},"purpose":{"type":"string","enum":["marketing","prospecting","transactional","operational"]},"mode":{"type":"string","enum":["journey","sequence"]},"status":{"type":"string","enum":["draft","live","paused","archived"]},"publishedVersionId":{"nullable":true,"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"folder":{"nullable":true,"type":"string"},"tags":{"type":"array","items":{"type":"string"}},"color":{"nullable":true,"type":"string"},"draftGraph":{},"draftTriggers":{},"draftSettings":{},"ab":{"$ref":"#/components/schemas/Ab"},"createdAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"updatedAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"editable":{"type":"boolean"}},"required":["id","name","purpose","mode","status","publishedVersionId","folder","tags","draftGraph","draftTriggers","draftSettings","createdAt","updatedAt","editable"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1EmbedApiByTokenJourney"},"put":{"summary":"Save the journey draft (publish with POST .../journey/publish)","tags":["embeds"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"definition":{"$ref":"#/components/schemas/Definition4"}},"required":["definition"]}}}},"parameters":[{"schema":{"type":"string","minLength":20,"maxLength":1200},"in":"path","name":"token","required":true}],"security":[],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ItemsItem62"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"putV1EmbedApiByTokenJourney"}},"/v1/embed-api/{token}/deliveries":{"get":{"tags":["embeds"],"parameters":[{"schema":{"default":50,"type":"integer","minimum":1,"maximum":200},"in":"query","name":"limit","required":false},{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"query","name":"cursor","required":false},{"schema":{"type":"string","minLength":20,"maxLength":1200},"in":"path","name":"token","required":true}],"security":[],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"items":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"channel":{"type":"string"},"status":{"type":"string"},"to":{"nullable":true,"type":"string"},"subject":{"nullable":true,"type":"string"},"createdAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"}},"required":["id","channel","status","to","subject","createdAt"],"additionalProperties":false}},"nextCursor":{"nullable":true,"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},"required":["items","nextCursor"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1EmbedApiByTokenDeliveries"}},"/v1/embed-api/{token}/sections":{"get":{"summary":"Saved sections to insert a copy of","tags":["embeds"],"parameters":[{"schema":{"default":50,"type":"integer","minimum":1,"maximum":200},"in":"query","name":"limit","required":false},{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"query","name":"cursor","required":false},{"schema":{"type":"string","minLength":20,"maxLength":1200},"in":"path","name":"token","required":true}],"security":[],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetV1SavedSectionsResponse"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1EmbedApiByTokenSections"}},"/v1/embed-api/{token}/seed-lists":{"get":{"tags":["embeds"],"parameters":[{"schema":{"type":"integer","minimum":1,"maximum":200},"in":"query","name":"limit","required":false,"description":"Page size; omitted returns the whole list"},{"schema":{"type":"string","pattern":"^\\d{1,9}$"},"in":"query","name":"cursor","required":false,"description":"Opaque: the `nextCursor` of the previous page"},{"schema":{"type":"string","minLength":20,"maxLength":1200},"in":"path","name":"token","required":true}],"security":[],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"items":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"count":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["id","name","count"],"additionalProperties":false}},"nextCursor":{"nullable":true,"type":"string"}},"required":["items","nextCursor"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1EmbedApiByTokenSeedLists"}},"/v1/embed-api/{token}/template/test-send":{"post":{"summary":"Send the template's current version to one of the workspace's seed lists (normal routing, consent and suppression apply)","tags":["embeds"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"seedListId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"purpose":{"default":"marketing","type":"string","enum":["marketing","prospecting","transactional","operational"]}},"required":["seedListId"]}}}},"parameters":[{"schema":{"type":"string","minLength":20,"maxLength":1200},"in":"path","name":"token","required":true}],"security":[],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PostV1TemplatesByIdTestSendResponse"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"postV1EmbedApiByTokenTemplateTestSend"}},"/v1/embed-api/{token}/ai":{"get":{"tags":["embeds"],"parameters":[{"schema":{"type":"string","minLength":20,"maxLength":1200},"in":"path","name":"token","required":true}],"security":[],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"enabled":{"type":"boolean"},"configured":{"type":"boolean"}},"required":["enabled","configured"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1EmbedApiByTokenAi"}},"/v1/embed-api/{token}/ai/subjects":{"post":{"tags":["embeds"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PostV1AiSubjectSuggestionsBody"}}}},"parameters":[{"schema":{"type":"string","minLength":20,"maxLength":1200},"in":"path","name":"token","required":true}],"security":[],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PostV1AiSubjectSuggestionsResponse"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"postV1EmbedApiByTokenAiSubjects"}},"/v1/embed-api/{token}/ai/rewrite":{"post":{"tags":["embeds"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"text":{"type":"string","minLength":1,"maxLength":20000},"tone":{"type":"string","minLength":1,"maxLength":100}},"required":["text","tone"]}}}},"parameters":[{"schema":{"type":"string","minLength":20,"maxLength":1200},"in":"path","name":"token","required":true}],"security":[],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PostV1AiRewriteToneResponse"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"postV1EmbedApiByTokenAiRewrite"}},"/v1/embed-api/{token}/ai/translate":{"post":{"tags":["embeds"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PostV1AiTranslateBody"}}}},"parameters":[{"schema":{"type":"string","minLength":20,"maxLength":1200},"in":"path","name":"token","required":true}],"security":[],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PostV1AiRewriteToneResponse"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"postV1EmbedApiByTokenAiTranslate"}},"/v1/embed-api/{token}/ai/brief":{"post":{"tags":["embeds"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PostV1AiBodyFromBriefBody"}}}},"parameters":[{"schema":{"type":"string","minLength":20,"maxLength":1200},"in":"path","name":"token","required":true}],"security":[],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PostV1AiRewriteToneResponse"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"postV1EmbedApiByTokenAiBrief"}},"/v1/embed-api/{token}/journey/simulate":{"post":{"summary":"Dry-run the journey (or an unsaved definition) for sample profiles; nothing is sent or stored","tags":["embeds"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PostV1WorkflowsByIdSimulateBody"}}}},"parameters":[{"schema":{"type":"string","minLength":20,"maxLength":1200},"in":"path","name":"token","required":true}],"security":[],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PostV1WorkflowsByIdSimulateResponse"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"postV1EmbedApiByTokenJourneySimulate"}},"/v1/embed-api/{token}/journey/publish":{"post":{"summary":"Publish the saved draft as a new version; body.inFlight chooses stay / migrate / exit for enrollments already inside","tags":["embeds"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PostV1WorkflowsByIdPublishBody"}}}},"parameters":[{"schema":{"type":"string","minLength":20,"maxLength":1200},"in":"path","name":"token","required":true}],"security":[],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PostV1WorkflowsByIdPublishResponse"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"postV1EmbedApiByTokenJourneyPublish"}},"/v1/campaigns/{id}/audiences":{"get":{"tags":["campaigns"],"parameters":[{"schema":{"type":"integer","minimum":1,"maximum":200},"in":"query","name":"limit","required":false,"description":"Page size; omitted returns the whole list"},{"schema":{"type":"string","pattern":"^\\d{1,9}$"},"in":"query","name":"cursor","required":false,"description":"Opaque: the `nextCursor` of the previous page"},{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"items":{"type":"array","items":{"$ref":"#/components/schemas/ItemsItem223"}},"nextCursor":{"nullable":true,"type":"string"}},"required":["items","nextCursor"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1CampaignsByIdAudiences"},"post":{"tags":["campaigns"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":120},"priority":{"default":0,"type":"integer","minimum":0,"maximum":1000},"definition":{"$ref":"#/components/schemas/Audience2"},"messageIds":{"$ref":"#/components/schemas/ListIds4"}},"required":["name","definition"]}}}},"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"201":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ItemsItem223"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"postV1CampaignsByIdAudiences"}},"/v1/campaigns/{id}/audiences/{audienceId}":{"get":{"tags":["campaigns"],"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true},{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"audienceId","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ItemsItem223"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1CampaignsByIdAudiencesByAudienceId"},"patch":{"tags":["campaigns"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":120},"priority":{"type":"integer","minimum":0,"maximum":1000},"definition":{"$ref":"#/components/schemas/Audience2"},"messageIds":{"$ref":"#/components/schemas/SegmentIds"}}}}}},"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true},{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"audienceId","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ItemsItem223"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"patchV1CampaignsByIdAudiencesByAudienceId"},"delete":{"tags":["campaigns"],"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true},{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"audienceId","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"ok":{"type":"boolean","enum":[true]}},"required":["ok"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"deleteV1CampaignsByIdAudiencesByAudienceId"}},"/v1/campaigns/{id}/audiences/{audienceId}/clone":{"post":{"tags":["campaigns"],"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true},{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"audienceId","required":true}],"responses":{"201":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ItemsItem223"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"postV1CampaignsByIdAudiencesByAudienceIdClone"}},"/v1/campaigns/{id}/recipient-estimations/latest":{"get":{"summary":"The most recent recipient estimation of this campaign","tags":["campaigns"],"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PostV1CampaignsByIdRecipientEstimationsResponse"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1CampaignsByIdRecipientEstimationsLatest"}},"/v1/campaign-messages":{"get":{"summary":"Every campaign message in the workspace, filtered by campaign, channel, status, text and updated time","tags":["campaigns"],"parameters":[{"schema":{"default":50,"type":"integer","minimum":1,"maximum":200},"in":"query","name":"limit","required":false},{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"query","name":"cursor","required":false},{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"query","name":"campaignId","required":false},{"schema":{"type":"string","enum":["email","sms","whatsapp","push","postcard"]},"in":"query","name":"channel","required":false},{"schema":{"type":"string","enum":["draft","scheduled","sending","paused","completed","cancelled","failed"]},"in":"query","name":"campaignStatus","required":false},{"schema":{"type":"string","maxLength":200},"in":"query","name":"q","required":false},{"schema":{"type":"string","format":"date-time"},"in":"query","name":"updatedFrom","required":false},{"schema":{"type":"string","format":"date-time"},"in":"query","name":"updatedTo","required":false}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"items":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"campaignId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"position":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"channel":{"type":"string","enum":["email","sms","whatsapp","push","postcard"]},"label":{"nullable":true,"type":"string"},"subject":{"nullable":true,"type":"string"},"previewText":{"nullable":true,"type":"string"},"fromName":{"nullable":true,"type":"string"},"replyTo":{"nullable":true,"type":"string"},"templateId":{"nullable":true,"type":"string"},"templateVersionId":{"nullable":true,"type":"string"},"imageAssetId":{"nullable":true,"type":"string"},"renderOptions":{"type":"object","additionalProperties":{}},"sendAt":{"nullable":true,"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"campaignName":{"type":"string"},"campaignStatus":{"type":"string"},"updatedAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"}},"required":["id","campaignId","position","channel","label","subject","previewText","fromName","replyTo","templateId","templateVersionId","imageAssetId","renderOptions","campaignName","campaignStatus","updatedAt"],"additionalProperties":{}}},"nextCursor":{"nullable":true,"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},"required":["items","nextCursor"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1CampaignMessages"}},"/v1/campaigns/{id}/messages/{messageId}/variants":{"get":{"tags":["campaigns"],"parameters":[{"schema":{"type":"integer","minimum":1,"maximum":200},"in":"query","name":"limit","required":false,"description":"Page size; omitted returns the whole list"},{"schema":{"type":"string","pattern":"^\\d{1,9}$"},"in":"query","name":"cursor","required":false,"description":"Opaque: the `nextCursor` of the previous page"},{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true},{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"messageId","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetV1CampaignsByIdVariantsResponse"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1CampaignsByIdMessagesByMessageIdVariants"}},"/v1/campaigns/{id}/messages/{messageId}/variants/{key}":{"put":{"tags":["campaigns"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PutV1CampaignsByIdVariantsByKeyBody"}}}},"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true},{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"messageId","required":true},{"schema":{"type":"string","minLength":1,"maxLength":32},"in":"path","name":"key","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ItemsItem60"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"putV1CampaignsByIdMessagesByMessageIdVariantsByKey"},"delete":{"tags":["campaigns"],"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true},{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"messageId","required":true},{"schema":{"type":"string","minLength":1,"maxLength":32},"in":"path","name":"key","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"ok":{"type":"boolean","enum":[true]}},"required":["ok"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"deleteV1CampaignsByIdMessagesByMessageIdVariantsByKey"}},"/v1/campaigns/{id}/variants/grid":{"post":{"summary":"Multivariate test: one variant per combination of templates, subjects, from names and preview texts","tags":["campaigns"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"templateVersionIds":{"default":[],"maxItems":8,"type":"array","items":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},"subjects":{"default":[],"maxItems":8,"type":"array","items":{"type":"string","minLength":1,"maxLength":998}},"fromNames":{"default":[],"maxItems":8,"type":"array","items":{"type":"string","minLength":1,"maxLength":200}},"previewTexts":{"default":[],"maxItems":8,"type":"array","items":{"type":"string","minLength":1,"maxLength":300}},"baseTemplateVersionId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},"required":["baseTemplateVersionId"]}}}},"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"combinations":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"variants":{"type":"array","items":{"type":"object","properties":{"key":{"type":"string"},"templateVersionId":{"type":"string"},"subject":{"nullable":true,"type":"string"},"fromName":{"nullable":true,"type":"string"},"previewText":{"nullable":true,"type":"string"}},"required":["key","templateVersionId","subject","fromName","previewText"],"additionalProperties":false}}},"required":["combinations","variants"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"postV1CampaignsByIdVariantsGrid"}},"/v1/campaigns/{id}/archive":{"post":{"tags":["campaigns"],"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ItemsItem54"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"postV1CampaignsByIdArchive"}},"/v1/campaigns/{id}/unarchive":{"post":{"tags":["campaigns"],"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ItemsItem54"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"postV1CampaignsByIdUnarchive"}},"/v1/campaigns/bulk-update":{"post":{"summary":"Move, re-own, archive or tag many campaigns; each one that cannot change is reported","tags":["campaigns"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"ids":{"$ref":"#/components/schemas/Ids"},"set":{"type":"object","properties":{"folderId":{"nullable":true,"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"archived":{"type":"boolean"},"ownerId":{"nullable":true,"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"addTags":{"maxItems":20,"type":"array","items":{"type":"string","minLength":1,"maxLength":64}}}}},"required":["ids","set"]}}}},"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"updated":{"$ref":"#/components/schemas/Conflicts"},"skipped":{"$ref":"#/components/schemas/Failed"}},"required":["updated","skipped"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"postV1CampaignsBulkUpdate"}},"/v1/campaigns/{id}/drafts":{"get":{"tags":["campaigns"],"parameters":[{"schema":{"default":50,"type":"integer","minimum":1,"maximum":200},"in":"query","name":"limit","required":false},{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"query","name":"cursor","required":false},{"schema":{"type":"string","enum":["pending","approved","rejected"]},"in":"query","name":"status","required":false},{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"items":{"type":"array","items":{"$ref":"#/components/schemas/ItemsItem224"}},"nextCursor":{"nullable":true,"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},"required":["items","nextCursor"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1CampaignsByIdDrafts"}},"/v1/campaigns/{id}/drafts/{draftId}":{"patch":{"tags":["campaigns"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"subject":{"type":"string","maxLength":998},"text":{"type":"string","minLength":1,"maxLength":100000},"html":{"nullable":true,"type":"string","maxLength":512000}}}}}},"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true},{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"draftId","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ItemsItem224"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"patchV1CampaignsByIdDraftsByDraftId"}},"/v1/campaigns/{id}/drafts/decide":{"post":{"summary":"Approve (send) or reject the selected drafts","tags":["campaigns"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PostV1AiAgentsItemsBulkDecideBody"}}}},"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"decided":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"failed":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["decided","failed"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"postV1CampaignsByIdDraftsDecide"}},"/v1/budgets/{id}/folder":{"put":{"tags":["budgets"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PutV1CampaignsByIdFolderBody"}}}},"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PutV1BudgetsByIdFolderResponse"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"putV1BudgetsByIdFolder"}},"/v1/campaign-folders/{id}/budgets":{"get":{"tags":["campaigns"],"parameters":[{"schema":{"type":"integer","minimum":1,"maximum":200},"in":"query","name":"limit","required":false,"description":"Page size; omitted returns the whole list"},{"schema":{"type":"string","pattern":"^\\d{1,9}$"},"in":"query","name":"cursor","required":false,"description":"Opaque: the `nextCursor` of the previous page"},{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"items":{"type":"array","items":{"$ref":"#/components/schemas/PutV1BudgetsByIdFolderResponse"}},"nextCursor":{"nullable":true,"type":"string"}},"required":["items","nextCursor"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1CampaignFoldersByIdBudgets"}},"/v1/emails":{"get":{"summary":"Campaigns as one email list: state, type, channel, created/updated/scheduled ranges, archived and sort","tags":["campaigns"],"parameters":[{"schema":{"type":"string","enum":["draft","scheduled","sending","paused","completed","cancelled","failed"]},"in":"query","name":"state","required":false},{"schema":{"type":"string","enum":["email","sms","whatsapp","push","postcard"]},"in":"query","name":"channel","required":false},{"schema":{"type":"string","enum":["marketing","prospecting","transactional","operational"]},"in":"query","name":"type","required":false},{"schema":{"type":"string","maxLength":200},"in":"query","name":"q","required":false},{"schema":{"type":"string","format":"date-time"},"in":"query","name":"createdFrom","required":false},{"schema":{"type":"string","format":"date-time"},"in":"query","name":"createdTo","required":false},{"schema":{"type":"string","format":"date-time"},"in":"query","name":"updatedFrom","required":false},{"schema":{"type":"string","format":"date-time"},"in":"query","name":"updatedTo","required":false},{"schema":{"type":"string","format":"date-time"},"in":"query","name":"scheduledFrom","required":false},{"schema":{"type":"string","format":"date-time"},"in":"query","name":"scheduledTo","required":false},{"schema":{"type":"string","enum":["true","false"]},"in":"query","name":"archived","required":false},{"schema":{"default":"created","type":"string","enum":["created","updated","name","scheduled"]},"in":"query","name":"sort","required":false},{"schema":{"default":"desc","type":"string","enum":["asc","desc"]},"in":"query","name":"order","required":false},{"schema":{"default":50,"type":"integer","minimum":1,"maximum":100},"in":"query","name":"limit","required":false},{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"query","name":"cursor","required":false}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"items":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"state":{"type":"string"},"channel":{"type":"string"},"type":{"type":"string"},"archived":{"type":"boolean"},"scheduledAt":{"nullable":true,"type":"string"},"createdAt":{"type":"string"},"updatedAt":{"type":"string"}},"required":["id","name","state","channel","type","archived","scheduledAt","createdAt","updatedAt"],"additionalProperties":false}},"nextCursor":{"nullable":true,"type":"string"}},"required":["items","nextCursor"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1Emails"}},"/v1/emails/{id}/draft":{"get":{"summary":"The editable content of an email that has not been sent","tags":["campaigns"],"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetV1CampaignsByIdContentResponse"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1EmailsByIdDraft"},"patch":{"summary":"Edit the draft; refused once the email is sending or sent","tags":["campaigns"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PutV1CampaignsByIdContentBody"}}}},"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetV1CampaignsByIdContentResponse"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"patchV1EmailsByIdDraft"}},"/v1/emails/statistics/list":{"get":{"summary":"Totals for up to 50 emails (comma separated ids) in a date window, plus their sum","tags":["campaigns"],"parameters":[{"schema":{"type":"string","minLength":36,"maxLength":4000},"in":"query","name":"ids","required":true},{"schema":{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"},"in":"query","name":"from","required":false},{"schema":{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"},"in":"query","name":"to","required":false}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"window":{"type":"object","properties":{"from":{"type":"string"},"to":{"type":"string"}},"required":["from","to"],"additionalProperties":false},"items":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"totals":{"$ref":"#/components/schemas/Counts"}},"required":["id","totals"],"additionalProperties":false}},"aggregate":{"$ref":"#/components/schemas/Counts"}},"required":["window","items","aggregate"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1EmailsStatisticsList"}},"/v1/emails/statistics/histogram":{"get":{"summary":"Sent, delivered, bounced, opened and clicked for one email per day, week or month between start and end","tags":["campaigns"],"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"query","name":"id","required":true},{"schema":{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"},"in":"query","name":"start","required":false},{"schema":{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"},"in":"query","name":"end","required":false},{"schema":{"default":"day","type":"string","enum":["day","week","month"]},"in":"query","name":"interval","required":false},{"schema":{"default":30,"type":"integer","minimum":1,"maximum":365},"in":"query","name":"days","required":false}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"start":{"type":"string"},"end":{"type":"string"},"interval":{"type":"string","enum":["day","week","month"]},"items":{"type":"array","items":{"type":"object","properties":{"day":{"type":"string"},"sent":{"type":"number"},"delivered":{"type":"number"},"bounced":{"type":"number"},"opens":{"type":"number"},"clicks":{"type":"number"}},"required":["day","sent","delivered","bounced","opens","clicks"],"additionalProperties":false}}},"required":["id","start","end","interval","items"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1EmailsStatisticsHistogram"}},"/v1/campaigns/{id}/postcard":{"get":{"tags":["campaigns"],"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetV1CampaignsByIdPostcardResponse"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1CampaignsByIdPostcard"},"put":{"summary":"Save the postcard design (6x4 or 9x6, HTML front and back with merge tags)","tags":["campaigns"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PutV1CampaignsByIdPostcardBody"}}}},"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetV1CampaignsByIdPostcardResponse"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"putV1CampaignsByIdPostcard"}},"/v1/campaigns/{id}/postcard/proof":{"post":{"summary":"Render both sides for one contact (or sample data) and show the address it would go to","tags":["campaigns"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"profileId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"design":{"$ref":"#/components/schemas/PutV1CampaignsByIdPostcardBody"}}}}}},"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"size":{"type":"string","enum":["6x4","9x6"]},"front":{"type":"string"},"back":{"type":"string"},"address":{"nullable":true,"type":"object","properties":{"name":{"type":"string"},"line1":{"type":"string"},"line2":{"nullable":true,"type":"string"},"city":{"type":"string"},"region":{"nullable":true,"type":"string"},"postalCode":{"type":"string"},"country":{"type":"string"}},"required":["name","line1","line2","city","region","postalCode","country"],"additionalProperties":false},"skipReason":{"nullable":true,"type":"string"},"warnings":{"type":"array","items":{"type":"string"}}},"required":["size","front","back","address","skipReason","warnings"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"postV1CampaignsByIdPostcardProof"}},"/v1/campaigns/{id}/postcard/report":{"get":{"tags":["campaigns"],"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"campaignId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"byStatus":{"type":"object","additionalProperties":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"skipped":{"$ref":"#/components/schemas/BlockReasons"}},"required":["campaignId","byStatus","skipped"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1CampaignsByIdPostcardReport"}},"/v1/profiles/{id}/suppress-delete":{"post":{"summary":"Suppress every address of a contact, delete the contact, and block its identifiers so no import, API call or event can re-create it","tags":["profiles"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"reason":{"type":"string","maxLength":500}}}}}},"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"suppressed":{"$ref":"#/components/schemas/Suppressed"},"blocked":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["suppressed","blocked"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"postV1ProfilesByIdSuppressDelete"}},"/v1/identifier-blocks":{"get":{"summary":"Identifiers of suppressed-and-deleted contacts (values are kept hashed only)","tags":["profiles"],"parameters":[{"schema":{"default":50,"type":"integer","minimum":1,"maximum":200},"in":"query","name":"limit","required":false},{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"query","name":"cursor","required":false},{"schema":{"type":"string","enum":["email","phone","external_id"]},"in":"query","name":"type","required":false}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"items":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"type":{"type":"string"},"reason":{"nullable":true,"type":"string"},"blockedBy":{"type":"string"},"createdAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"}},"required":["id","type","reason","blockedBy","createdAt"],"additionalProperties":false}},"nextCursor":{"nullable":true,"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},"required":["items","nextCursor"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1IdentifierBlocks"}},"/v1/identifier-blocks/check":{"post":{"summary":"Whether an email, phone or external id is blocked","tags":["profiles"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PostV1IdentifierBlocksCheckBody"}}}},"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"blocked":{"type":"boolean"}},"required":["blocked"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"postV1IdentifierBlocksCheck"}},"/v1/identifier-blocks/unblock":{"post":{"summary":"Allow a blocked identifier to be added again (admin; suppressions stay)","tags":["profiles"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PostV1IdentifierBlocksCheckBody"}}}},"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"ok":{"type":"boolean","enum":[true]}},"required":["ok"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"postV1IdentifierBlocksUnblock"}},"/v1/activity/people":{"get":{"summary":"Activity of everyone in the workspace; filter by type, name, person and deleted people","tags":["profiles"],"parameters":[{"schema":{"default":50,"type":"integer","minimum":1,"maximum":200},"in":"query","name":"limit","required":false},{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"query","name":"cursor","required":false},{"schema":{"type":"string","maxLength":64},"in":"query","name":"type","required":false},{"schema":{"type":"string","maxLength":200},"in":"query","name":"name","required":false},{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"query","name":"profileId","required":false},{"schema":{"default":"exclude","type":"string","enum":["exclude","include","only"]},"in":"query","name":"deleted","required":false}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetV1ProfilesByIdActivityResponse"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1ActivityPeople"}},"/v1/profile-filters":{"get":{"tags":["profiles"],"parameters":[{"schema":{"type":"integer","minimum":1,"maximum":200},"in":"query","name":"limit","required":false,"description":"Page size; omitted returns the whole list"},{"schema":{"type":"string","pattern":"^\\d{1,9}$"},"in":"query","name":"cursor","required":false,"description":"Opaque: the `nextCursor` of the previous page"}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"items":{"type":"array","items":{"$ref":"#/components/schemas/ItemsItem225"}},"nextCursor":{"nullable":true,"type":"string"}},"required":["items","nextCursor"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1ProfileFilters"},"post":{"tags":["profiles"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PostV1ProfileFiltersBody"}}}},"responses":{"201":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ItemsItem225"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"postV1ProfileFilters"}},"/v1/profile-filters/{id}":{"put":{"tags":["profiles"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PostV1ProfileFiltersBody"}}}},"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ItemsItem225"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"putV1ProfileFiltersById"},"delete":{"tags":["profiles"],"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"ok":{"type":"boolean","enum":[true]}},"required":["ok"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"deleteV1ProfileFiltersById"}},"/v1/standard-fields":{"get":{"summary":"Required / visible / default settings of email, first name, last name and phone","tags":["profiles"],"parameters":[{"schema":{"type":"integer","minimum":1,"maximum":200},"in":"query","name":"limit","required":false,"description":"Page size; omitted returns the whole list"},{"schema":{"type":"string","pattern":"^\\d{1,9}$"},"in":"query","name":"cursor","required":false,"description":"Opaque: the `nextCursor` of the previous page"}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"items":{"$ref":"#/components/schemas/Items55"},"nextCursor":{"nullable":true,"type":"string"}},"required":["items","nextCursor"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1StandardFields"}},"/v1/standard-fields/{key}":{"put":{"tags":["settings"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"required":{"type":"boolean"},"visible":{"type":"boolean"},"defaultValue":{"nullable":true,"type":"string","maxLength":256}},"required":["required","visible"]}}}},"parameters":[{"schema":{"type":"string","enum":["email","firstName","lastName","phone"]},"in":"path","name":"key","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"items":{"$ref":"#/components/schemas/Items55"}},"required":["items"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"putV1StandardFieldsByKey"}},"/v1/do-not-contact":{"post":{"summary":"Add do-not-contact values; phones block SMS and WhatsApp, LinkedIn URLs block LinkedIn outreach","tags":["consent"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"kind":{"type":"string","enum":["email","phone","linkedin"]},"values":{"minItems":1,"maxItems":1000,"type":"array","items":{"type":"string","minLength":1,"maxLength":500}},"note":{"type":"string","maxLength":200}},"required":["kind","values"]}}}},"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"added":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"invalid":{"type":"array","items":{"type":"object","properties":{"value":{"type":"string"},"error":{"type":"string"}},"required":["value","error"],"additionalProperties":false}}},"required":["added","invalid"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"postV1DoNotContact"},"get":{"summary":"LinkedIn do-not-contact list (emails and phones are listed under suppressions)","tags":["consent"],"parameters":[{"schema":{"default":50,"type":"integer","minimum":1,"maximum":200},"in":"query","name":"limit","required":false},{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"query","name":"cursor","required":false},{"schema":{"type":"string","maxLength":200},"in":"query","name":"q","required":false}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"items":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"kind":{"type":"string","enum":["linkedin"]},"value":{"type":"string"},"sourceRef":{"nullable":true,"type":"string"},"createdAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"}},"required":["id","kind","value","sourceRef","createdAt"],"additionalProperties":false}},"nextCursor":{"nullable":true,"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},"required":["items","nextCursor"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1DoNotContact"}},"/v1/do-not-contact/check":{"get":{"tags":["consent"],"parameters":[{"schema":{"type":"string","maxLength":500},"in":"query","name":"linkedinUrl","required":false},{"schema":{"type":"string","maxLength":40},"in":"query","name":"phone","required":false}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"linkedin":{"nullable":true,"type":"boolean"},"phone":{"nullable":true,"type":"boolean"}},"required":["linkedin","phone"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1DoNotContactCheck"}},"/v1/do-not-contact/{id}":{"delete":{"tags":["consent"],"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"ok":{"type":"boolean","enum":[true]}},"required":["ok"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"deleteV1DoNotContactById"}},"/v1/compliance/unconfirmed-purge":{"get":{"summary":"Days after which contacts that never confirmed an opt-in are deleted (null = off)","tags":["settings"],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"days":{"nullable":true,"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["days"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1ComplianceUnconfirmedPurge"},"put":{"tags":["settings"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"days":{"nullable":true,"type":"integer","minimum":7,"maximum":3650}},"required":["days"]}}}},"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"days":{"nullable":true,"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["days"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"putV1ComplianceUnconfirmedPurge"}},"/v1/compliance/export-retention":{"get":{"summary":"Days an export file is kept before it is deleted","tags":["settings"],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"days":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["days"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1ComplianceExportRetention"},"put":{"tags":["settings"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"days":{"type":"integer","minimum":1,"maximum":365}},"required":["days"]}}}},"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"days":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["days"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"putV1ComplianceExportRetention"}},"/v1/associations/{type}/{id}":{"get":{"summary":"Everything a profile or object record is associated with, with labels","tags":["objects"],"parameters":[{"schema":{"type":"integer","minimum":1,"maximum":200},"in":"query","name":"limit","required":false,"description":"Page size; omitted returns the whole list"},{"schema":{"type":"string","pattern":"^\\d{1,9}$"},"in":"query","name":"cursor","required":false,"description":"Opaque: the `nextCursor` of the previous page"},{"schema":{"type":"string","pattern":"^[a-z][a-z0-9_]{0,62}$"},"in":"path","name":"type","required":true},{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"items":{"type":"array","items":{"type":"object","properties":{"toType":{"type":"string"},"toId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"name":{"type":"string"},"label":{"nullable":true,"type":"string"}},"required":["toType","toId","name","label"],"additionalProperties":false}},"nextCursor":{"nullable":true,"type":"string"}},"required":["items","nextCursor"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1AssociationsByTypeById"}},"/v1/associations/{fromType}/{fromId}/{toType}/{toId}":{"put":{"summary":"Associate two records; without a label the pair's default label is used (or \"related\")","tags":["objects"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"label":{"type":"string","minLength":1,"maxLength":64}}}}}},"parameters":[{"schema":{"type":"string","pattern":"^[a-z][a-z0-9_]{0,62}$"},"in":"path","name":"fromType","required":true},{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"fromId","required":true},{"schema":{"type":"string","pattern":"^[a-z][a-z0-9_]{0,62}$"},"in":"path","name":"toType","required":true},{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"toId","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"ok":{"type":"boolean","enum":[true]}},"required":["ok"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"putV1AssociationsByFromTypeByFromIdByToTypeByToId"},"delete":{"tags":["objects"],"parameters":[{"schema":{"type":"string","minLength":1,"maxLength":64},"in":"query","name":"label","required":false},{"schema":{"type":"string","pattern":"^[a-z][a-z0-9_]{0,62}$"},"in":"path","name":"fromType","required":true},{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"fromId","required":true},{"schema":{"type":"string","pattern":"^[a-z][a-z0-9_]{0,62}$"},"in":"path","name":"toType","required":true},{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"toId","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"ok":{"type":"boolean","enum":[true]}},"required":["ok"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"deleteV1AssociationsByFromTypeByFromIdByToTypeByToId"}},"/v1/associations/batch":{"post":{"summary":"Up to 100 associations in one call; any failure rolls back all","tags":["objects"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"items":{"minItems":1,"maxItems":100,"type":"array","items":{"type":"object","properties":{"fromType":{"type":"string","pattern":"^[a-z][a-z0-9_]{0,62}$"},"fromId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"toType":{"type":"string","pattern":"^[a-z][a-z0-9_]{0,62}$"},"toId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"label":{"type":"string","minLength":1,"maxLength":64}},"required":["fromType","fromId","toType","toId"]}}},"required":["items"]}}}},"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"associated":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["associated"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"postV1AssociationsBatch"}},"/v1/association-labels":{"get":{"tags":["objects"],"parameters":[{"schema":{"type":"string","pattern":"^[a-z][a-z0-9_]{0,62}$"},"in":"query","name":"fromType","required":false},{"schema":{"type":"string","pattern":"^[a-z][a-z0-9_]{0,62}$"},"in":"query","name":"toType","required":false},{"schema":{"type":"integer","minimum":1,"maximum":200},"in":"query","name":"limit","required":false,"description":"Page size; omitted returns the whole list"},{"schema":{"type":"string","pattern":"^\\d{1,9}$"},"in":"query","name":"cursor","required":false,"description":"Opaque: the `nextCursor` of the previous page"}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"items":{"type":"array","items":{"$ref":"#/components/schemas/ItemsItem227"}},"nextCursor":{"nullable":true,"type":"string"}},"required":["items","nextCursor"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1AssociationLabels"},"post":{"tags":["objects"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"fromType":{"type":"string","pattern":"^[a-z][a-z0-9_]{0,62}$"},"toType":{"type":"string","pattern":"^[a-z][a-z0-9_]{0,62}$"},"label":{"type":"string","minLength":1,"maxLength":64},"isDefault":{"default":false,"type":"boolean"}},"required":["fromType","toType","label"]}}}},"responses":{"201":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ItemsItem227"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"postV1AssociationLabels"}},"/v1/association-labels/{id}":{"patch":{"tags":["objects"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"label":{"type":"string","minLength":1,"maxLength":64},"isDefault":{"type":"boolean"}}}}}},"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ItemsItem227"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"patchV1AssociationLabelsById"},"delete":{"tags":["objects"],"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"ok":{"type":"boolean","enum":[true]}},"required":["ok"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"deleteV1AssociationLabelsById"}},"/v1/objects/relationships/import":{"post":{"summary":"Link people (by externalId, email or phone) to object records (by type and externalId); a bad row is reported, the rest land","tags":["objects"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"rows":{"minItems":1,"maxItems":1000,"type":"array","items":{"type":"object","properties":{"objectType":{"type":"string","minLength":1,"maxLength":63},"objectExternalId":{"type":"string","minLength":1,"maxLength":256},"email":{"type":"string","maxLength":320},"phone":{"type":"string","maxLength":40},"externalId":{"type":"string","maxLength":256},"label":{"type":"string","maxLength":64}},"required":["objectType","objectExternalId"]}}},"required":["rows"]}}}},"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"linked":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"failed":{"$ref":"#/components/schemas/Rejected"}},"required":["linked","failed"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"postV1ObjectsRelationshipsImport"}},"/v1/imports/url":{"post":{"summary":"One-off import of a CSV at an https URL: events, object records or relationships (poll GET /v1/jobs)","tags":["objects"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"kind":{"type":"string","enum":["events","objects","relationships"]},"url":{"type":"string","maxLength":2000,"format":"uri"},"objectType":{"type":"string","minLength":1,"maxLength":63}},"required":["kind","url"]}}}},"responses":{"202":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ItemsItem14"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"postV1ImportsUrl"}},"/v1/shared-object-schemas":{"get":{"summary":"Object schemas shared across the workspaces of this organization","tags":["objects"],"parameters":[{"schema":{"type":"integer","minimum":1,"maximum":200},"in":"query","name":"limit","required":false,"description":"Page size; omitted returns the whole list"},{"schema":{"type":"string","pattern":"^\\d{1,9}$"},"in":"query","name":"cursor","required":false,"description":"Opaque: the `nextCursor` of the previous page"}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"items":{"type":"array","items":{"$ref":"#/components/schemas/ItemsItem228"}},"nextCursor":{"nullable":true,"type":"string"}},"required":["items","nextCursor"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1SharedObjectSchemas"}},"/v1/object-types/{id}/share":{"post":{"summary":"Publish this workspace's object type to the organization (re-publishing bumps the version)","tags":["objects"],"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ItemsItem228"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"postV1ObjectTypesByIdShare"}},"/v1/shared-object-schemas/{id}/install":{"post":{"summary":"Create or update the object type here from a shared schema (fields are merged, none removed)","tags":["objects"],"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"ok":{"type":"boolean","enum":[true]}},"required":["ok"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"postV1SharedObjectSchemasByIdInstall"}},"/v1/shared-object-schemas/{id}":{"delete":{"summary":"Stop sharing (only from the workspace that published it; installed copies stay)","tags":["objects"],"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"ok":{"type":"boolean","enum":[true]}},"required":["ok"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"deleteV1SharedObjectSchemasById"}},"/v1/profiles/{id}/files":{"get":{"tags":["objects"],"parameters":[{"schema":{"type":"integer","minimum":1,"maximum":200},"in":"query","name":"limit","required":false,"description":"Page size; omitted returns the whole list"},{"schema":{"type":"string","pattern":"^\\d{1,9}$"},"in":"query","name":"cursor","required":false,"description":"Opaque: the `nextCursor` of the previous page"},{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"items":{"type":"array","items":{"$ref":"#/components/schemas/ItemsItem229"}},"nextCursor":{"nullable":true,"type":"string"}},"required":["items","nextCursor"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1ProfilesByIdFiles"},"post":{"summary":"Attach a file (multipart field \"file\"; the asset library's types and limits apply)","tags":["objects"],"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"201":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ItemsItem229"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"postV1ProfilesByIdFiles"}},"/v1/profiles/{id}/files/{fileId}":{"delete":{"tags":["objects"],"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true},{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"fileId","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"ok":{"type":"boolean","enum":[true]}},"required":["ok"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"deleteV1ProfilesByIdFilesByFileId"}},"/u/resubscribe/{*}":{"post":{"summary":"Undo an unsubscribe from the same signed link: records a new opt-in in the consent ledger and lifts only that unsubscribe","tags":["unsubscribe"],"parameters":[{"schema":{"type":"string","minLength":10,"maxLength":600},"in":"path","name":"*","required":true}],"security":[],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"string"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"postUResubscribeWildcard"}},"/v1/analytics/record-sources":{"get":{"summary":"Report builder record sources (contacts, companies, form results, page hits, asset downloads, workflow log, point log, frequency rules) and their columns","tags":["analytics"],"parameters":[{"schema":{"type":"integer","minimum":1,"maximum":200},"in":"query","name":"limit","required":false,"description":"Page size; omitted returns the whole list"},{"schema":{"type":"string","pattern":"^\\d{1,9}$"},"in":"query","name":"cursor","required":false,"description":"Opaque: the `nextCursor` of the previous page"}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"items":{"type":"array","items":{"type":"object","properties":{"source":{"type":"string","enum":["contacts","companies","form_results","page_hits","asset_downloads","workflow_log","point_log","frequency_rules"]},"columns":{"type":"array","items":{"type":"string"}},"available":{"type":"boolean"}},"required":["source","columns","available"],"additionalProperties":false}},"nextCursor":{"nullable":true,"type":"string"}},"required":["items","nextCursor"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1AnalyticsRecordSources"}},"/v1/analytics/records/run":{"post":{"summary":"Run a record-source report without saving it: pick columns, filter, order and limit","tags":["analytics"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/QueryVariant11"}}}},"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"source":{"type":"string","enum":["contacts","companies","form_results","page_hits","asset_downloads","workflow_log","point_log","frequency_rules"]},"columns":{"type":"array","items":{"type":"string"}},"rows":{"type":"array","items":{"type":"object","additionalProperties":{}}},"truncated":{"type":"boolean"}},"required":["source","columns","rows","truncated"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"postV1AnalyticsRecordsRun"}},"/v1/exports/message-events":{"post":{"summary":"Every message event (delivered, open, click, bounce ...) with its message, as CSV (poll GET /v1/exports/:id)","tags":["analytics"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PostV1ExportsActivityBody"}}}},"responses":{"202":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ItemsItem14"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"postV1ExportsMessageEvents"}},"/v1/exports/clicks":{"post":{"summary":"Every human link click with its message and URL, as CSV (poll GET /v1/exports/:id)","tags":["analytics"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PostV1ExportsActivityBody"}}}},"responses":{"202":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ItemsItem14"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"postV1ExportsClicks"}},"/v1/campaign-folders/{id}/report":{"get":{"summary":"Roll-up of everything filed in a campaign folder: contacts reached (first touch, last touch, influenced), message, form and page metrics, and revenue","tags":["analytics"],"parameters":[{"schema":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}(?:[T ]\\d{2}:\\d{2}(?::\\d{2}(?:\\.\\d+)?)?(?:Z|[+-]\\d{2}:?\\d{2})?)?$","format":"date"},"in":"query","name":"from","required":true},{"schema":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}(?:[T ]\\d{2}:\\d{2}(?::\\d{2}(?:\\.\\d+)?)?(?:Z|[+-]\\d{2}:?\\d{2})?)?$","format":"date"},"in":"query","name":"to","required":true},{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"folderId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"name":{"type":"string"},"contacts":{"type":"object","properties":{"influenced":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"firstTouch":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"lastTouch":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["influenced","firstTouch","lastTouch"],"additionalProperties":false},"assets":{"type":"object","properties":{"campaigns":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"workflows":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"forms":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"pages":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["campaigns","workflows","forms","pages"],"additionalProperties":false},"messages":{"type":"object","additionalProperties":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"forms":{"type":"object","properties":{"views":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"submissions":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["views","submissions"],"additionalProperties":false},"pages":{"type":"object","properties":{"visits":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"signups":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["visits","signups"],"additionalProperties":false},"revenue":{"$ref":"#/components/schemas/Revenue3"}},"required":["folderId","name","contacts","assets","messages","forms","pages","revenue"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1CampaignFoldersByIdReport"}},"/v1/analytics/surveys/{id}/report":{"get":{"summary":"Survey report: responses and answer breakdown per question, optionally for the members of one list or segment","tags":["analytics"],"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"query","name":"listId","required":false},{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"query","name":"segmentId","required":false},{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"surveyId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"title":{"type":"string"},"scoped":{"type":"boolean"},"respondents":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"completed":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"views":{"nullable":true,"type":"number"},"completionRate":{"nullable":true,"type":"number"},"responseRate":{"nullable":true,"type":"number"},"audience":{"type":"object","properties":{"signedReaders":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"anonymous":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"anonymousWithContact":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["signedReaders","anonymous","anonymousWithContact"],"additionalProperties":false},"questions":{"type":"array","items":{"type":"object","properties":{"questionId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"prompt":{"type":"string"},"kind":{"type":"string"},"answered":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"options":{"$ref":"#/components/schemas/Options3"}},"required":["questionId","prompt","kind","answered","options"],"additionalProperties":false}}},"required":["surveyId","title","scoped","respondents","completed","views","completionRate","responseRate","audience","questions"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1AnalyticsSurveysByIdReport"}},"/v1/analytics/landing-pages":{"get":{"summary":"Landing page report: visits, unique visitors, sign-ups and conversion rate per page over a date range","tags":["analytics"],"parameters":[{"schema":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}(?:[T ]\\d{2}:\\d{2}(?::\\d{2}(?:\\.\\d+)?)?(?:Z|[+-]\\d{2}:?\\d{2})?)?$","format":"date"},"in":"query","name":"from","required":true},{"schema":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}(?:[T ]\\d{2}:\\d{2}(?::\\d{2}(?:\\.\\d+)?)?(?:Z|[+-]\\d{2}:?\\d{2})?)?$","format":"date"},"in":"query","name":"to","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"from":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},"to":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},"items":{"type":"array","items":{"type":"object","properties":{"pageId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"name":{"type":"string"},"slug":{"type":"string"},"status":{"type":"string"},"visits":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"uniqueVisitors":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"clicks":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"signups":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"orders":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"revenue":{"type":"array","items":{"type":"object","properties":{"currency":{"type":"string"},"minor":{"type":"number"}},"required":["currency","minor"],"additionalProperties":false}}},"required":["pageId","name","slug","status","visits","uniqueVisitors","clicks","signups","orders","revenue"],"additionalProperties":false}}},"required":["from","to","items"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1AnalyticsLandingPages"}},"/v1/reports":{"get":{"summary":"Sent campaigns with opens, clicks, bounces, unsubscribes, complaints and rates; filter by channel, type and send time","tags":["campaigns"],"parameters":[{"schema":{"default":50,"type":"integer","minimum":1,"maximum":200},"in":"query","name":"limit","required":false},{"schema":{"type":"string","maxLength":64},"in":"query","name":"cursor","required":false},{"schema":{"type":"string","enum":["email","sms","whatsapp","push","postcard"]},"in":"query","name":"channel","required":false},{"schema":{"type":"string","enum":["regular","ab_test","rss_issue","resend"]},"in":"query","name":"type","required":false},{"schema":{"type":"string","format":"date-time"},"in":"query","name":"sinceSendTime","required":false},{"schema":{"type":"string","format":"date-time"},"in":"query","name":"beforeSendTime","required":false}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"items":{"type":"array","items":{"type":"object","properties":{"sent":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"delivered":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"opens":{"$ref":"#/components/schemas/Opens"},"clicks":{"$ref":"#/components/schemas/Opens"},"bounces":{"$ref":"#/components/schemas/Bounces"},"unsubscribed":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"complaints":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"forwards":{"nullable":true,"type":"number"},"rates":{"$ref":"#/components/schemas/Rates"},"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"campaignId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"name":{"type":"string"},"status":{"type":"string"},"channel":{"type":"string"},"type":{"type":"string"},"sendTime":{"nullable":true,"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"opened":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"clicked":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["sent","delivered","opens","clicks","bounces","unsubscribed","complaints","forwards","rates","id","campaignId","name","status","channel","type","sendTime","opened","clicked"],"additionalProperties":false}},"nextCursor":{"nullable":true,"type":"string"}},"required":["items","nextCursor"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1Reports"}},"/v1/reports/{id}":{"get":{"summary":"One campaign report: domains, locations by country and region, links, abuse, revenue, rates, list-average and industry comparison, and the share link","tags":["campaigns"],"parameters":[{"schema":{"default":"all","type":"string","maxLength":32},"in":"query","name":"industry","required":false},{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"campaignId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"sent":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"domains":{"type":"array","items":{"type":"object","properties":{"domain":{"type":"string"},"sent":{"type":"number"},"opened":{"type":"number"},"clicked":{"type":"number"},"bounced":{"type":"number"}},"required":["domain","sent","opened","clicked","bounced"],"additionalProperties":false}},"locations":{"type":"array","items":{"type":"object","properties":{"network":{"type":"string"},"opens":{"type":"number"}},"required":["network","opens"],"additionalProperties":false}},"countries":{"default":[],"type":"array","items":{"type":"object","properties":{"country":{"type":"string"},"opens":{"type":"number"}},"required":["country","opens"],"additionalProperties":false}},"devices":{"type":"array","items":{"type":"object","properties":{"device":{"type":"string"},"opens":{"type":"number"},"clicks":{"type":"number"}},"required":["device","opens","clicks"],"additionalProperties":false}},"links":{"type":"array","items":{"type":"object","properties":{"url":{"type":"string"},"total":{"type":"number"},"unique":{"type":"number"}},"required":["url","total","unique"],"additionalProperties":false}},"abuse":{"type":"array","items":{"type":"object","properties":{"profileId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"destination":{"nullable":true,"type":"string"},"at":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"}},"required":["profileId","destination","at"],"additionalProperties":false}},"unsubscribeReasons":{"type":"array","items":{"type":"object","properties":{"reason":{"type":"string"},"count":{"type":"number"}},"required":["reason","count"],"additionalProperties":false}},"revenue":{"type":"object","properties":{"orders":{"type":"number"},"revenueMinor":{"type":"number"}},"required":["orders","revenueMinor"],"additionalProperties":false},"delivered":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"opens":{"$ref":"#/components/schemas/Opens"},"clicks":{"$ref":"#/components/schemas/Opens"},"bounces":{"$ref":"#/components/schemas/Bounces"},"unsubscribed":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"complaints":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"forwards":{"nullable":true,"type":"number"},"rates":{"$ref":"#/components/schemas/Rates"},"comparison":{"type":"object","properties":{"listAverage":{"$ref":"#/components/schemas/Rates"},"industry":{"type":"object","properties":{"key":{"type":"string"},"label":{"type":"string"},"open":{"type":"array","items":{"anyOf":[{"type":"number"},{"type":"number"}]},"minItems":2,"maxItems":2},"click":{"type":"array","items":{"anyOf":[{"type":"number"},{"type":"number"}]},"minItems":2,"maxItems":2},"unsubscribe":{"type":"array","items":{"anyOf":[{"type":"number"},{"type":"number"}]},"minItems":2,"maxItems":2},"bounce":{"type":"array","items":{"anyOf":[{"type":"number"},{"type":"number"}]},"minItems":2,"maxItems":2},"note":{"type":"string"}},"required":["key","label","open","click","unsubscribe","bounce","note"],"additionalProperties":false}},"required":["listAverage","industry"],"additionalProperties":false},"regions":{"type":"array","items":{"type":"object","properties":{"country":{"type":"string"},"region":{"nullable":true,"type":"string"},"opens":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"people":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["country","region","opens","people"],"additionalProperties":false}},"shareReport":{"type":"object","properties":{"url":{"type":"string"}},"required":["url"],"additionalProperties":false}},"required":["campaignId","sent","domains","locations","countries","devices","links","abuse","unsubscribeReasons","revenue","delivered","opens","clicks","bounces","unsubscribed","complaints","forwards","rates","comparison","regions","shareReport"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1ReportsById"}},"/v1/reports/{id}/advice":{"get":{"summary":"Plain-language advice on one campaign's open, click, bounce and spam rates","tags":["campaigns"],"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"campaignId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"items":{"type":"array","items":{"type":"object","properties":{"tone":{"type":"string","enum":["good","warn","info"]},"message":{"type":"string"}},"required":["tone","message"],"additionalProperties":false}}},"required":["campaignId","items"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1ReportsByIdAdvice"}},"/v1/reports/{id}/click-details":{"get":{"tags":["campaigns"],"parameters":[{"schema":{"type":"string","minLength":1,"maxLength":2000},"in":"query","name":"url","required":true},{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"url":{"type":"string"},"total":{"type":"number"},"unique":{"type":"number"}},"required":["url","total","unique"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1ReportsByIdClickDetails"}},"/v1/reports/{id}/links":{"get":{"summary":"Every link: clicks, unique clickers, last click, share of all clicks, and the split per A/B variant","tags":["campaigns"],"parameters":[{"schema":{"type":"integer","minimum":1,"maximum":200},"in":"query","name":"limit","required":false,"description":"Page size; omitted returns the whole list"},{"schema":{"type":"string","pattern":"^\\d{1,9}$"},"in":"query","name":"cursor","required":false,"description":"Opaque: the `nextCursor` of the previous page"},{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"items":{"type":"array","items":{"type":"object","properties":{"url":{"type":"string"},"clicks":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"unique":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"lastClick":{"nullable":true,"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"clickShare":{"nullable":true,"type":"number"},"uniqueShare":{"nullable":true,"type":"number"},"variants":{"type":"array","items":{"type":"object","properties":{"variantKey":{"type":"string"},"clicks":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"unique":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["variantKey","clicks","unique"],"additionalProperties":false}}},"required":["url","clicks","unique","lastClick","clickShare","uniqueShare","variants"],"additionalProperties":false}},"nextCursor":{"nullable":true,"type":"string"}},"required":["items","nextCursor"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1ReportsByIdLinks"}},"/v1/reports/{id}/unsubscribed":{"get":{"summary":"Who unsubscribed from this campaign, when, and how (link, List-Unsubscribe header, reply ...)","tags":["campaigns"],"parameters":[{"schema":{"default":50,"type":"integer","minimum":1,"maximum":200},"in":"query","name":"limit","required":false},{"schema":{"type":"string","maxLength":64},"in":"query","name":"cursor","required":false},{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"items":{"type":"array","items":{"type":"object","properties":{"profileId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"email":{"nullable":true,"type":"string"},"reason":{"type":"string"},"at":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"}},"required":["profileId","email","reason","at"],"additionalProperties":false}},"nextCursor":{"nullable":true,"type":"string"}},"required":["items","nextCursor"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1ReportsByIdUnsubscribed"}},"/v1/reports/{id}/share-stats":{"get":{"summary":"Views, unique visitors, referrers and link clicks of the public share link","tags":["campaigns"],"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"campaignId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"views":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"uniqueVisitors":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"clicks":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"lastViewAt":{"nullable":true,"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"referrers":{"$ref":"#/components/schemas/Items5"},"links":{"type":"array","items":{"type":"object","properties":{"url":{"type":"string"},"clicks":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["url","clicks"],"additionalProperties":false}}},"required":["campaignId","views","uniqueVisitors","clicks","lastViewAt","referrers","links"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1ReportsByIdShareStats"}},"/v1/reports/{id}/sub-reports":{"get":{"summary":"A/B variants, resends and RSS issues of this campaign","tags":["campaigns"],"parameters":[{"schema":{"type":"integer","minimum":1,"maximum":200},"in":"query","name":"limit","required":false,"description":"Page size; omitted returns the whole list"},{"schema":{"type":"string","pattern":"^\\d{1,9}$"},"in":"query","name":"cursor","required":false,"description":"Opaque: the `nextCursor` of the previous page"},{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"items":{"type":"array","items":{"type":"object","properties":{"kind":{"type":"string","enum":["variant","resend","rss_issue"]},"key":{"type":"string"},"campaignId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"name":{"type":"string"},"sent":{"type":"number"},"opened":{"type":"number"},"clicked":{"type":"number"}},"required":["kind","key","campaignId","name","sent","opened","clicked"],"additionalProperties":false}},"nextCursor":{"nullable":true,"type":"string"}},"required":["items","nextCursor"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1ReportsByIdSubReports"}},"/v1/loyalty/programs":{"get":{"tags":["loyalty"],"parameters":[{"schema":{"type":"integer","minimum":1,"maximum":200},"in":"query","name":"limit","required":false,"description":"Page size; omitted returns the whole list"},{"schema":{"type":"string","pattern":"^\\d{1,9}$"},"in":"query","name":"cursor","required":false,"description":"Opaque: the `nextCursor` of the previous page"}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"items":{"type":"array","items":{"$ref":"#/components/schemas/ItemsItem230"}},"nextCursor":{"nullable":true,"type":"string"}},"required":["items","nextCursor"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1LoyaltyPrograms"},"post":{"tags":["loyalty"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":200},"status":{"default":"active","type":"string","enum":["active","paused"]},"pointsName":{"default":"points","type":"string","minLength":1,"maxLength":40},"expiryDays":{"nullable":true,"type":"integer","minimum":1,"maximum":3650},"tierWindowDays":{"nullable":true,"type":"integer","minimum":1,"maximum":3650},"attributeKey":{"nullable":true,"type":"string","pattern":"^[a-z][a-z0-9_]{0,39}$"}},"required":["name"]}}}},"responses":{"201":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ItemsItem230"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"postV1LoyaltyPrograms"}},"/v1/loyalty/programs/{id}":{"get":{"tags":["loyalty"],"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ItemsItem230"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1LoyaltyProgramsById"},"patch":{"tags":["loyalty"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":200},"status":{"type":"string","enum":["active","paused"]},"pointsName":{"type":"string","minLength":1,"maxLength":40},"expiryDays":{"nullable":true,"type":"integer","minimum":1,"maximum":3650},"tierWindowDays":{"nullable":true,"type":"integer","minimum":1,"maximum":3650},"attributeKey":{"nullable":true,"type":"string","pattern":"^[a-z][a-z0-9_]{0,39}$"}}}}}},"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ItemsItem230"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"patchV1LoyaltyProgramsById"},"delete":{"summary":"Delete a programme with its ledger (balances are lost)","tags":["loyalty"],"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"ok":{"type":"boolean","enum":[true]}},"required":["ok"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"deleteV1LoyaltyProgramsById"}},"/v1/loyalty/programs/{id}/rules":{"get":{"tags":["loyalty"],"parameters":[{"schema":{"type":"integer","minimum":1,"maximum":200},"in":"query","name":"limit","required":false,"description":"Page size; omitted returns the whole list"},{"schema":{"type":"string","pattern":"^\\d{1,9}$"},"in":"query","name":"cursor","required":false,"description":"Opaque: the `nextCursor` of the previous page"},{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"items":{"type":"array","items":{"$ref":"#/components/schemas/ItemsItem231"}},"nextCursor":{"nullable":true,"type":"string"}},"required":["items","nextCursor"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1LoyaltyProgramsByIdRules"},"post":{"summary":"Earn points on an event (orders are `purchase`)","tags":["loyalty"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":200},"eventName":{"default":"purchase","type":"string","minLength":1,"maxLength":128},"kind":{"default":"per_value","type":"string","enum":["per_value","fixed"]},"points":{"type":"integer","minimum":1,"maximum":1000000},"minValueMinor":{"default":0,"type":"integer","minimum":0,"maximum":9007199254740991},"filter":{"default":{},"type":"object","additionalProperties":{}},"enabled":{"default":true,"type":"boolean"},"expiryDays":{"nullable":true,"type":"integer","minimum":1,"maximum":3650}},"required":["name","points"]}}}},"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"201":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ItemsItem231"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"postV1LoyaltyProgramsByIdRules"}},"/v1/loyalty/programs/{id}/rules/{subId}":{"patch":{"tags":["loyalty"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":200},"eventName":{"type":"string","minLength":1,"maxLength":128},"kind":{"type":"string","enum":["per_value","fixed"]},"points":{"type":"integer","minimum":1,"maximum":1000000},"minValueMinor":{"type":"integer","minimum":0,"maximum":9007199254740991},"filter":{"type":"object","additionalProperties":{}},"enabled":{"type":"boolean"},"expiryDays":{"nullable":true,"type":"integer","minimum":1,"maximum":3650}}}}}},"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true},{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"subId","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ItemsItem231"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"patchV1LoyaltyProgramsByIdRulesBySubId"},"delete":{"tags":["loyalty"],"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true},{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"subId","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"ok":{"type":"boolean","enum":[true]}},"required":["ok"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"deleteV1LoyaltyProgramsByIdRulesBySubId"}},"/v1/loyalty/programs/{id}/tiers":{"get":{"tags":["loyalty"],"parameters":[{"schema":{"type":"integer","minimum":1,"maximum":200},"in":"query","name":"limit","required":false,"description":"Page size; omitted returns the whole list"},{"schema":{"type":"string","pattern":"^\\d{1,9}$"},"in":"query","name":"cursor","required":false,"description":"Opaque: the `nextCursor` of the previous page"},{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"items":{"type":"array","items":{"$ref":"#/components/schemas/ItemsItem232"}},"nextCursor":{"nullable":true,"type":"string"}},"required":["items","nextCursor"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1LoyaltyProgramsByIdTiers"},"post":{"tags":["loyalty"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":200},"threshold":{"type":"integer","minimum":0,"maximum":9007199254740991},"multiplierPct":{"default":100,"type":"integer","minimum":0,"maximum":1000},"benefits":{"default":[],"maxItems":20,"type":"array","items":{"type":"string","minLength":1,"maxLength":300}}},"required":["name","threshold"]}}}},"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"201":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ItemsItem232"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"postV1LoyaltyProgramsByIdTiers"}},"/v1/loyalty/programs/{id}/tiers/{subId}":{"patch":{"tags":["loyalty"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":200},"threshold":{"type":"integer","minimum":0,"maximum":9007199254740991},"multiplierPct":{"type":"integer","minimum":0,"maximum":1000},"benefits":{"maxItems":20,"type":"array","items":{"type":"string","minLength":1,"maxLength":300}}}}}}},"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true},{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"subId","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ItemsItem232"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"patchV1LoyaltyProgramsByIdTiersBySubId"},"delete":{"tags":["loyalty"],"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true},{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"subId","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"ok":{"type":"boolean","enum":[true]}},"required":["ok"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"deleteV1LoyaltyProgramsByIdTiersBySubId"}},"/v1/loyalty/programs/{id}/rewards":{"get":{"tags":["loyalty"],"parameters":[{"schema":{"type":"integer","minimum":1,"maximum":200},"in":"query","name":"limit","required":false,"description":"Page size; omitted returns the whole list"},{"schema":{"type":"string","pattern":"^\\d{1,9}$"},"in":"query","name":"cursor","required":false,"description":"Opaque: the `nextCursor` of the previous page"},{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"items":{"type":"array","items":{"$ref":"#/components/schemas/ItemsItem233"}},"nextCursor":{"nullable":true,"type":"string"}},"required":["items","nextCursor"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1LoyaltyProgramsByIdRewards"},"post":{"summary":"A reward costs points and hands out a code from a coupon pool","tags":["loyalty"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":200},"description":{"nullable":true,"type":"string","maxLength":1000},"cost":{"type":"integer","minimum":1,"maximum":9007199254740991},"poolId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"enabled":{"default":true,"type":"boolean"}},"required":["name","cost","poolId"]}}}},"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"201":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ItemsItem233"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"postV1LoyaltyProgramsByIdRewards"}},"/v1/loyalty/programs/{id}/rewards/{subId}":{"patch":{"tags":["loyalty"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":200},"description":{"nullable":true,"type":"string","maxLength":1000},"cost":{"type":"integer","minimum":1,"maximum":9007199254740991},"poolId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"enabled":{"type":"boolean"}}}}}},"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true},{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"subId","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ItemsItem233"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"patchV1LoyaltyProgramsByIdRewardsBySubId"},"delete":{"tags":["loyalty"],"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true},{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"subId","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"ok":{"type":"boolean","enum":[true]}},"required":["ok"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"deleteV1LoyaltyProgramsByIdRewardsBySubId"}},"/v1/loyalty/programs/{id}/members":{"get":{"tags":["loyalty"],"parameters":[{"schema":{"default":50,"type":"integer","minimum":1,"maximum":200},"in":"query","name":"limit","required":false},{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"query","name":"cursor","required":false},{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"query","name":"tierId","required":false},{"schema":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"in":"query","name":"minBalance","required":false},{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"items":{"type":"array","items":{"$ref":"#/components/schemas/ItemsItem234"}},"nextCursor":{"nullable":true,"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},"required":["items","nextCursor"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1LoyaltyProgramsByIdMembers"}},"/v1/loyalty/programs/{id}/members/{profileId}":{"get":{"tags":["loyalty"],"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true},{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"profileId","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ItemsItem234"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1LoyaltyProgramsByIdMembersByProfileId"}},"/v1/loyalty/programs/{id}/members/{profileId}/vouchers":{"get":{"tags":["loyalty"],"parameters":[{"schema":{"type":"integer","minimum":1,"maximum":200},"in":"query","name":"limit","required":false,"description":"Page size; omitted returns the whole list"},{"schema":{"type":"string","pattern":"^\\d{1,9}$"},"in":"query","name":"cursor","required":false,"description":"Opaque: the `nextCursor` of the previous page"},{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true},{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"profileId","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"items":{"type":"array","items":{"$ref":"#/components/schemas/ItemsItem235"}},"nextCursor":{"nullable":true,"type":"string"}},"required":["items","nextCursor"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1LoyaltyProgramsByIdMembersByProfileIdVouchers"}},"/v1/loyalty/programs/{id}/transactions":{"get":{"summary":"The points ledger (append-only), newest first","tags":["loyalty"],"parameters":[{"schema":{"default":50,"type":"integer","minimum":1,"maximum":200},"in":"query","name":"limit","required":false},{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"query","name":"cursor","required":false},{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"query","name":"profileId","required":false},{"schema":{"type":"string","enum":["earn","redeem","adjust","expire","reverse"]},"in":"query","name":"kind","required":false},{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"items":{"type":"array","items":{"$ref":"#/components/schemas/ItemsItem236"}},"nextCursor":{"nullable":true,"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},"required":["items","nextCursor"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1LoyaltyProgramsByIdTransactions"}},"/v1/loyalty/programs/{id}/adjust":{"post":{"summary":"Add or remove points by hand (send `key` to make a retry count once)","tags":["loyalty"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"profileId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"delta":{"type":"integer","minimum":-1000000,"maximum":1000000},"reason":{"type":"string","minLength":1,"maxLength":300},"key":{"type":"string","minLength":1,"maxLength":200}},"required":["profileId","delta","reason"]}}}},"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ItemsItem236"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"postV1LoyaltyProgramsByIdAdjust"}},"/v1/loyalty/programs/{id}/redeem":{"post":{"summary":"Spend points on a reward; returns the coupon code","tags":["loyalty"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"profileId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"rewardId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"key":{"type":"string","minLength":1,"maxLength":200}},"required":["profileId","rewardId"]}}}},"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ItemsItem235"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"postV1LoyaltyProgramsByIdRedeem"}},"/v1/loyalty/vouchers/{id}/use":{"post":{"summary":"Mark a reward code used (also redeems the coupon code)","tags":["loyalty"],"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ItemsItem235"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"postV1LoyaltyVouchersByIdUse"}},"/v1/loyalty/programs/{id}/wallet":{"get":{"summary":"Wallet pass settings (never the certificate or keys)","tags":["loyalty"],"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"nullable":true,"type":"object","properties":{"programId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"organizationName":{"type":"string"},"backgroundColor":{"type":"string"},"foregroundColor":{"type":"string"},"labelColor":{"type":"string"},"applePassTypeId":{"nullable":true,"type":"string"},"appleTeamId":{"nullable":true,"type":"string"},"appleReady":{"type":"boolean"},"googleIssuerId":{"nullable":true,"type":"string"},"googleReady":{"type":"boolean"},"logoUrl":{"nullable":true,"type":"string"}},"required":["programId","organizationName","backgroundColor","foregroundColor","labelColor","applePassTypeId","appleTeamId","appleReady","googleIssuerId","googleReady","logoUrl"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1LoyaltyProgramsByIdWallet"},"put":{"summary":"Set up Apple and Google Wallet passes (secrets are write-only and stored sealed)","tags":["loyalty"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"organizationName":{"type":"string","minLength":1,"maxLength":200},"backgroundColor":{"default":"#1f2937","type":"string","pattern":"^#[0-9a-fA-F]{6}$"},"foregroundColor":{"default":"#ffffff","type":"string","pattern":"^#[0-9a-fA-F]{6}$"},"labelColor":{"default":"#d1d5db","type":"string","pattern":"^#[0-9a-fA-F]{6}$"},"applePassTypeId":{"nullable":true,"type":"string","pattern":"^pass\\.[A-Za-z0-9.-]+$"},"appleTeamId":{"nullable":true,"type":"string","pattern":"^[A-Z0-9]{10}$"},"appleCertPem":{"type":"string","maxLength":20000},"appleKeyPem":{"type":"string","maxLength":20000},"appleKeyPassphrase":{"type":"string","maxLength":500},"appleWwdrPem":{"nullable":true,"type":"string","maxLength":20000},"googleIssuerId":{"nullable":true,"type":"string","pattern":"^\\d{6,25}$"},"googleServiceAccountJson":{"type":"string","maxLength":20000},"logoPngBase64":{"nullable":true,"type":"string","maxLength":400000}},"required":["organizationName"]}}}},"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"programId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"organizationName":{"type":"string"},"backgroundColor":{"type":"string"},"foregroundColor":{"type":"string"},"labelColor":{"type":"string"},"applePassTypeId":{"nullable":true,"type":"string"},"appleTeamId":{"nullable":true,"type":"string"},"appleReady":{"type":"boolean"},"googleIssuerId":{"nullable":true,"type":"string"},"googleReady":{"type":"boolean"},"logoUrl":{"nullable":true,"type":"string"}},"required":["programId","organizationName","backgroundColor","foregroundColor","labelColor","applePassTypeId","appleTeamId","appleReady","googleIssuerId","googleReady","logoUrl"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"putV1LoyaltyProgramsByIdWallet"}},"/v1/loyalty/programs/{id}/passes":{"post":{"summary":"Issue (or fetch) a member card or reward pass and its install links","tags":["loyalty"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"profileId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"voucherId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},"required":["profileId"]}}}},"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PostV1LoyaltyProgramsByIdPassesResponse"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"postV1LoyaltyProgramsByIdPasses"}},"/v1/loyalty/programs/{id}/passes/{serial}/replace-link":{"post":{"summary":"Revoke a pass's install link and return a new one (a card already added to a wallet keeps working)","tags":["loyalty"],"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true},{"schema":{"type":"string","minLength":1,"maxLength":64},"in":"path","name":"serial","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PostV1LoyaltyProgramsByIdPassesResponse"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"postV1LoyaltyProgramsByIdPassesBySerialReplaceLink"}},"/v1/loyalty/hub":{"get":{"summary":"Customer hub settings and its public URL","tags":["loyalty"],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetV1LoyaltyHubResponse"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1LoyaltyHub"},"put":{"tags":["loyalty"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"enabled":{"type":"boolean"},"title":{"type":"string","minLength":1,"maxLength":120},"accentColor":{"type":"string","pattern":"^#[0-9a-fA-F]{6}$"},"shopUrl":{"nullable":true,"type":"string","maxLength":2048,"format":"uri"},"programId":{"nullable":true,"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"sections":{"type":"object","properties":{"orders":{"type":"boolean"},"wishlist":{"type":"boolean"},"recommendations":{"type":"boolean"},"loyalty":{"type":"boolean"},"preferences":{"type":"boolean"}},"required":["orders","wishlist","recommendations","loyalty","preferences"]}},"required":["enabled","title","accentColor","sections"]}}}},"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetV1LoyaltyHubResponse"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"putV1LoyaltyHub"}},"/wallet/logo/{ws}/{file}":{"get":{"summary":"A programme's wallet logo (Google Wallet fetches it from here)","tags":["loyalty"],"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"ws","required":true},{"schema":{"type":"string","pattern":"^[0-9a-f-]{36}\\.png$"},"in":"path","name":"file","required":true}],"security":[],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getWalletLogoByWsByFile"}},"/loyalty/v1/program":{"get":{"summary":"Programme name, tiers and rewards for a storefront widget (no member data)","tags":["loyalty"],"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"query","name":"programId","required":false}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"name":{"type":"string"},"pointsName":{"type":"string"},"tiers":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"name":{"type":"string"},"threshold":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"benefits":{"type":"array","items":{"type":"string"}}},"required":["id","name","threshold","benefits"],"additionalProperties":false}},"rewards":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"name":{"type":"string"},"description":{"nullable":true,"type":"string"},"cost":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["id","name","description","cost"],"additionalProperties":false}}},"required":["id","name","pointsName","tiers","rewards"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getLoyaltyV1Program"}},"/wallet/install/{token}":{"get":{"summary":"Add a pass to Apple Wallet (download) or Google Wallet (redirect)","tags":["loyalty"],"parameters":[{"schema":{"type":"string","enum":["apple","google"]},"in":"query","name":"to","required":true},{"schema":{"type":"string","minLength":10,"maxLength":500},"in":"path","name":"token","required":true}],"security":[],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getWalletInstallByToken"}},"/wallet/apple/{ws}/v1/devices/{device}/registrations/{passType}/{serial}":{"post":{"tags":["loyalty"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"pushToken":{"type":"string","minLength":1,"maxLength":200}},"required":["pushToken"]}}}},"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"ws","required":true},{"schema":{"type":"string","minLength":1,"maxLength":200},"in":"path","name":"device","required":true},{"schema":{"type":"string","minLength":1,"maxLength":200},"in":"path","name":"passType","required":true},{"schema":{"type":"string","minLength":1,"maxLength":64},"in":"path","name":"serial","required":true}],"security":[],"responses":{"201":{"description":"Default Response","content":{"application/json":{"schema":{}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"postWalletAppleByWsV1DevicesByDeviceRegistrationsByPassTypeBySerial"},"delete":{"tags":["loyalty"],"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"ws","required":true},{"schema":{"type":"string","minLength":1,"maxLength":200},"in":"path","name":"device","required":true},{"schema":{"type":"string","minLength":1,"maxLength":200},"in":"path","name":"passType","required":true},{"schema":{"type":"string","minLength":1,"maxLength":64},"in":"path","name":"serial","required":true}],"security":[],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"deleteWalletAppleByWsV1DevicesByDeviceRegistrationsByPassTypeBySerial"}},"/wallet/apple/{ws}/v1/devices/{device}/registrations/{passType}":{"get":{"summary":"Serial numbers of this device's passes changed since the tag","tags":["loyalty"],"parameters":[{"schema":{"type":"string","pattern":"^\\d{1,16}$"},"in":"query","name":"passesUpdatedSince","required":false},{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"ws","required":true},{"schema":{"type":"string","minLength":1,"maxLength":200},"in":"path","name":"device","required":true},{"schema":{"type":"string","minLength":1,"maxLength":200},"in":"path","name":"passType","required":true}],"security":[],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getWalletAppleByWsV1DevicesByDeviceRegistrationsByPassType"}},"/wallet/apple/{ws}/v1/passes/{passType}/{serial}":{"get":{"summary":"The latest version of a pass","tags":["loyalty"],"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"ws","required":true},{"schema":{"type":"string","minLength":1,"maxLength":200},"in":"path","name":"passType","required":true},{"schema":{"type":"string","minLength":1,"maxLength":64},"in":"path","name":"serial","required":true}],"security":[],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getWalletAppleByWsV1PassesByPassTypeBySerial"}},"/wallet/apple/{ws}/v1/log":{"post":{"tags":["loyalty"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"logs":{"maxItems":50,"type":"array","items":{"type":"string","maxLength":2000}}},"required":["logs"]}}}},"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"ws","required":true}],"security":[],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"postWalletAppleByWsV1Log"}},"/hub/{ws}":{"get":{"summary":"The customer hub page (or its sign-in form)","tags":["loyalty"],"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"ws","required":true}],"security":[],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"string"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getHubByWs"}},"/hub/{ws}/signin":{"post":{"tags":["loyalty"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","additionalProperties":{}}}}},"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"ws","required":true}],"security":[],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"string"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"postHubByWsSignin"}},"/hub/{ws}/auth/{token}":{"get":{"tags":["loyalty"],"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"ws","required":true},{"schema":{"type":"string","minLength":10,"maxLength":600},"in":"path","name":"token","required":true}],"security":[],"responses":{"302":{"description":"Default Response","content":{"application/json":{"schema":{}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getHubByWsAuthByToken"}},"/hub/{ws}/signout":{"post":{"tags":["loyalty"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","additionalProperties":{}}}}},"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"ws","required":true}],"security":[],"responses":{"302":{"description":"Default Response","content":{"application/json":{"schema":{}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"postHubByWsSignout"}},"/hub/{ws}/wishlist":{"post":{"tags":["loyalty"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","additionalProperties":{}}}}},"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"ws","required":true}],"security":[],"responses":{"302":{"description":"Default Response","content":{"application/json":{"schema":{}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"postHubByWsWishlist"}},"/hub/{ws}/wishlist/remove":{"post":{"tags":["loyalty"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","additionalProperties":{}}}}},"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"ws","required":true}],"security":[],"responses":{"302":{"description":"Default Response","content":{"application/json":{"schema":{}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"postHubByWsWishlistRemove"}},"/hub/{ws}/redeem":{"post":{"tags":["loyalty"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","additionalProperties":{}}}}},"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"ws","required":true}],"security":[],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"string"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"postHubByWsRedeem"}},"/hub/{ws}/api/link":{"post":{"summary":"Email a hub sign-in link (same reply whether or not the address is known)","tags":["loyalty"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"email":{"type":"string","maxLength":254,"format":"email","pattern":"^(?:[A-Za-z0-9_'+\\-]+\\.)*[A-Za-z0-9_'+\\-]*[A-Za-z0-9_+-]@(?:[A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$"}},"required":["email"]}}}},"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"ws","required":true}],"security":[],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"ok":{"type":"boolean","enum":[true]}},"required":["ok"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"postHubByWsApiLink"}},"/hub/{ws}/api/session":{"post":{"summary":"Swap the emailed link token for a 7-day session token","tags":["loyalty"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"token":{"type":"string","minLength":10,"maxLength":600}},"required":["token"]}}}},"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"ws","required":true}],"security":[],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"session":{"type":"string"},"expiresAt":{"type":"string"}},"required":["session","expiresAt"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"postHubByWsApiSession"}},"/hub/{ws}/api/me":{"get":{"summary":"Everything the signed-in shopper sees","tags":["loyalty"],"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"ws","required":true}],"security":[],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"title":{"type":"string"},"accentColor":{"type":"string"},"shopUrl":{"nullable":true,"type":"string"},"sections":{"$ref":"#/components/schemas/Sections2"},"profile":{"type":"object","properties":{"firstName":{"nullable":true,"type":"string"},"email":{"nullable":true,"type":"string"}},"required":["firstName","email"],"additionalProperties":false},"orders":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"number":{"type":"string"},"placedAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"status":{"type":"string"},"fulfillmentStatus":{"nullable":true,"type":"string"},"total":{"type":"object","properties":{"minor":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"currency":{"type":"string"}},"required":["minor","currency"],"additionalProperties":false},"trackingUrl":{"nullable":true,"type":"string"},"shippedAt":{"nullable":true,"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"lines":{"type":"array","items":{"type":"object","properties":{"title":{"nullable":true,"type":"string"},"quantity":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["title","quantity"],"additionalProperties":false}}},"required":["id","number","placedAt","status","fulfillmentStatus","total","trackingUrl","shippedAt","lines"],"additionalProperties":false}},"wishlist":{"type":"array","items":{"type":"object","properties":{"productId":{"type":"string"},"title":{"nullable":true,"type":"string"},"url":{"nullable":true,"type":"string"},"imageUrl":{"nullable":true,"type":"string"}},"required":["productId","title","url","imageUrl"],"additionalProperties":false}},"recommendations":{"type":"array","items":{"type":"object","properties":{"productId":{"type":"string"},"title":{"type":"string"},"url":{"nullable":true,"type":"string"},"imageUrl":{"nullable":true,"type":"string"}},"required":["productId","title","url","imageUrl"],"additionalProperties":false}},"loyalty":{"nullable":true,"type":"object","properties":{"programName":{"type":"string"},"pointsName":{"type":"string"},"balance":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"tierName":{"nullable":true,"type":"string"},"expiringSoon":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"rewards":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"name":{"type":"string"},"cost":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"affordable":{"type":"boolean"}},"required":["id","name","cost","affordable"],"additionalProperties":false}}},"required":["programName","pointsName","balance","tierName","expiringSoon","rewards"],"additionalProperties":false},"preferencesUrl":{"nullable":true,"type":"string"}},"required":["title","accentColor","shopUrl","sections","profile","orders","wishlist","recommendations","loyalty","preferencesUrl"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getHubByWsApiMe"}},"/hub/{ws}/api/wishlist":{"post":{"tags":["loyalty"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"productId":{"type":"string","minLength":1,"maxLength":256}},"required":["productId"]}}}},"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"ws","required":true}],"security":[],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"ok":{"type":"boolean","enum":[true]}},"required":["ok"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"postHubByWsApiWishlist"}},"/hub/{ws}/api/wishlist/{productId}":{"delete":{"tags":["loyalty"],"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"ws","required":true},{"schema":{"type":"string","minLength":1,"maxLength":256},"in":"path","name":"productId","required":true}],"security":[],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"ok":{"type":"boolean","enum":[true]}},"required":["ok"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"deleteHubByWsApiWishlistByProductId"}},"/hub/{ws}/api/redeem":{"post":{"summary":"Spend the shopper's points on a reward. Send your own `key` (8-64 of A-Z a-z 0-9 _ -) per redemption: a retry with the same key spends once","tags":["loyalty"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"rewardId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"key":{"type":"string","pattern":"^[A-Za-z0-9_-]{8,64}$"}},"required":["rewardId"]}}}},"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"ws","required":true}],"security":[],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"rewardId":{"type":"string"}},"required":["code","rewardId"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"postHubByWsApiRedeem"}},"/v1/transactional/metadata-fields":{"get":{"summary":"Declared metadata keys shown as message-log columns, each with an optional view template ({{ value }})","tags":["transactional"],"parameters":[{"schema":{"type":"integer","minimum":1,"maximum":200},"in":"query","name":"limit","required":false,"description":"Page size; omitted returns the whole list"},{"schema":{"type":"string","pattern":"^\\d{1,9}$"},"in":"query","name":"cursor","required":false,"description":"Opaque: the `nextCursor` of the previous page"}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"items":{"type":"array","items":{"$ref":"#/components/schemas/ItemsItem237"}},"nextCursor":{"nullable":true,"type":"string"}},"required":["items","nextCursor"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1TransactionalMetadataFields"},"post":{"tags":["transactional"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","pattern":"^[\\w.-]{1,64}$"},"viewTemplate":{"nullable":true,"type":"string","maxLength":500}},"required":["name"]}}}},"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ItemsItem237"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"postV1TransactionalMetadataFields"}},"/v1/transactional/metadata-fields/{name}":{"patch":{"tags":["transactional"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"viewTemplate":{"nullable":true,"type":"string","maxLength":500}},"required":["viewTemplate"]}}}},"parameters":[{"schema":{"type":"string","pattern":"^[\\w.-]{1,64}$"},"in":"path","name":"name","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ItemsItem237"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"patchV1TransactionalMetadataFieldsByName"},"delete":{"summary":"Stop showing a metadata key in the log; messages keep their metadata","tags":["transactional"],"parameters":[{"schema":{"type":"string","pattern":"^[\\w.-]{1,64}$"},"in":"path","name":"name","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"ok":{"type":"boolean","enum":[true]}},"required":["ok"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"deleteV1TransactionalMetadataFieldsByName"}},"/v1/messages/{id}/preview":{"get":{"summary":"A message re-rendered for its recipient (any purpose and channel; stored content is transactional email only). Unsubscribe links stay placeholders","tags":["messages"],"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"title":{"type":"string"},"html":{"type":"string"}},"required":["title","html"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1MessagesByIdPreview"}},"/v1/send-options/{sourceKind}/{sourceId}/behaviour":{"put":{"summary":"Strict Liquid (null = default strict) and send-from-contact-owner for a campaign, journey or sequence; other send options are untouched","tags":["transactional"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"strictLiquid":{"nullable":true,"type":"boolean"},"fromOwner":{"type":"boolean"}}}}}},"parameters":[{"schema":{"type":"string","enum":["campaign","workflow","sequence"]},"in":"path","name":"sourceKind","required":true},{"schema":{"type":"string","minLength":1,"maxLength":128},"in":"path","name":"sourceId","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"strictLiquid":{"nullable":true,"type":"boolean"},"fromOwner":{"type":"boolean"}},"required":["strictLiquid","fromOwner"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"putV1SendOptionsBySourceKindBySourceIdBehaviour"}},"/v1/senders/{id}/signing":{"get":{"summary":"S/MIME certificate and PGP signing key of an email sender (metadata only; private parts never leave the vault)","tags":["connections"],"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetV1SendersByIdSigningResponse"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1SendersByIdSigning"}},"/v1/senders/{id}/signing/smime":{"put":{"summary":"Sign this sender's email with S/MIME: PEM certificate issued for its address, its unencrypted private key, optional chain","tags":["connections"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"certificatePem":{"type":"string","minLength":50,"maxLength":20000},"privateKeyPem":{"type":"string","minLength":50,"maxLength":20000},"chainPem":{"type":"string","maxLength":60000}},"required":["certificatePem","privateKeyPem"]}}}},"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetV1SendersByIdSigningResponse"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"putV1SendersByIdSigningSmime"}},"/v1/senders/{id}/signing/pgp":{"put":{"summary":"Sign this sender's email with PGP/MIME: an armored private key with a user id for its address, and its passphrase","tags":["connections"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"privateKeyArmored":{"type":"string","minLength":50,"maxLength":60000},"passphrase":{"type":"string","maxLength":500}},"required":["privateKeyArmored"]}}}},"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetV1SendersByIdSigningResponse"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"putV1SendersByIdSigningPgp"}},"/v1/senders/{id}/signing/{kind}":{"delete":{"tags":["connections"],"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true},{"schema":{"type":"string","enum":["smime","pgp"]},"in":"path","name":"kind","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetV1SendersByIdSigningResponse"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"deleteV1SendersByIdSigningByKind"}},"/v1/leads/company-fields":{"get":{"summary":"Custom company fields","tags":["leads"],"parameters":[{"schema":{"type":"integer","minimum":1,"maximum":200},"in":"query","name":"limit","required":false,"description":"Page size; omitted returns the whole list"},{"schema":{"type":"string","pattern":"^\\d{1,9}$"},"in":"query","name":"cursor","required":false,"description":"Opaque: the `nextCursor` of the previous page"}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"items":{"type":"array","items":{"$ref":"#/components/schemas/ItemsItem238"}},"nextCursor":{"nullable":true,"type":"string"}},"required":["items","nextCursor"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1LeadsCompanyFields"},"post":{"tags":["leads"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"key":{"type":"string","pattern":"^[a-z][a-z0-9_]{0,63}$"},"label":{"type":"string","minLength":1,"maxLength":100},"type":{"type":"string","enum":["text","number","boolean","date","select","url"]},"options":{"maxItems":200,"type":"array","items":{"type":"string","minLength":1,"maxLength":100}},"required":{"type":"boolean"}},"required":["key","label","type"]}}}},"responses":{"201":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ItemsItem238"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"postV1LeadsCompanyFields"}},"/v1/leads/company-fields/{key}":{"patch":{"tags":["leads"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"label":{"type":"string","minLength":1,"maxLength":100},"options":{"maxItems":200,"type":"array","items":{"type":"string","minLength":1,"maxLength":100}},"required":{"type":"boolean"}}}}}},"parameters":[{"schema":{"type":"string","minLength":1,"maxLength":64},"in":"path","name":"key","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ItemsItem238"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"patchV1LeadsCompanyFieldsByKey"},"delete":{"tags":["leads"],"parameters":[{"schema":{"type":"string","minLength":1,"maxLength":64},"in":"path","name":"key","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"ok":{"type":"boolean","enum":[true]}},"required":["ok"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"deleteV1LeadsCompanyFieldsByKey"}},"/v1/leads/companies/bulk-delete":{"post":{"summary":"Delete up to 500 companies; do-not-contact blocks on their domains stay","tags":["leads"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"ids":{"$ref":"#/components/schemas/LeadIds"}},"required":["ids"]}}}},"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"deleted":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"failed":{"type":"array","items":{"type":"object","properties":{"index":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"reason":{"type":"string"}},"required":["index","reason"],"additionalProperties":false}}},"required":["deleted","failed"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"postV1LeadsCompaniesBulkDelete"}},"/v1/leads/companies/batch":{"post":{"summary":"Create, edit, delete and link companies in one call (up to 500 operations); failures are reported per item","tags":["leads"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"create":{"maxItems":500,"type":"array","items":{"$ref":"#/components/schemas/PostV1LeadsCompaniesBody"}},"update":{"maxItems":500,"type":"array","items":{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":200},"industry":{"type":"string","maxLength":100},"sizeBand":{"type":"string","maxLength":30},"country":{"type":"string","minLength":2,"maxLength":2},"customFields":{"type":"object","additionalProperties":{}},"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},"required":["id"]}},"delete":{"$ref":"#/components/schemas/ProfileIds7"},"link":{"maxItems":500,"type":"array","items":{"type":"object","properties":{"companyId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"profileId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"primary":{"type":"boolean"},"jobTitle":{"nullable":true,"type":"string","maxLength":200},"role":{"nullable":true,"type":"string","maxLength":100}},"required":["companyId","profileId"]}}}}}}},"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"created":{"$ref":"#/components/schemas/Conflicts"},"updated":{"$ref":"#/components/schemas/Conflicts"},"linked":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"deleted":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"failed":{"type":"array","items":{"type":"object","properties":{"op":{"type":"string"},"index":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"reason":{"type":"string"}},"required":["op","index","reason"],"additionalProperties":false}}},"required":["created","updated","linked","deleted","failed"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"postV1LeadsCompaniesBatch"}},"/v1/leads/companies/{id}/contacts":{"post":{"summary":"Link several contacts at once, with optional link fields","tags":["leads"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"links":{"minItems":1,"maxItems":1000,"type":"array","items":{"$ref":"#/components/schemas/PostV1LeadsCompaniesByIdLinkBody"}}},"required":["links"]}}}},"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetV1LeadsCompaniesByIdResponse"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"postV1LeadsCompaniesByIdContacts"}},"/v1/leads/companies/import-mapped":{"post":{"summary":"Import parsed CSV rows with a column mapping (built-in and custom company fields); existing domains are skipped or updated","tags":["leads"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"rows":{"minItems":1,"maxItems":5000,"type":"array","items":{"type":"object","additionalProperties":{"type":"string","maxLength":4000}}},"mapping":{"type":"object","additionalProperties":{"anyOf":[{"type":"string","enum":["domain","name","industry","sizeBand","country","skip"]},{"type":"string","pattern":"^custom:[a-z][a-z0-9_]{0,63}$"}]}},"onExisting":{"default":"skip","type":"string","enum":["skip","update"]}},"required":["rows","mapping"]}}}},"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"imported":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"created":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"updated":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"skipped":{"$ref":"#/components/schemas/Skipped2"}},"required":["imported","created","updated","skipped"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"postV1LeadsCompaniesImportMapped"}},"/v1/leads/companies/export":{"get":{"summary":"Every company as CSV, with score and custom fields","tags":["leads"],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"filename":{"type":"string"},"csv":{"type":"string"},"rows":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"truncated":{"type":"boolean"}},"required":["filename","csv","rows","truncated"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1LeadsCompaniesExport"}},"/v1/leads/companies/search":{"get":{"summary":"Companies whose name or domain starts with q","tags":["leads"],"parameters":[{"schema":{"type":"string","minLength":1,"maxLength":100},"in":"query","name":"q","required":true},{"schema":{"default":10,"type":"integer","minimum":1,"maximum":50},"in":"query","name":"limit","required":false}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"items":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"name":{"type":"string"},"domain":{"type":"string"},"suppressed":{"type":"boolean"}},"required":["id","name","domain","suppressed"],"additionalProperties":false}}},"required":["items"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1LeadsCompaniesSearch"}},"/v1/leads/companies/{id}/score":{"get":{"summary":"Account score plus the roll-up of linked contacts' scores (profile attribute `key`)","tags":["leads"],"parameters":[{"schema":{"default":"score","type":"string","pattern":"^[A-Za-z][A-Za-z0-9_]{0,63}$"},"in":"query","name":"key","required":false},{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetV1LeadsCompaniesByIdScoreResponse"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1LeadsCompaniesByIdScore"},"post":{"summary":"Add (or with a negative delta, take) account score points","tags":["leads"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"delta":{"type":"integer","minimum":-100000,"maximum":100000}},"required":["delta"]}}}},"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetV1LeadsCompaniesByIdScoreResponse"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"postV1LeadsCompaniesByIdScore"}},"/v1/leads/companies/{id}/files":{"get":{"tags":["leads"],"parameters":[{"schema":{"type":"integer","minimum":1,"maximum":200},"in":"query","name":"limit","required":false,"description":"Page size; omitted returns the whole list"},{"schema":{"type":"string","pattern":"^\\d{1,9}$"},"in":"query","name":"cursor","required":false,"description":"Opaque: the `nextCursor` of the previous page"},{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"items":{"type":"array","items":{"$ref":"#/components/schemas/ItemsItem239"}},"nextCursor":{"nullable":true,"type":"string"}},"required":["items","nextCursor"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1LeadsCompaniesByIdFiles"},"post":{"summary":"Upload a file (multipart field \"file\": PDF, image, text, CSV, Office or ZIP, up to 25 MB)","tags":["leads"],"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"201":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ItemsItem239"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"postV1LeadsCompaniesByIdFiles"}},"/v1/leads/companies/{id}/files/{fileId}/url":{"get":{"summary":"A download link valid for five minutes","tags":["leads"],"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true},{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"fileId","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"url":{"type":"string"}},"required":["url"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1LeadsCompaniesByIdFilesByFileIdUrl"}},"/v1/leads/companies/{id}/files/{fileId}":{"delete":{"tags":["leads"],"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true},{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"fileId","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"ok":{"type":"boolean","enum":[true]}},"required":["ok"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"deleteV1LeadsCompaniesByIdFilesByFileId"}},"/v1/leads/companies/{id}/crm":{"get":{"tags":["crm"],"parameters":[{"schema":{"type":"integer","minimum":1,"maximum":200},"in":"query","name":"limit","required":false,"description":"Page size; omitted returns the whole list"},{"schema":{"type":"string","pattern":"^\\d{1,9}$"},"in":"query","name":"cursor","required":false,"description":"Opaque: the `nextCursor` of the previous page"},{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetV1LeadsCompaniesByIdCrmResponse"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1LeadsCompaniesByIdCrm"}},"/v1/leads/companies/{id}/crm/push":{"post":{"summary":"Create or update the company in the CRM (found by link, domain or name) and associate its contacts already in the CRM","tags":["crm"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PostV1DeliverabilitySeedsBody"}}}},"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"externalId":{"type":"string"},"created":{"type":"boolean"},"associated":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["externalId","created","associated"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"postV1LeadsCompaniesByIdCrmPush"}},"/v1/leads/companies/{id}/crm/connect":{"post":{"summary":"Find the company in the CRM and link it without creating anything; empty fields and the owner are filled from the CRM","tags":["crm"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PostV1DeliverabilitySeedsBody"}}}},"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"found":{"nullable":true,"type":"object","properties":{"externalId":{"type":"string"},"name":{"type":"string"},"domain":{"type":"string"},"industry":{"type":"string"},"country":{"type":"string"},"ownerId":{"type":"string"},"custom":{"type":"object","additionalProperties":{"type":"string"}}},"required":["externalId","name"],"additionalProperties":false},"ownerSet":{"type":"boolean"},"fieldsSet":{"type":"array","items":{"type":"string"}}},"required":["found","ownerSet","fieldsSet"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"postV1LeadsCompaniesByIdCrmConnect"}},"/v1/profiles/{id}/crm":{"get":{"summary":"CRM records this contact is linked to","tags":["crm"],"parameters":[{"schema":{"type":"integer","minimum":1,"maximum":200},"in":"query","name":"limit","required":false,"description":"Page size; omitted returns the whole list"},{"schema":{"type":"string","pattern":"^\\d{1,9}$"},"in":"query","name":"cursor","required":false,"description":"Opaque: the `nextCursor` of the previous page"},{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetV1LeadsCompaniesByIdCrmResponse"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1ProfilesByIdCrm"}},"/v1/profiles/{id}/crm/push":{"post":{"summary":"Push this contact to the CRM now","tags":["crm"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PostV1DeliverabilitySeedsBody"}}}},"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"result":{"type":"string","enum":["pushed","skipped"]}},"required":["result"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"postV1ProfilesByIdCrmPush"}},"/v1/profiles/{id}/crm/find":{"post":{"summary":"Find this contact in the CRM by email and link it (nothing is created)","tags":["crm"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PostV1DeliverabilitySeedsBody"}}}},"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"externalId":{"nullable":true,"type":"string"}},"required":["externalId"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"postV1ProfilesByIdCrmFind"}},"/v1/integrations/connections/{id}/crm/sources":{"get":{"summary":"Lists, reports, list views, campaigns or filters that can be imported","tags":["crm"],"parameters":[{"schema":{"type":"integer","minimum":1,"maximum":200},"in":"query","name":"limit","required":false,"description":"Page size; omitted returns the whole list"},{"schema":{"type":"string","pattern":"^\\d{1,9}$"},"in":"query","name":"cursor","required":false,"description":"Opaque: the `nextCursor` of the previous page"},{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"items":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"kind":{"type":"string","enum":["list","report","list_view","campaign","filter"]},"size":{"nullable":true,"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["id","name","kind","size"],"additionalProperties":false}},"nextCursor":{"nullable":true,"type":"string"}},"required":["items","nextCursor"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1IntegrationsConnectionsByIdCrmSources"}},"/v1/integrations/crm-imports":{"get":{"tags":["crm"],"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"query","name":"connectionId","required":false},{"schema":{"type":"integer","minimum":1,"maximum":200},"in":"query","name":"limit","required":false,"description":"Page size; omitted returns the whole list"},{"schema":{"type":"string","pattern":"^\\d{1,9}$"},"in":"query","name":"cursor","required":false,"description":"Opaque: the `nextCursor` of the previous page"}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"items":{"type":"array","items":{"$ref":"#/components/schemas/ItemsItem241"}},"nextCursor":{"nullable":true,"type":"string"}},"required":["items","nextCursor"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1IntegrationsCrmImports"}},"/v1/integrations/connections/{id}/crm/imports":{"post":{"summary":"Import (or re-import) the members of a CRM source; no consent is granted by importing","tags":["crm"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"sourceId":{"type":"string","pattern":"^(list|report|list_view|campaign|filter):[A-Za-z0-9_-]{1,64}$"},"name":{"type":"string","minLength":1,"maxLength":200},"listId":{"nullable":true,"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"refreshHours":{"nullable":true,"type":"integer","minimum":1,"maximum":720}},"required":["sourceId","name"]}}}},"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"201":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ItemsItem241"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"postV1IntegrationsConnectionsByIdCrmImports"}},"/v1/integrations/crm-imports/{id}":{"delete":{"tags":["crm"],"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"ok":{"type":"boolean","enum":[true]}},"required":["ok"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"deleteV1IntegrationsCrmImportsById"}},"/v1/integrations/crm-log":{"get":{"summary":"Per-record CRM sync log, newest first","tags":["crm"],"parameters":[{"schema":{"default":50,"type":"integer","minimum":1,"maximum":200},"in":"query","name":"limit","required":false},{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"query","name":"cursor","required":false},{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"query","name":"connectionId","required":false},{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"query","name":"localId","required":false},{"schema":{"type":"string","enum":["ok","skipped","error"]},"in":"query","name":"status","required":false}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"items":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"connectionId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"entity":{"type":"string","enum":["contact","company","source"]},"direction":{"type":"string","enum":["push","pull","link","import"]},"status":{"type":"string","enum":["ok","skipped","error"]},"externalId":{"nullable":true,"type":"string"},"localId":{"nullable":true,"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"message":{"nullable":true,"type":"string"},"createdAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"}},"required":["id","connectionId","entity","direction","status","externalId","localId","message","createdAt"],"additionalProperties":false}},"nextCursor":{"nullable":true,"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},"required":["items","nextCursor"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1IntegrationsCrmLog"}},"/v1/integrations/crm-settings":{"get":{"summary":"Workspace CRM settings (sync log retention)","tags":["crm"],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"logRetentionDays":{"type":"integer","minimum":7,"maximum":3650}},"required":["logRetentionDays"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1IntegrationsCrmSettings"},"put":{"summary":"Set how many days the CRM sync log keeps rows (7 to 3650)","tags":["crm"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"logRetentionDays":{"type":"integer","minimum":7,"maximum":3650}},"required":["logRetentionDays"]}}}},"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"logRetentionDays":{"type":"integer","minimum":7,"maximum":3650}},"required":["logRetentionDays"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"putV1IntegrationsCrmSettings"}},"/v1/integrations/connections/{id}/crm/users":{"get":{"tags":["crm"],"parameters":[{"schema":{"type":"integer","minimum":1,"maximum":200},"in":"query","name":"limit","required":false,"description":"Page size; omitted returns the whole list"},{"schema":{"type":"string","pattern":"^\\d{1,9}$"},"in":"query","name":"cursor","required":false,"description":"Opaque: the `nextCursor` of the previous page"},{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"items":{"$ref":"#/components/schemas/Items57"},"nextCursor":{"nullable":true,"type":"string"}},"required":["items","nextCursor"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1IntegrationsConnectionsByIdCrmUsers"},"put":{"tags":["crm"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"pairs":{"minItems":1,"maxItems":500,"type":"array","items":{"type":"object","properties":{"externalUserId":{"type":"string","minLength":1,"maxLength":100},"userId":{"nullable":true,"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},"required":["externalUserId","userId"]}}},"required":["pairs"]}}}},"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PutV1IntegrationsConnectionsByIdCrmUsersResponse"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"putV1IntegrationsConnectionsByIdCrmUsers"}},"/v1/integrations/connections/{id}/crm/users/refresh":{"post":{"summary":"Read the CRM users and match new ones to members by email","tags":["crm"],"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PutV1IntegrationsConnectionsByIdCrmUsersResponse"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"postV1IntegrationsConnectionsByIdCrmUsersRefresh"}},"/v1/destinations":{"get":{"tags":["destinations"],"parameters":[{"schema":{"type":"integer","minimum":1,"maximum":200},"in":"query","name":"limit","required":false,"description":"Page size; omitted returns the whole list"},{"schema":{"type":"string","pattern":"^\\d{1,9}$"},"in":"query","name":"cursor","required":false,"description":"Opaque: the `nextCursor` of the previous page"}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"items":{"type":"array","items":{"$ref":"#/components/schemas/ItemsItem243"}},"nextCursor":{"nullable":true,"type":"string"}},"required":["items","nextCursor"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1Destinations"},"post":{"summary":"Add a destination; profiles that opted out of tracking are never forwarded","tags":["destinations"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"kind":{"type":"string","enum":["webhook","mixpanel","amplitude","ga4","bigquery"]},"name":{"type":"string","minLength":1,"maxLength":120},"config":{"default":{},"type":"object","additionalProperties":{"type":"string","maxLength":4096}},"credentials":{"type":"object","additionalProperties":{"type":"string","maxLength":4096}},"mapping":{"$ref":"#/components/schemas/Mapping4"}},"required":["kind","name","credentials"]}}}},"responses":{"201":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ItemsItem243"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"postV1Destinations"}},"/v1/destinations/{id}":{"get":{"tags":["destinations"],"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ItemsItem243"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1DestinationsById"},"patch":{"tags":["destinations"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":120},"enabled":{"type":"boolean"},"config":{"type":"object","additionalProperties":{"type":"string","maxLength":4096}},"credentials":{"type":"object","additionalProperties":{"type":"string","maxLength":4096}},"mapping":{"$ref":"#/components/schemas/Mapping4"}}}}}},"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ItemsItem243"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"patchV1DestinationsById"},"delete":{"tags":["destinations"],"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"ok":{"type":"boolean","enum":[true]}},"required":["ok"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"deleteV1DestinationsById"}},"/v1/destinations/{id}/test":{"post":{"summary":"Send one test event to the destination","tags":["destinations"],"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"ok":{"type":"boolean"},"message":{"type":"string"}},"required":["ok","message"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"postV1DestinationsByIdTest"}},"/v1/destinations/{id}/deliveries":{"get":{"summary":"Recent deliveries with their status and last error","tags":["destinations"],"parameters":[{"schema":{"default":50,"type":"integer","minimum":1,"maximum":200},"in":"query","name":"limit","required":false},{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"query","name":"cursor","required":false},{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"items":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"key":{"type":"string"},"status":{"type":"string","enum":["pending","sent","failed","dropped"]},"attempts":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"lastError":{"nullable":true,"type":"string"},"sentAt":{"nullable":true,"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"createdAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"type":{"type":"string"},"event":{"nullable":true,"type":"string"}},"required":["id","key","status","attempts","lastError","sentAt","createdAt","type","event"],"additionalProperties":false}},"nextCursor":{"nullable":true,"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},"required":["items","nextCursor"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1DestinationsByIdDeliveries"}},"/v1/sql-sources":{"get":{"tags":["sql-sources"],"parameters":[{"schema":{"type":"integer","minimum":1,"maximum":200},"in":"query","name":"limit","required":false,"description":"Page size; omitted returns the whole list"},{"schema":{"type":"string","pattern":"^\\d{1,9}$"},"in":"query","name":"cursor","required":false,"description":"Opaque: the `nextCursor` of the previous page"}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"items":{"type":"array","items":{"$ref":"#/components/schemas/ItemsItem244"}},"nextCursor":{"nullable":true,"type":"string"}},"required":["items","nextCursor"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1SqlSources"},"post":{"summary":"Add a scheduled SELECT; only SELECT statements are accepted","tags":["sql-sources"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"kind":{"type":"string","enum":["postgres","mysql","databricks"]},"name":{"type":"string","minLength":1,"maxLength":120},"credentials":{"type":"object","additionalProperties":{"anyOf":[{"type":"string","maxLength":4096},{"type":"number"},{"type":"boolean"}]}},"query":{"type":"string","minLength":1,"maxLength":20000},"target":{"type":"string","enum":["profiles","events","objects"]},"objectType":{"nullable":true,"type":"string","maxLength":64},"mapping":{"$ref":"#/components/schemas/Mapping6"},"cursorColumn":{"nullable":true,"type":"string","pattern":"^[A-Za-z_][A-Za-z0-9_]{0,62}$"},"everyMinutes":{"type":"integer","minimum":15,"maximum":10080},"timeoutMs":{"type":"integer","minimum":1000,"maximum":300000},"maxRows":{"type":"integer","minimum":1,"maximum":50000},"enabled":{"type":"boolean"}},"required":["kind","name","credentials","query","target","mapping"]}}}},"responses":{"201":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ItemsItem244"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"postV1SqlSources"}},"/v1/sql-sources/{id}":{"get":{"tags":["sql-sources"],"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ItemsItem244"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1SqlSourcesById"},"patch":{"summary":"Edit; a blank password or token keeps the stored one","tags":["sql-sources"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":120},"credentials":{"type":"object","additionalProperties":{"anyOf":[{"type":"string","maxLength":4096},{"type":"number"},{"type":"boolean"}]}},"query":{"type":"string","minLength":1,"maxLength":20000},"target":{"type":"string","enum":["profiles","events","objects"]},"objectType":{"nullable":true,"type":"string","maxLength":64},"mapping":{"$ref":"#/components/schemas/Mapping6"},"cursorColumn":{"nullable":true,"type":"string","pattern":"^[A-Za-z_][A-Za-z0-9_]{0,62}$"},"everyMinutes":{"type":"integer","minimum":15,"maximum":10080},"timeoutMs":{"type":"integer","minimum":1000,"maximum":300000},"maxRows":{"type":"integer","minimum":1,"maximum":50000},"enabled":{"type":"boolean"},"resetCursor":{"type":"boolean"}}}}}},"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ItemsItem244"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"patchV1SqlSourcesById"},"delete":{"tags":["sql-sources"],"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"ok":{"type":"boolean","enum":[true]}},"required":["ok"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"deleteV1SqlSourcesById"}},"/v1/sql-sources/{id}/preview":{"post":{"summary":"Test the connection and query: up to 20 rows, nothing imported","tags":["sql-sources"],"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"columns":{"type":"array","items":{"type":"string"}},"rows":{"type":"array","items":{"type":"object","additionalProperties":{}}}},"required":["columns","rows"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"postV1SqlSourcesByIdPreview"}},"/v1/sql-sources/{id}/run":{"post":{"summary":"Run the pull now (in the background)","tags":["sql-sources"],"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"202":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"ok":{"type":"boolean","enum":[true]}},"required":["ok"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"postV1SqlSourcesByIdRun"}},"/v1/looker/manifest":{"get":{"summary":"Apps Script files (appsscript.json, Code.gs) for the Looker Studio community connector","tags":["looker"],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"appsscript.json":{"type":"string"},"Code.gs":{"type":"string"}},"required":["appsscript.json","Code.gs"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1LookerManifest"}},"/v1/looker/datasets":{"get":{"summary":"Saved reports Looker Studio can use as data sources","tags":["looker"],"parameters":[{"schema":{"type":"integer","minimum":1,"maximum":200},"in":"query","name":"limit","required":false,"description":"Page size; omitted returns the whole list"},{"schema":{"type":"string","pattern":"^\\d{1,9}$"},"in":"query","name":"cursor","required":false,"description":"Opaque: the `nextCursor` of the previous page"}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"items":{"$ref":"#/components/schemas/Lists"},"nextCursor":{"nullable":true,"type":"string"}},"required":["items","nextCursor"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1LookerDatasets"}},"/v1/looker/schema":{"post":{"tags":["looker"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"reportId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},"required":["reportId"]}}}},"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"fields":{"$ref":"#/components/schemas/Fields3"}},"required":["fields"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"postV1LookerSchema"}},"/v1/looker/data":{"post":{"tags":["looker"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"reportId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"fields":{"default":[],"maxItems":200,"type":"array","items":{"type":"string","maxLength":80}},"from":{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"},"to":{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"}},"required":["reportId"]}}}},"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"schema":{"$ref":"#/components/schemas/Fields3"},"rows":{"type":"array","items":{"type":"object","properties":{"values":{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"}],"nullable":true}}},"required":["values"],"additionalProperties":false}}},"required":["schema","rows"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"postV1LookerData"}},"/v1/workflows/{id}/entry-skips":{"get":{"summary":"People who could not enter (journey not live, outside its window, no start step, profile gone, cap reached), newest first","tags":["workflows"],"parameters":[{"schema":{"default":50,"type":"integer","minimum":1,"maximum":200},"in":"query","name":"limit","required":false},{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"query","name":"cursor","required":false},{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"items":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"workflowId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"profileId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"reason":{"type":"string"},"triggerType":{"type":"string"},"at":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"}},"required":["id","workflowId","profileId","reason","triggerType","at"],"additionalProperties":false}},"nextCursor":{"nullable":true,"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},"required":["items","nextCursor"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1WorkflowsByIdEntrySkips"}},"/v1/workflows/{id}/enroll-object-segment":{"post":{"summary":"Enroll the people linked to each object in an object segment (the object rides along as the trigger event)","tags":["workflows"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"segmentId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},"required":["segmentId"]}}}},"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PostV1WorkflowsByIdEnrollResponse"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"postV1WorkflowsByIdEnrollObjectSegment"}},"/v1/workflow-custom-types":{"get":{"summary":"The workspace's own action and trigger types (palette and trigger picker)","tags":["workflows"],"parameters":[{"schema":{"type":"string","enum":["action","trigger"]},"in":"query","name":"kind","required":false},{"schema":{"type":"string","enum":["true","false"]},"in":"query","name":"archived","required":false},{"schema":{"type":"integer","minimum":1,"maximum":200},"in":"query","name":"limit","required":false,"description":"Page size; omitted returns the whole list"},{"schema":{"type":"string","pattern":"^\\d{1,9}$"},"in":"query","name":"cursor","required":false,"description":"Opaque: the `nextCursor` of the previous page"}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"items":{"type":"array","items":{"$ref":"#/components/schemas/ItemsItem245"}},"nextCursor":{"nullable":true,"type":"string"}},"required":["items","nextCursor"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1WorkflowCustomTypes"},"post":{"summary":"Register an action type (runs a call template or code action) or a trigger type (fires on an event)","tags":["workflows"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"kind":{"type":"string","enum":["action","trigger"]},"key":{"type":"string","pattern":"^[a-z][a-z0-9_]{0,47}$"},"name":{"type":"string","minLength":1,"maxLength":100},"description":{"default":"","type":"string","maxLength":300},"fields":{"default":[],"maxItems":20,"type":"array","items":{"$ref":"#/components/schemas/FieldsItem6"}},"webhookTemplateId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"eventName":{"type":"string","minLength":1,"maxLength":128}},"required":["kind","key","name"]}}}},"responses":{"201":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ItemsItem245"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"postV1WorkflowCustomTypes"}},"/v1/workflow-custom-types/{id}":{"get":{"tags":["workflows"],"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ItemsItem245"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1WorkflowCustomTypesById"},"patch":{"summary":"Rename, change fields, or archive (archived types leave the palette but keep running)","tags":["workflows"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":100},"description":{"type":"string","maxLength":300},"fields":{"maxItems":20,"type":"array","items":{"$ref":"#/components/schemas/FieldsItem6"}},"webhookTemplateId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"eventName":{"type":"string","minLength":1,"maxLength":128},"archived":{"type":"boolean"}}}}}},"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ItemsItem245"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"patchV1WorkflowCustomTypesById"},"delete":{"tags":["workflows"],"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"ok":{"type":"boolean","enum":[true]}},"required":["ok"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"deleteV1WorkflowCustomTypesById"}},"/v1/push/live":{"post":{"summary":"Start a live notification for one contact (order tracking, a match score...). Push consent applies to marketing ones; suppression always applies. Needs an idempotencyKey (body) or Idempotency-Key header","tags":["push"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"profileId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"kind":{"type":"string","enum":["ios_live_activity","android_ongoing"]},"activityType":{"type":"string","pattern":"^[A-Za-z][A-Za-z0-9_.]{0,99}$"},"attributes":{"default":{},"type":"object","additionalProperties":{}},"contentState":{"default":{},"type":"object","additionalProperties":{}},"alert":{"type":"object","properties":{"title":{"type":"string","maxLength":200},"body":{"type":"string","maxLength":1000}},"required":["title","body"]},"staleAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"purpose":{"default":"transactional","type":"string","enum":["transactional","marketing"]},"connectionId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"idempotencyKey":{"type":"string","minLength":1,"maxLength":200}},"required":["profileId","kind","activityType"]}}}},"responses":{"201":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PostV1PushLiveResponse"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"postV1PushLive"},"get":{"summary":"Live notifications, newest first","tags":["push"],"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"query","name":"profileId","required":false},{"schema":{"type":"string","enum":["active","ended","blocked","failed"]},"in":"query","name":"status","required":false},{"schema":{"type":"integer","minimum":1,"maximum":200},"in":"query","name":"limit","required":false,"description":"Page size; omitted returns the whole list"},{"schema":{"type":"string","pattern":"^\\d{1,9}$"},"in":"query","name":"cursor","required":false,"description":"Opaque: the `nextCursor` of the previous page"}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"items":{"type":"array","items":{"$ref":"#/components/schemas/PostV1PushLiveResponse"}},"nextCursor":{"nullable":true,"type":"string"}},"required":["items","nextCursor"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1PushLive"}},"/v1/push/live/{id}":{"get":{"summary":"One live notification and its status","tags":["push"],"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PostV1PushLiveResponse"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1PushLiveById"},"patch":{"summary":"Update what the live notification shows","tags":["push"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"contentState":{"type":"object","additionalProperties":{}},"alert":{"type":"object","properties":{"title":{"type":"string","maxLength":200},"body":{"type":"string","maxLength":1000}},"required":["title","body"]},"staleAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"priority":{"default":"normal","type":"string","enum":["high","normal"]}},"required":["contentState"]}}}},"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PostV1PushLiveResponse"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"patchV1PushLiveById"}},"/v1/push/live/{id}/end":{"post":{"summary":"End the live notification (optionally with a final state and when to dismiss it)","tags":["push"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"contentState":{"type":"object","additionalProperties":{}},"alert":{"type":"object","properties":{"title":{"type":"string","maxLength":200},"body":{"type":"string","maxLength":1000}},"required":["title","body"]},"dismissAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"}}}}}},"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PostV1PushLiveResponse"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"postV1PushLiveByIdEnd"}},"/client/push-live-tokens":{"post":{"summary":"The app reports an ActivityKit push-to-start token or a running activity's update token","tags":["push"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"kind":{"type":"string","enum":["push_to_start","update"]},"token":{"type":"string","pattern":"^[0-9a-fA-F]{16,400}$"},"activityType":{"type":"string","maxLength":100},"activityId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"environment":{"default":"production","type":"string","enum":["sandbox","production"]},"appId":{"type":"string","maxLength":200},"profile":{"type":"object","properties":{"externalId":{"type":"string","maxLength":256},"email":{"type":"string","maxLength":320},"phoneNumber":{"type":"string","maxLength":40},"anonymousId":{"type":"string","maxLength":128}}}},"required":["kind","token","profile"]}}}},"parameters":[{"schema":{"type":"string","maxLength":256},"in":"query","name":"company_id","required":false}],"responses":{"202":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"ok":{"type":"boolean","enum":[true]}},"required":["ok"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"postClientPushLiveTokens"}},"/v1/social/apps":{"get":{"summary":"Which networks (and Slack) can be connected by sign-in on this install","tags":["social"],"parameters":[{"schema":{"type":"integer","minimum":1,"maximum":200},"in":"query","name":"limit","required":false,"description":"Page size; omitted returns the whole list"},{"schema":{"type":"string","pattern":"^\\d{1,9}$"},"in":"query","name":"cursor","required":false,"description":"Opaque: the `nextCursor` of the previous page"}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"items":{"type":"array","items":{"type":"object","properties":{"provider":{"type":"string","enum":["linkedin","facebook","instagram","x","slack"]},"configured":{"type":"boolean"}},"required":["provider","configured"],"additionalProperties":false}},"nextCursor":{"nullable":true,"type":"string"}},"required":["items","nextCursor"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1SocialApps"}},"/v1/social/accounts":{"get":{"summary":"Connected social accounts","tags":["social"],"parameters":[{"schema":{"type":"integer","minimum":1,"maximum":200},"in":"query","name":"limit","required":false,"description":"Page size; omitted returns the whole list"},{"schema":{"type":"string","pattern":"^\\d{1,9}$"},"in":"query","name":"cursor","required":false,"description":"Opaque: the `nextCursor` of the previous page"}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"items":{"$ref":"#/components/schemas/Items58"},"nextCursor":{"nullable":true,"type":"string"}},"required":["items","nextCursor"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1SocialAccounts"},"post":{"summary":"Connect with a pasted access token (stored encrypted); connects every page/account it can post as unless externalId is given","tags":["social"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"platform":{"type":"string","enum":["linkedin","facebook","instagram","x"]},"accessToken":{"type":"string","minLength":10,"maxLength":4000},"refreshToken":{"type":"string","maxLength":4000},"externalId":{"type":"string","maxLength":200}},"required":["platform","accessToken"]}}}},"responses":{"201":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PostV1SocialAccountsResponse"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"postV1SocialAccounts"}},"/v1/social/accounts/{id}":{"delete":{"summary":"Disconnect an account and delete its token","tags":["social"],"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"ok":{"type":"boolean","enum":[true]}},"required":["ok"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"deleteV1SocialAccountsById"}},"/v1/social/oauth/{platform}/start":{"post":{"summary":"Start sign-in with the network; returns its authorize URL","tags":["social"],"parameters":[{"schema":{"type":"string","enum":["linkedin","facebook","instagram","x"]},"in":"path","name":"platform","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"url":{"type":"string","format":"uri"}},"required":["url"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"postV1SocialOauthByPlatformStart"}},"/v1/social/oauth/pending/{id}":{"get":{"summary":"Pages and accounts a finished sign-in can post as, to pick from (yours, for 15 minutes)","tags":["social"],"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"platform":{"type":"string","enum":["linkedin","facebook","instagram","x"]},"items":{"type":"array","items":{"type":"object","properties":{"externalId":{"type":"string"},"name":{"type":"string"},"connected":{"type":"boolean"}},"required":["externalId","name","connected"],"additionalProperties":false}}},"required":["platform","items"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1SocialOauthPendingById"},"post":{"summary":"Connect the picked pages and accounts from a sign-in; the others are forgotten","tags":["social"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"externalIds":{"minItems":1,"maxItems":200,"type":"array","items":{"type":"string","minLength":1,"maxLength":200}}},"required":["externalIds"]}}}},"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PostV1SocialAccountsResponse"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"postV1SocialOauthPendingById"}},"/integrations/social/{platform}/callback":{"get":{"tags":["social"],"parameters":[{"schema":"object","in":"query","name":"type"},{"schema":{"type":"string"},"in":"query","name":"additionalProperties"},{"schema":{"type":"string","enum":["linkedin","facebook","instagram","x"]},"in":"path","name":"platform","required":true}],"security":[],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"string"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getIntegrationsSocialByPlatformCallback"}},"/v1/social/posts":{"get":{"summary":"Posts scheduled or published in a date range (the calendar)","tags":["social"],"parameters":[{"schema":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"in":"query","name":"from","required":true},{"schema":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"in":"query","name":"to","required":true},{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"query","name":"accountId","required":false},{"schema":{"type":"integer","minimum":1,"maximum":200},"in":"query","name":"limit","required":false,"description":"Page size; omitted returns the whole list"},{"schema":{"type":"string","pattern":"^\\d{1,9}$"},"in":"query","name":"cursor","required":false,"description":"Opaque: the `nextCursor` of the previous page"}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"items":{"$ref":"#/components/schemas/Items59"},"nextCursor":{"nullable":true,"type":"string"}},"required":["items","nextCursor"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1SocialPosts"},"post":{"summary":"Compose a post for one or more accounts: a draft, now, or scheduled. Needs an idempotency key","tags":["social"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"accountIds":{"$ref":"#/components/schemas/ProviderIds"},"text":{"type":"string","minLength":1,"maxLength":63206},"media":{"default":[],"maxItems":4,"type":"array","items":{"type":"object","properties":{"url":{"type":"string","maxLength":2048,"format":"uri"},"type":{"default":"image","type":"string","enum":["image","video"]}},"required":["url"]}},"link":{"type":"string","maxLength":2048,"format":"uri"},"scheduledAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"draft":{"default":false,"type":"boolean"},"idempotencyKey":{"type":"string","minLength":1,"maxLength":200}},"required":["accountIds","text"]}}}},"responses":{"201":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"items":{"$ref":"#/components/schemas/Items59"}},"required":["items"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"postV1SocialPosts"}},"/v1/social/posts/{id}":{"get":{"summary":"One post with its publish status and metrics","tags":["social"],"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ItemsItem247"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1SocialPostsById"},"patch":{"summary":"Edit or reschedule a draft or scheduled post","tags":["social"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"text":{"type":"string","minLength":1,"maxLength":63206},"media":{"maxItems":4,"type":"array","items":{"type":"object","properties":{"url":{"type":"string","maxLength":2048,"format":"uri"},"type":{"default":"image","type":"string","enum":["image","video"]}},"required":["url"]}},"link":{"nullable":true,"type":"string","maxLength":2048,"format":"uri"},"scheduledAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"draft":{"type":"boolean"}}}}}},"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ItemsItem247"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"patchV1SocialPostsById"}},"/v1/social/posts/{id}/cancel":{"post":{"summary":"Cancel a draft, scheduled or failed post","tags":["social"],"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ItemsItem247"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"postV1SocialPostsByIdCancel"}},"/v1/social/posts/{id}/comments":{"get":{"summary":"Comments on a published post (pulled with its metrics)","tags":["social"],"parameters":[{"schema":{"type":"integer","minimum":1,"maximum":200},"in":"query","name":"limit","required":false,"description":"Page size; omitted returns the whole list"},{"schema":{"type":"string","pattern":"^\\d{1,9}$"},"in":"query","name":"cursor","required":false,"description":"Opaque: the `nextCursor` of the previous page"},{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"items":{"type":"array","items":{"$ref":"#/components/schemas/ItemsItem248"}},"nextCursor":{"nullable":true,"type":"string"}},"required":["items","nextCursor"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1SocialPostsByIdComments"}},"/v1/social/posts/{id}/replies":{"post":{"summary":"Reply to a comment as the page or account. Needs an idempotency key","tags":["social"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"commentId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"text":{"type":"string","minLength":1,"maxLength":1250},"idempotencyKey":{"type":"string","minLength":1,"maxLength":200}},"required":["commentId","text"]}}}},"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"201":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ItemsItem248"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"postV1SocialPostsByIdReplies"}},"/v1/slack/installs":{"get":{"summary":"Slack workspaces the app is installed in","tags":["slack"],"parameters":[{"schema":{"type":"integer","minimum":1,"maximum":200},"in":"query","name":"limit","required":false,"description":"Page size; omitted returns the whole list"},{"schema":{"type":"string","pattern":"^\\d{1,9}$"},"in":"query","name":"cursor","required":false,"description":"Opaque: the `nextCursor` of the previous page"}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"items":{"type":"array","items":{"$ref":"#/components/schemas/ItemsItem249"}},"nextCursor":{"nullable":true,"type":"string"}},"required":["items","nextCursor"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1SlackInstalls"},"post":{"summary":"Install with your own Slack app's bot token (stored encrypted)","tags":["slack"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"botToken":{"type":"string","minLength":10,"maxLength":500}},"required":["botToken"]}}}},"responses":{"201":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ItemsItem249"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"postV1SlackInstalls"}},"/v1/slack/installs/{id}":{"delete":{"summary":"Remove a Slack workspace and delete its token","tags":["slack"],"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"ok":{"type":"boolean","enum":[true]}},"required":["ok"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"deleteV1SlackInstallsById"}},"/v1/slack/oauth/start":{"post":{"summary":"Start \"Add to Slack\"; returns Slack's authorize URL","tags":["slack"],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"url":{"type":"string","format":"uri"}},"required":["url"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"postV1SlackOauthStart"}},"/integrations/slack/callback":{"get":{"tags":["slack"],"parameters":[{"schema":"object","in":"query","name":"type"},{"schema":{"type":"string"},"in":"query","name":"additionalProperties"}],"security":[],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"string"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getIntegrationsSlackCallback"}},"/v1/slack/templates":{"get":{"summary":"Slack message templates","tags":["slack"],"parameters":[{"schema":{"type":"integer","minimum":1,"maximum":200},"in":"query","name":"limit","required":false,"description":"Page size; omitted returns the whole list"},{"schema":{"type":"string","pattern":"^\\d{1,9}$"},"in":"query","name":"cursor","required":false,"description":"Opaque: the `nextCursor` of the previous page"}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"items":{"type":"array","items":{"$ref":"#/components/schemas/ItemsItem250"}},"nextCursor":{"nullable":true,"type":"string"}},"required":["items","nextCursor"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1SlackTemplates"},"post":{"summary":"Create a Slack message template (text plus optional Block Kit blocks)","tags":["slack"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PostV1SlackTemplatesBody"}}}},"responses":{"201":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ItemsItem250"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"postV1SlackTemplates"}},"/v1/slack/templates/{id}":{"put":{"summary":"Edit a Slack message template","tags":["slack"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PostV1SlackTemplatesBody"}}}},"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ItemsItem250"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"putV1SlackTemplatesById"},"delete":{"summary":"Delete a Slack message template","tags":["slack"],"parameters":[{"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"ok":{"type":"boolean","enum":[true]}},"required":["ok"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"deleteV1SlackTemplatesById"}},"/v1/slack/test":{"post":{"summary":"Post a test message to a channel. Needs an idempotency key","tags":["slack"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"installId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"channel":{"type":"string","minLength":1,"maxLength":80},"templateId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"text":{"type":"string","maxLength":3000},"idempotencyKey":{"type":"string","minLength":1,"maxLength":200}},"required":["installId","channel"]}}}},"responses":{"202":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"string","enum":["sent","blocked","failed","duplicate"]},"reason":{"nullable":true,"type":"string"}},"required":["status","reason"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"postV1SlackTest"}},"/v1/slack/sends":{"get":{"summary":"Recent Slack sends with their outcome","tags":["slack"],"parameters":[{"schema":{"type":"integer","minimum":1,"maximum":200},"in":"query","name":"limit","required":false,"description":"Page size; omitted returns the whole list"},{"schema":{"type":"string","pattern":"^\\d{1,9}$"},"in":"query","name":"cursor","required":false,"description":"Opaque: the `nextCursor` of the previous page"}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"items":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"installId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"profileId":{"nullable":true,"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"target":{"type":"string"},"status":{"type":"string","enum":["sent","blocked","failed"]},"reason":{"nullable":true,"type":"string"},"createdAt":{"type":"string"}},"required":["id","installId","profileId","target","status","reason","createdAt"],"additionalProperties":false}},"nextCursor":{"nullable":true,"type":"string"}},"required":["items","nextCursor"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1SlackSends"}},"/v1/integrations/google/start":{"post":{"summary":"Start a Google sign-in that saves a Sheets grant under the named secret; the access token is refreshed automatically","tags":["webhooks"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"secretName":{"type":"string","pattern":"^[a-z0-9][a-z0-9_.-]{0,99}$"}},"required":["secretName"]}}}},"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"url":{"type":"string"}},"required":["url"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"postV1IntegrationsGoogleStart"}},"/v1/integrations/google/callback":{"get":{"tags":["webhooks"],"parameters":[{"schema":{"type":"string","maxLength":4096},"in":"query","name":"code","required":false},{"schema":{"type":"string","maxLength":4096},"in":"query","name":"state","required":false},{"schema":{"type":"string","maxLength":200},"in":"query","name":"error","required":false},{"schema":{"type":"string","maxLength":1000},"in":"query","name":"error_description","required":false}],"security":[],"responses":{"302":{"description":"Default Response","content":{"application/json":{"schema":{"type":"string"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1IntegrationsGoogleCallback"}},"/webhooks/ads/meta/leadgen":{"get":{"summary":"Meta leadgen webhook verification handshake","tags":["ads"],"parameters":[{"schema":"object","in":"query","name":"type"},{"schema":{"type":"string"},"in":"query","name":"additionalProperties"}],"security":[],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"string"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getWebhooksAdsMetaLeadgen"},"post":{"summary":"Meta leadgen delivery: queues the matching lead form syncs at once","tags":["ads"],"security":[],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"ok":{"type":"boolean"}},"required":["ok"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"postWebhooksAdsMetaLeadgen"}},"/v1/public-config":{"get":{"summary":"Public runtime settings for the web app","tags":["meta"],"security":[],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"chatlyPublicId":{"nullable":true,"type":"string"},"referalliScriptUrl":{"nullable":true,"type":"string"},"seolyticizeSiteKey":{"nullable":true,"type":"string"},"watchtowerRum":{"nullable":true,"type":"object","properties":{"key":{"type":"string"},"endpoint":{"type":"string"},"otlpEndpoint":{"nullable":true,"type":"string"},"release":{"nullable":true,"type":"string"}},"required":["key","endpoint","otlpEndpoint","release"],"additionalProperties":false},"helpSite":{"type":"boolean"},"atlasAccountUrl":{"nullable":true,"type":"string"},"devLogin":{"type":"boolean"}},"required":["chatlyPublicId","referalliScriptUrl","seolyticizeSiteKey","watchtowerRum","helpSite","atlasAccountUrl","devLogin"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1PublicConfig"}},"/v1/support/identity":{"get":{"summary":"The signed identity the Help chat (Chatly) verifies; null when chat identity is off or while impersonating","tags":["support"],"security":[{"session":[]}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"nullable":true,"type":"object","properties":{"userId":{"type":"string"},"email":{"type":"string"},"name":{"type":"string"},"workspaceId":{"type":"string"},"workspaceName":{"nullable":true,"type":"string"},"hash":{"type":"string"},"identityToken":{"nullable":true,"type":"string"}},"required":["userId","email","name","workspaceId","workspaceName","hash","identityToken"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1SupportIdentity"}},"/v1/privacy/lookup":{"post":{"summary":"Rights executor: find a Hermeticor user by email","tags":["privacy"],"requestBody":{"required":true,"content":{"application/json":{"schema":{}}}},"security":[],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"subjectId":{"nullable":true,"type":"string"},"status":{"type":"string","enum":["found","no_match"]}},"required":["subjectId","status"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"postV1PrivacyLookup"}},"/v1/privacy/requests":{"post":{"summary":"Rights executor: open an access or deletion request","tags":["privacy"],"requestBody":{"required":true,"content":{"application/json":{"schema":{}}}},"security":[],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PostV1PrivacyRequestsResponse"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"postV1PrivacyRequests"}},"/v1/privacy/requests/{id}":{"get":{"summary":"Rights executor: poll a request","tags":["privacy"],"parameters":[{"schema":{"type":"string","maxLength":4096},"in":"path","name":"id","required":true}],"security":[],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PostV1PrivacyRequestsResponse"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1PrivacyRequestsById"}},"/webhooks/shopify/{topic}":{"post":{"summary":"Shopify compliance webhook (data request, customer or shop redact); 401 unless signed with the app secret","tags":["webhooks"],"parameters":[{"schema":{"type":"string","enum":["customers-data-request","customers-redact","shop-redact"]},"in":"path","name":"topic","required":true}],"security":[],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"ok":{"type":"boolean","enum":[true]}},"required":["ok"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"postWebhooksShopifyByTopic"}},"/v1/me/referral":{"get":{"summary":"Your own Hermeticor referral link (Refer a friend), created on first read","tags":["billing"],"security":[{"session":[]}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"enabled":{"type":"boolean"},"code":{"nullable":true,"type":"string"},"link":{"nullable":true,"type":"string"},"terms":{"nullable":true,"type":"object","additionalProperties":{"type":"string"}}},"required":["enabled","code","link","terms"],"additionalProperties":false}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getV1MeReferral"}},"/auth/forumulate":{"get":{"summary":"Sign the current user in to the Hermeticor community and docs (redirect)","tags":["meta"],"parameters":[{"schema":{"type":"string","maxLength":2048},"in":"query","name":"returnTo","required":false}],"security":[],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"string"}}}},"4XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}},"5XX":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetHealthzResponse"}}}}},"operationId":"getAuthForumulate"}}},"security":[{"apiKey":[]}]}